Skip to content

Instantly share code, notes, and snippets.

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
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
mysqldump --databases hypr -h blah-blah.rds.amazonaws.com -u hypr -P 3306 -p > rds.sql
gsutil -o GSUtil:parallel_composite_upload_threshold=150M cp bigfile gs://your-bucket
(defun clojure-test-filename ()
(concat (projectile-project-root)
"test/"
(mapconcat #'identity
(butlast (split-string (cider-current-ns) "\\.")) "/")
"/"
(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))
"_test.clj"))
@lsgrep
lsgrep / gist:bd31d11a96dcf17ddb42
Created October 1, 2015 04:18
emacs essentials
File Handling Commands
C-x C-v find-alternate-file Read a different file.
C-x i insert-file Insert a file at the cursors position.
C-x C-w write-file Write the contents of the buffer to a file.
C-z suspend-emacs Suspend emacs.
@lsgrep
lsgrep / gist:2f60125284b26caa64ff
Created December 7, 2015 12:30
push to all repos
git remote | xargs -L1 git push --all
@lsgrep
lsgrep / cljs clj
Last active July 19, 2022 21:28
reagent input with Chinese characters
;reagent input two way binding with chinese characters .
;reagent 中文输入问题