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
#!/usr/bin/env python -tt | |
import time | |
import random | |
OMGBUSY = """ | |
>> execute: Splitting up dataset, running from {0} to {1} | |
>> routingPattern Connect route "taggable_add_tag" (/admin/addTag/:object_class/:object_id) | |
>> routingPattern Connect route "taggable_remove_tag" (/admin/removeTag/:object_class/:object_id) | |
>> routingPattern Connect route "prestaSitemap_index" (/sitemap.xml) |
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
> quix command file | |
> Bill Israel [http://cubicle17.com/] | |
> More: http://quixapp.com/ | |
@reading/saving | |
rl javascript:function%20iprl5(){var%20d=document,z=d.createElement('scr'+'ipt'),b=d.body,l=d.location;try{if(!b)throw(0);d.title='(Saving...)%20'+d.title;z.setAttribute('src',l.protocol+'//www.instapaper.com/j/cyjbYZ10F5ue?u='+encodeURIComponent(l.href)+'&t='+(new%20Date().getTime()));b.appendChild(z);}catch(e){alert('Please%20wait%20until%20the%20page%20has%20loaded.');}}iprl5();void(0) Read Later | |
pb javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://pinboard.in/add?url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=700,height=350')); Bookmark | |
@misc |
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
#!/usr/bin/env bash | |
# backup -- a time waster by Bill Israel | |
# | |
# The backup script I use to backup the data I care about. | |
# Is run daily via cron. | |
# Must have remote folder param | |
[ -z "$1" ] && echo -e "usage: $0 REMOTE_FOLDER\n" && exit 1 |
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
#!/usr/bin/env sh | |
## | |
# This is script with useful tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2264647/hack.sh | sh | |
# |
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 | |
# | |
# Author: htt://billisrael.ifno/ | |
# Original Author: http://daddye.it | |
# Original Original Author: @mathiasbynens | |
# | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |
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
#!/usr/bin/env bash | |
# | |
# Should be installed into $TODO_ACTIONS_DIR/doneon | |
# Note: be sure to make the script executable (chmod +x path/to/file) | |
# | |
action=$1 | |
shift | |
function usage { |
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
#!/usr/bin/env bash | |
# A command line utility for automatically generating PNG thumbnails and | |
# CMYK prints for http://framemyrun.com/ | |
# | |
# Author: Bill Israel <[email protected]> | |
# | |
# LICENSE: | |
# This code is considered to be in the Public Domain. Use, copy, modify, | |
# distribute, sell, and do anything else you want with it. The author |
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
#!/usr/bin/env bash | |
# TODO: Document this | |
# | |
# AUTHOR: Bill Israel [https://github.com/epochblue] | |
# LICENSE: Public Domain | |
BOOMDB_DEFAULT="$HOME/.boomdb" | |
BOOMDB=${BOOMDB:=$BOOMDB_DEFAULT} | |
# Ensure the DB file exists |
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
""" | |
An afternoon distraction by Bill Israel. | |
`hipchat-music.py` will send a notification to a HipChat chat room with the | |
artist and song title of the currently playing song. Supported music apps | |
include iTunes, Rdio, and Spotify. | |
_Note: This code uses v2 of the HipChat API._ | |
Requirements: |
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
import os | |
import json | |
import urllib2 | |
import contextlib | |
URL='http://api.openweathermap.org/data/2.5/weather?q=Nashville,TN&units=imperial' | |
with contextlib.closing(urllib2.urlopen(URL)) as r: | |
response = json.loads(r.read()) | |
OlderNewer