-
“My sollution was to reduce the timeout, and to do so without messing with the base installed networking.services systemd file. This will persist during updates in any package.
sudo mkdir -p /etc/systemd/system/networking.service.d/
sudo bash -c ‘echo -e “[Service]\nTimeoutStartSec=20sec” > /etc/systemd/system/networking.service.d/timeout.conf’
sudo systemctl daemon-reload” -
[ubuntu] A start job is running for raise network interfaces (5 mins 1 sec) in ubuntu16.04
“systemctl status systemd-networkd-wait-online.service
Code:
systemctl status NetworkManager-wait-online.service
Disable one and, if it does not fix it, re-enable it and disable the other one.Here’s an example
Code:
sudo systemctl disable systemd-networkd-wait-online.service
Code:
sudo systemctl enable systemd-networkd-wait-online.service” -
Migrate pg dump from Heroku to local sqlite3 development (and beyond)
“heroku pgbackups:capture
curl -o latest.dump `heroku pgbackups:url`# Install postregs & Setup password
# https://help.ubuntu.com/community/PostgreSQL# List databases
sudo -u postgres psql -l# Create database for data
# http://www.commandprompt.com/ppbook/x17149
sudo -u postgres psql template1
template1=# CREATE DATABASE bikedb# or
sudo -u postgres createdb bikedb# Run restore script with options
# http://antonzolotov.com/2012/03/04/rails-scripts-clone-heroku-database-to-development.html
sudo -u postgres pg_restore –verbose –clean –no-acl –no-owner -h localhost -d bikedb latest.dump” -
postgresql – pg_restore asking for password for database when there isn’t one – Stack Overflow
“If you’re specifying -h localhost explicitly then you’re using TCP/IP, so you’ll need to either omit -h localhost”