Skip to content

Instantly share code, notes, and snippets.

View tomsapps's full-sized avatar

Tom. tomsapps

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tomsapps on github.
  • I am ugh_fml (https://keybase.io/ugh_fml) on keybase.
  • I have a public key ASCQ4QfVdbEIGk-9v1ZRU451QLfHFIDeR3fvtF4zBNHfvgo

To claim this, I am signing this object:

docker-compose

Run and manage multi container docker applications.

  • Create and start all containers in the background using a docker-compose.yml file from the current directory:

docker-compose up -d

  • Start all containers, rebuild if necessary:
@tomsapps
tomsapps / Gruvbox.alfredappearance
Created February 28, 2017 02:39
i need dotfiles
{
"alfredtheme" : {
"result" : {
"textSpacing" : 4,
"subtext" : {
"size" : 11,
"colorSelected" : "#665B54FF",
"font" : "Hack",
"color" : "#665B54FF"
},
@tomsapps
tomsapps / .tmux.conf
Last active February 27, 2017 01:27
tmux new -s whatever
set -g prefix C-b
# window numbering starts at 1
set -g base-index 1
setw -g pane-base-index 1
# use emacs
set -gw mode-keys emacs
set -g status-keys emacs
# Path to your oh-my-zsh installation.
export ZSH=/Users/who_dat/.oh-my-zsh
export PATH=$PATH:/usr/local/go/bin
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
".source.js":
"PropTypes func isRequired":
prefix: "ptfi"
body: "PropTypes.func.isRequired,"
"PropTypes bool isRequired":
prefix: "ptbi"
body: "PropTypes.bool.isRequired,"
@tomsapps
tomsapps / keymap.cson
Created November 8, 2016 02:01
atom emacs keybindings
################## EMACS #####################
'.editor:not(.mini)':
'ctrl-e': 'unset!' # remove all bindings
'ctrl-e': 'editor:move-to-end-of-line' # remap core binding
'alt-cmd-e' : 'emmet:expand-abbreviation' # alternate binding for emmet
'ctrl-;': 'editor:newline-above'
'ctrl-,': 'editor:newline-below'
'alt-l': 'find-and-replace:select-next'
'body':
@tomsapps
tomsapps / FRP.MD
Last active November 16, 2016 16:09

Observable

Observables are producers that can return many values asynchronously

Producers determine when the values are sent (PUSH)

Observable executions are NOT shared

setTimeout(() => foo.subscribe)
foo.subscribe
@tomsapps
tomsapps / wer.sh
Created September 21, 2016 16:09
search by word in current directory.
wer() {
if [ ! $1 ]
then
echo "needs a search-query"
else
grep -r -C2 -n $1 .
fi
}
@tomsapps
tomsapps / weare
Created September 2, 2016 19:49
weare config
# pbpaste >> /usr/local/bin/weare
# chmod +x /usr/local/bin/weare
#!/bin/bash
# N.b. This program favors early termination (with `exit`) over multiple levels of nested
# conditionals (i.e. if-then-else expressions). That's why there's very little indendation
# and many occurances of logical "and" (&&) and "or" (||) operators. Modifications should stick
# to this style.
# Exit immediately if any line that isn't an expression or a pipeline fails
set -e