Skip to content

Instantly share code, notes, and snippets.

gcloud compute instances create lispy \
--machine-type n1-standard-8 \
--zone asia-east1-c \
--local-ssd interface=SCSI \
--image ubuntu-14-04
wget http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.26.tar.gz
tar xvf mysql-5.6.26.tar.gz
cd mysql-5.6.26
cmake -DCMAKE_INSTALL_PREFIX=/data/mysql \
-DSYSCONFDIR=/etc \
-DMYSQL_TCP_PORT=3306 \
gcloud compute instances create lispy \
--machine-type n1-standard-8 \
--zone asia-east1-c \
--local-ssd interface=SCSI \
--image ubuntu-14-04
If you don't want to pay for a google coupon code then here is a tutorial for you.
Step 1: https://gcp-coupon-redemption.appspot.com/redeemCoupon
Step 2: Fill up the form and add any of these codes
SOTEC
SystemsUp
Paradigma
Avere
MiTAC
PuppetLabs
@lsgrep
lsgrep / gist:b55c2a84d65226f65808
Created September 11, 2015 09:07
ubuntu fish 2.x
sudo apt-add-repository ppa:fish-shell/release-2
sudo apt-get update
sudo apt-get install fish
# basics
sudo apt-get update && sudo apt-get install vim-nox fish git zip unzip openjdk-8-jdk -y
#oh my fish
curl -L github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | sh
omf theme
#docker
curl -sSL https://get.docker.com/ | sh
@lsgrep
lsgrep / gist:007ec8359afbde51dabf
Created August 23, 2015 20:03
Amazon SES Gitlab Omnibus
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "email-smtp.eu-west-1.amazonaws.com" #important,
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "usre_name" #important
gitlab_rails['smtp_password'] = "password" #important
gitlab_rails['smtp_domain'] = "example.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
jstatd -J-Djava.security.policy=/work/jstatd.all.policy -J-Djava.rmi.server.logCalls=true -J-Djava.rmi.server.hostname=IP_ADDR
grant codebase "file:/work/jdk1.8.0_45/lib/tools.jar" { permission java.security.AllPermission; };
http://apple.stackexchange.com/questions/22785/how-do-i-disable-the-command-control-d-word-definition-keyboard-shortcut-in-os-x
defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>'
# >/var/log/lastlog
# >/var/log/wtmp
# >/var/log/btmp