Skip to content

Instantly share code, notes, and snippets.

View harperreed's full-sized avatar

Harper Reed harperreed

View GitHub Profile
@harperreed
harperreed / Name space your shell commands.md
Created January 29, 2014 18:15
Name space your shell commands

#Name space your shell commands

From the awesome jim blandy

Create a directory to hold all your little project-specific scriptlets; mine is ~/moz/bin.

Then, create a script in your personal bin directory --- my little script is called ~/bin/moz --- that reads something like:

#!/usr/bin/env bash
PATH=$HOME/moz/bin:$PATH
### Keybase proof
I hereby claim:
* I am harperreed on github.
* I am harper (https://keybase.io/harper) on keybase.
* I have a public key whose fingerprint is 2C65 36AA AD81 F4A1 7FDE C73C 3F9E BC67 5788 BEE6
To claim this, I am signing this object:
@harperreed
harperreed / Brewfile
Created December 29, 2014 16:31
My brewfile
# Install Goodies
#
#
install caskroom/cask/brew-cask
install fortune
install go
install mobile-shell
install nmap
install node
@harperreed
harperreed / sub.sh
Created December 29, 2014 17:23
my ghetto hacked vim^H^H^Hsub command
#!/bin/sh
#
# 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
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).
@harperreed
harperreed / Brewfile
Created May 8, 2015 02:23
Harper's New Mac Brewfile
tap 'caskroom/cask'
tap 'homebrew/bundle'
brew 'brew-cask'
brew 'fortune'
brew 'go'
brew 'mobile-shell'
brew 'nmap'
brew 'node'
brew 'openssl'
brew 'pkg-config'

#Web product guidelines

From @leahculver. Originally posted here.

  • simple
  • public over private
  • personal vanity
  • internet is global
  • permalinks
  • one important item per page
  • don't break the browser
# based off of http://wearehugh.com/public/2007/03/screenrc
# and http://diveintomark.org/archives/2007/03/15/good-easy-2007
# ~/.screenrc
# UTF-8 everywhere
defutf8 on
# disable Ctrl-S/Ctrl-Q "flow control"
scgi_local = /tmp/rpc.socket
#encoding_list = UTF-8
min_peers = 40
max_peers = 100
min_peers_seed = 10
max_peers_seed = 50
max_uploads = 15
upload_rate =50
directory =/home/torrents/torrents/doing
session = /home/torrents/.rtsession
"""
A helper for the app engine blobstore API and Django.
Works with the appengine patch:
http://code.google.com/p/app-engine-patch/
Taken and inspired by:
http://appengine-cookbook.appspot.com/recipe/blobstore-get_uploads-helper-function-for-django-request/
Usage:
#!/usr/bin/env ruby
# Input: WordPress XML export file.
# Outputs: a series of Textile files ready to be included in a Jekyll site,
# and comments.yml which contains all approved comments with metadata which
# can be used for a Disqus import.
require 'rubygems'
require 'hpricot'
require 'clothred'