I hereby claim:
- I am amdavidson on github.
- I am amdavidson (https://keybase.io/amdavidson) on keybase.
- I have a public key ASDAtQQmuaSWS98ijv65I5pvIj23s7DetLT5Gw2YQR-TeQo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| print_ascii () { | |
| cat <<'EOF' | |
| _ _ _ | |
| | |__ __ _ ___| | ___ _ _ __ ___| |__ | |
| | '_ \ / _` |/ __| |/ / | | | '_ \ / __| '_ \ | |
| | |_) | (_| | (__| <| |_| | |_) |\__ \ | | | | |
| |_.__/ \__,_|\___|_|\_\\__,_| .__(_)___/_| |_| | |
| |_| |
| fix_mosh_server() { | |
| local fw='/usr/libexec/ApplicationFirewall/socketfilterfw' | |
| local mosh_sym="$(which mosh-server)" | |
| local mosh_abs="$(greadlink -f $mosh_sym)" | |
| sudo "$fw" --setglobalstate off | |
| sudo "$fw" --add "$mosh_sym" | |
| sudo "$fw" --unblockapp "$mosh_sym" | |
| sudo "$fw" --add "$mosh_abs" | |
| sudo "$fw" --unblockapp "$mosh_abs" |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/python | |
| import os, sys | |
| import dateutil | |
| import dateutil.parser | |
| import time | |
| import calendar | |
| import fileinput | |
| for line in fileinput.input(inplace=1): | |
| if 'date: ' in line: |
| <% | |
| if delicious_enabled == true then | |
| require 'open-uri' | |
| require 'json/ext' | |
| url = "http://feeds.delicious.com/v2/json/#{ENV["delicious_name"]}" | |
| response = open(url, 'User-agent' => 'amdavidson.com').read | |
| links = JSON.parse(response) |
| <% if flickr_enabled == true then | |
| require 'open-uri' | |
| require 'json/ext' | |
| flickr_url = "http://api.flickr.com/services/rest/?&method=flickr.people.getPublicPhotos&format=json&nojsoncallback=1&api_key=#{ENV['flickr_key']}&user_id=#{ENV['flickr_id']}&per_page=12" | |
| response = open(flickr_url, 'User-agent' => 'amdavidson.com').read | |
| photos = JSON.parse(response)["photos"]["photo"] | |
| for p in photos[0...12] do |
| #!/usr/bin/ruby | |
| require 'rubygems' | |
| require 'nokogiri' | |
| puts 'parsing xml file' | |
| parsed = Nokogiri::XML(open("./wordpress.2010-10-06.xml")) | |
| puts 'pulling titles' | |
| i = 0 |