Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dwlf's full-sized avatar

Lloyd Dewolf dwlf

View GitHub Profile
#!/bin/bash
# args
MSG=${1-'deploy from git'}
BRANCH=${2-'trunk'}
# paths
SRC_DIR=$(git rev-parse --show-toplevel)
DIR_NAME=$(basename $SRC_DIR)
DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH
@dwlf
dwlf / mvim.sh
Created September 4, 2013 15:39 — forked from lox/mvim.sh
#!/bin/sh
#
# From http://langui.sh/2009/10/01/improving-mvim-for-macvim/
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle. If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This
@dwlf
dwlf / install.md
Created September 17, 2013 04:48 — forked from svnlto/install.md

Setup new Mac with OSX Lion from scratch

These commands are good as of 2011-07-27.

Install Xcode 4

The download/install takes a while so start it first. When it finishes downloading you will still need to run it to complete installation.

Really the nicest choice for a terminal on OSX right now, especially with Lion style full screen support.

COUNTING.RST

Open Source projects and communities, like most things, are full of humans. Humans have egos.

WE FOCUS ON the CARROT, and not the STICK
  • COUNT things in a way to PRAISE many, without CONDEMNING some.
0. Count all the things
  • Don't report on just coding
@dwlf
dwlf / 01.configure
Last active August 29, 2015 14:16 — forked from anonymous/01.configure
2015-02-27 08:38:03 -0800
./configure
--disable-dependency-tracking
--prefix=/usr/local/Cellar/librsvg/2.36.3_1
--disable-Bsymbolic
--enable-tools=yes
--enable-pixbuf-loader=yes
--enable-introspection=no
call plug#begin()
Plug 'tpope/vim-sensible'
" ---- asthetic ----
Plug 'altercation/vim-colors-solarized'
Plug 'tomasr/molokai'
Plug 'bling/vim-airline'
" ---- navigation ----
Plug 'scrooloose/nerdtree'

Keybase proof

I hereby claim:

  • I am lloydde on github.
  • I am lloydde (https://keybase.io/lloydde) on keybase.
  • I have a public key whose fingerprint is B3B2 605B 45A3 4DD2 833D 1A8F 50E9 E9D0 325B C5AC

To claim this, I am signing this object:

#!/bin/bash
if [[ -n "$TRACE" ]]; then
export PS4='[\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -o xtrace
fi
set -o errexit
set -o pipefail
#!/usr/bin/python
## gitsh (pronounced like "glitch"), an interactive wrapper for git.
##
## gitsh parses the output of "git status" and numbers the files for
## you, for easy operations on multiple files.
##
## $ gitsh status
## 1) M foo/bar.py
## 2) M foo/baz.py
## 3) A blah.sh
require 'rubygems'
require 'rack'
def application(env)
[200, {"Content-Type" => "text/html"}, ["Hello Rack!"]]
end
run method(:application)