Skip to content

Instantly share code, notes, and snippets.

Gift Card Messages

March 2020

Happy Birthday Mum! I love you more than anything and I hope you have the best day - Lots of love, Phoebe


Dear Steph, We're all thinking of you and wishing you a speedy recovery. Love the CHIPS crew xoxo

@dgroch
dgroch / README.md
Created February 10, 2018 21:54 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@dgroch
dgroch / checkout.js
Last active December 10, 2017 19:01
form validation for checkout
"use strict";
(function() {
/* Utilities */
function billingAddressIsValid() {
return (
jQuery("#billing_address_1").val() &&
jQuery("#billing_city").val() &&
jQuery("#billing_state").val() &&
@dgroch
dgroch / Cards
Last active May 11, 2017 00:31
Cards
const model = 'cards'
const fp = require('./tmp')
, validRequest = fp.validRequest
, validCmd = fp.validCmd
, validModel = fp.validModel
, validPayload = fp.validPayload
, success = fp.success
, error = fp.error;

TMUX CHEAT SHEET

Sessions

tmux new -s session_name creates a new tmux session named session_name

tmux attach -t session_name attaches to an existing tmux session named session_name

tmux switch -t session_name

@dgroch
dgroch / tmux-cheatsheet.markdown
Created December 25, 2016 22:53 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@dgroch
dgroch / gist:69b7e63f16bbe43c0020bf7f9358b600
Created November 14, 2016 21:55
Delete all docker images
# Delete every Docker containers
# Must be run first because images are attached to containers
docker rm $(docker ps -a -q)
# Delete every Docker image
docker rmi $(docker images -q)
@dgroch
dgroch / git tag release
Created November 12, 2016 05:16
Tagging a release
Bump version in `package.json`
Commit the change
Tag the commit
`git tag -a v1.0.1 659e509 -m "rivescript bot v1.0.1"`
Push the tag
`git push origin v1.0.1`
@dgroch
dgroch / gist:546d67266e22f4ed7537eea399f69c12
Created September 27, 2016 05:18
Convert private key to .pem
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
@dgroch
dgroch / atom_clojure_setup.md
Created August 8, 2016 00:18 — forked from jasongilman/atom_clojure_setup.md
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.