sudo mkdir /etc/mesos-dns
sudo vi /etc/mesos-dns/config.json
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
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
Getting started:
Related tutorial: http://cd64.de/mysql-cli
SQL joins infografic: http://cd64.de/sql-joins
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
| { | |
| "id": "jenkins", | |
| "cmd": "cd jenkins-standalone-master && ./jenkins-standalone.sh -z $(cat /etc/mesos/zk) -r 127.0.0.1:6379", | |
| "cpus": 0.5, | |
| "mem": 256, | |
| "disk": 1024, | |
| "instances": 1, | |
| "ports": [ | |
| 0 | |
| ], |
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
| { | |
| "variables": { | |
| "aws_access_key": "{{env `AWS_ACCESS_KEY`}}", | |
| "aws_secret_key": "{{env `AWS_SECRET_KEY`}}" | |
| }, | |
| "builders": [ | |
| { | |
| "type": "amazon-ebs", | |
| "ssh_pty": true, | |
| "access_key": "{{user `aws_access_key`}}", |
This is a short overview on how to completely remove any old mysql server installs in OSX and upgrade to MariaDB without conflicts. Things can get a bit weird when you have various old installs of MySQL server floating around, and utilizing homebrew to install and upgrade MariaDB as a drop in replacement for MySQL has worked well, especially if you're used to managing MySQL installs via yum in linux.
Backup all of your current databases with mysqldump
This isn't a tutorial on backups, and there are many ways to do it. You should know how to backup your data anyway. For this example, we'll do a full backup of our InnoDB databases.
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
| #!/bin/bash | |
| for n in $(chrome-cli list tabs | awk '{print $1}' | sed -e 's/\[//' | sed -e 's/\]//'); do | |
| chrome-cli execute '$("#run-code-button").click()' -t $n > /dev/null | |
| done |
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
| #!/bin/bash | |
| # Set the environment - my env is big2 (Change this!) | |
| eval $(docker-machine env big2) | |
| # Launch browser for your environment (Again, change this to match your environment) | |
| (sleep 3 && open "http://$(docker-machine ip big2):8787")& | |
| # Run the image to pickup your local directory. | |
| # Here I have my files stored in /Users/mchirico/Dropbox/kaggle/death |
OlderNewer