Skip to content

Instantly share code, notes, and snippets.

View dezman's full-sized avatar

Desmond Sadler dezman

View GitHub Profile
#!/bin/bash
# Search
git grep potato
# Local config
git config --list --show-origin
git config user.email potato
# GPG
C-f Move forward a character
C-b Move backward a character
M-f Move forward a word
M-b Move backward a word
C-n Move to next line
C-p Move to previous line
C-a Move to beginning of line

Glossary

https://docs.docker.com/glossary/

container:

A container is a runtime instance of a docker image. A Docker container consists of

  • A Docker image
  • An execution environment
  • A standard set of instructions
#!/bin/bash
# math
echo $(( 1 + 1 ))
# look for a process by port number
lsof -i:3000
# look for a process and print its pid
ps aux | grep ruby | awk '{print $2}'

Excellent Regexes:

Update Ruby Hashes:

(:|\")(\w+)\"? =>
$2:

Keybase proof

I hereby claim:

  • I am dezman on github.
  • I am dezman (https://keybase.io/dezman) on keybase.
  • I have a public key whose fingerprint is C1D9 20E1 3C6E 789E 12DE FFC3 E475 3E1C 171A F7C6

To claim this, I am signing this object:

// shiva.js
// a jasmine spec loader
// required global
window.jasmineRequire = require('./vendor/jasmine-2.5.2/jasmine.js')
window.specHelper = require('./helper.coffee')
// load jasmine
require('./vendor/jasmine-2.5.2/jasmine-html.js')
do ->
local_property = null
Object.defineProperty(@, 'property',
get: -> local_property
set: (val) ->
local_property = val
debugger
)