This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:⌉ | |
=⌉ | |
¦-) as opposed to | | |
☺ | |
☹ | |
☻ | |
⍣ | |
⍤ | |
⍥ om nom nom | |
⍨ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Easy to use sms notifications from Notifo | |
Super quick hack by Harper - @harper - harper@nata2.org | |
First: | |
-------------- | |
Get Google-Voice-PHP-API: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# needs http://jocr.sourceforge.net/ | |
# sudo port install gocr | |
# | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
doc = Nokogiri::HTML(open("http://cidlookup.com/lookup/#{ARGV[0].gsub("-","")}/")) | |
image_url = "http://cidlookup.com" + doc.css("#content .gt img").first.attributes["src"] | |
caller_name = `curl #{image_url} > name.png 2> /dev/null && gocr name.png` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Displays a preview of the markdown file passed in using rdiscount | |
# https://github.com/ryankanno/scripts/blob/master/mdp | |
# Set Markdown file | |
MARKDOWN_FILE=$1 | |
# Redirect rdiscount to temp file | |
rdiscount ${MARKDOWN_FILE} > /tmp/mdp_preview.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chmod 755 -R /usr/local/google_appengine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Harper@nata2.org's Geekcode | |
-----BEGIN GEEK CODE BLOCK----- | |
Version: 3.1 | |
GCS d--- s+:-- a-- C++++ UL++++ P++ W+++ N+ PS+++ PE+ Y++ PGP !tv b++++ | |
e++ h r++ z? | |
------END GEEK CODE BLOCK------ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps aux | awk '{print $4"\t"$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base_dir=$(pwd) | |
repo_name=$1 | |
old_git_url="git@github.com:harperreed/$repo_name.git" | |
git_url="git@bitbucket.org:harper/$repo_name.git" | |
git clone $old_git_url | |
cd $repo_name | |
git remote rm origin | |
git remote add origin $git_url | |
git push origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Originally by Bjoern Steinbrink, simplified by Johannes Schindelin | |
# http://git.661346.n2.nabble.com/inotify-commit-was-Re-git-guidance-td3534419.html | |
inotifywait -m -r --exclude ^\./\.git/.* \ | |
-e close_write -e move -e create -e delete . 2>/dev/null | | |
while read FILE_PATH EVENT FILE_NAME | |
do | |
FILE_NAME="$FILE_PATH$FILE_NAME" |