####for vimdiff git difftool --tool=vimdiff --no-prompt
####to set vimdiff to settings git config --global diff.tool vimdiff git config --global merge.tool vimdiff
####to stop prompting git config --global difftool.prompt false
| #Installing brew will make it easy for most of the packages. | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew install redis | |
| brew install wget | |
| brew install n | |
| #install Node.JS | |
| n 0.10.35 |
####for vimdiff git difftool --tool=vimdiff --no-prompt
####to set vimdiff to settings git config --global diff.tool vimdiff git config --global merge.tool vimdiff
####to stop prompting git config --global difftool.prompt false
| # Taken from various places on internet. | |
| startup_message off | |
| # Change escape trigger to CTRL+g | |
| # CTRL+a is used in bash CLI to get to start of line | |
| escape ^Gg | |
| # Setting scrollback lines. | |
| defscrollback 1024 |
Install GO after downloading from https://golang.org/dl/
Set GOPATH to directory you want to keep your package and source files.
export GOPATH=~/go
Update PATH to add GO binary location
I hereby claim:
To claim this, I am signing this object:
| #!/usr/local/bin/python2.6 | |
| import hashlib,hmac,base64 | |
| from urlparse import urlparse | |
| from email.utils import formatdate | |
| import sys,subprocess | |
| #Update credentials | |
| AWSAccessKeyId = "<your access key>" | |
| AWSSecretAccessKey = "<your secret key>" | |
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
cd /tmp/
wget http://download.virtualbox.org/virtualbox/5.1.18/VirtualBox-5.1-5.1.18_114002_el6-1.x86_64.rpm
| // base64 encode/decode shamelessly taken from Google Closure and modified. | |
| // https://github.com/google/closure-library/blob/28d9db61f5dc639c010be74e4d61682121d2dbd7/closure/goog/crypt/base64.js | |
| var base64 = { | |
| ENCODED_VALS: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', | |
| encode: (data) => base64.encodeByteArray(base64.stringToByteArray(data)), | |
| decode: (data) => base64.byteArrayToString(base64.decodeStringToByteArray(data)), | |
| byteToCharMap_: '', | |
| charToByteMap_: '', | |
| init_: () => { | |
| if (base64.byteToCharMap_ == '') { |
| #Follow https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04 | |
| sudo apt-get install apt install apt-transport-https ca-certificates curl software-properties-common | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
| sudo apt update | |
| apt-cache policy docker-ce | |
| sudo apt install docker-ce | |
| sudo systemctl status docker | |
| sudo usermod -aG docker `whoami` |
Follow https://docs.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal
dmesg | grep SCSI
sudo fdisk /dev/sdc
sudo mkfs -t ext4 /dev/sdc1
sudo mkdir /data
sudo mount /dev/sdc1 /data
sudo -i blkid