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
on adding folder items to thisFolder after receiving added_items | |
repeat with addedFile in added_items | |
tell application "Finder" | |
if (the name of the addedFile ends with "torrent") then | |
set transmissionRemote to "/usr/local/bin/transmission-remote https://TRANSMISSION_HOST/transmission -n 'USERNAME:PASSWORD' --add '" & POSIX path of addedFile & "' | sed 's/\"//g' | grep -oE '[^ ]+$'" | |
set fileName to name of (info for addedFile) | |
display notification fileName with title "Torrent Janitor - Queueing Torrent" | |
set transmissionResponse to do shell script transmissionRemote | |
display notification fileName with title "Torrent Janitor - " & transmissionResponse | |
tell application "Finder" |
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
javascript:(function(){%20%20%20%20alert(document.location.protocol%20+"//"+%20document.location.hostname%20+%20document.location.pathname)})(); |
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
### Keybase proof | |
I hereby claim: | |
* I am grantstavely on github. | |
* I am grantstavely (https://keybase.io/grantstavely) on keybase. | |
* I have a public key whose fingerprint is B6B2 B7DB 961B 290C 5F33 1725 A067 55D6 88AF 5060 | |
To claim this, I am signing this object: |
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 | |
# toggle http://code.google.com/p/macosx-nosleep-extension/ off | |
/usr/local/bin/NoSleepCtrl -s 0,0 |
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 | |
# toggle http://code.google.com/p/macosx-nosleep-extension/ | |
/usr/local/bin/NoSleepCtrl -s 1,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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.archiveteam.warrior</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/VBoxHeadless</string> | |
<string>-s</string> |
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
backend splunk{ | |
.host = "127.0.0.1"; | |
.port = "8000"; | |
} | |
backend archiveteam{ | |
.host = "127.0.0.1"; | |
.port = "8001"; | |
} |
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
# https://github.com/keithw/mosh/issues/101 | |
# thanks FiXato! | |
perl -E ' print "\e[?1005h\e[?1002h" ' |
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
## settings | |
set lag to 120 | |
set sites to {"http://nyan.cat", "http://grantstavely.com/files/borat.html"} | |
## functions | |
on tab_toggle(lag, sites) | |
set siteCount to count sites | |
tell application "System Events" | |
## lame hacks abound |
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
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Devops Wisdom</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
<script> | |
function GetLastTweet(UserName) { | |
url = 'http://api.twitter.com/1/statuses/user_timeline/' + UserName + '.json?callback=?'; | |
$.getJSON(url, function (tweet) { | |
$("#tweet").html(tweet[0].text); | |
}); |
NewerOlder