# ctrl + z to pause command
$ bg
$ disown -h
# now you can exit the shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
bin="mysql" | |
#bin="/Applications/MySQLWorkbench.app/Contents/MacOS/mysql" | |
database=$1 | |
username=$2 | |
password=$3 | |
if [ ! "$password" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enter this command to create a sudoers override/include file: | |
# sudo visudo -f /etc/sudoers.d/nginx.overrides | |
# (Make sure you actually have this in your /etc/sudoers - Run `sudo visudo` to check) | |
# #includedir /etc/sudoers.d | |
# This file assumes your deployment user is `deploy` | |
# Nginx Commands | |
Cmnd_Alias NGINX_RESTART = /usr/sbin/service nginx restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service ntp stop | |
sudo ntpdate -s time.nist.gov | |
sudo service ntp start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Vagrantfile b/Vagrantfile | |
index 12b8f52..7b77ab2 100644 | |
--- a/Vagrantfile | |
+++ b/Vagrantfile | |
@@ -17,6 +17,11 @@ require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb') | |
Vagrant.require_version '>= 1.9.0' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
+ | |
+ config.vm.provider 'virtualbox' do |vb| |
Steps extracted from this guide. To see how to set up DNSmasq on Ubuntu, see this guide.
First update brew and install dnsmasq:
brew update
brew install dnsmasq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y git-core | |
sudo apt-get install -y curl | |
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
sudo npm install -g bower | |
sudo npm install -g gulp | |
sudo apt-get install -y ruby ruby-dev |
Steps from https://stackoverflow.com/q/19856192 with minor changes to work on Ubuntu 16.04.
# Install the Nvidia driver
sudo apt-add-repository ppa:ubuntu-x-swat/updates
sudo apt-get update
sudo apt-get install nvidia-current
# Driver installation needs reboot
sudo reboot now
Install Let's Encrypt client (Certbot):
wget https://dl.eff.org/certbot-auto
sudo chmod a+x certbot-auto
sudo mv certbot-auto /usr/local/bin/
On first run it will install its dependencies:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo certbot-auto revoke --cert-path /etc/letsencrypt/live/DOMAIN/cert.pem [--staging] |