This file contains hidden or 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
| # I miss 'watch' on OS X | |
| watch () { | |
| clear | |
| if [ -z $2 ] | |
| then | |
| time="5" # Saneish default | |
| watchedcmd=$1 | |
| else | |
| time=$(echo $1 | sed -e 's/-n//') |
This file contains hidden or 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
| set theStack to {} | |
| tell application "Reminders" | |
| -- Change or remove 'in list "blah"' to suit your needs. | |
| set theList to the reminders in list "Reminders" | |
| repeat with theReminder in theList | |
| if completed of theReminder is false then | |
| set the end of theStack to the name of theReminder |
This file contains hidden or 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 | |
| import os | |
| import json | |
| from sys import argv | |
| from time import strftime | |
| def firstrun(): | |
| x = {} | |
| x['jf'] = raw_input("File name?: ") |
This file contains hidden or 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
| tell application "Safari" | |
| activate | |
| set the clipboard to URL of front document as string | |
| end tell | |
| tell application "Wedge" | |
| activate | |
| end tell | |
| -- You will need to tick "Enable support for assistive |
This file contains hidden or 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
| tell application "Google Chrome" | |
| set the clipboard to URL of active tab of front window as string | |
| end tell | |
| tell application "Wedge" | |
| activate | |
| end tell | |
| -- You will need to tick "Enable support for assistive | |
| -- devices" in System Preferences -> Accessibility | |
| tell application "System Events" |
This file contains hidden or 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/python | |
| import urllib2 | |
| from base64 import b64encode | |
| import bs4 | |
| import time | |
| hostname = 'nagioshost.example.tld' | |
| nagios_prefix = '/nagios' | |
| proto = 'http' |
This file contains hidden or 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/python | |
| import re | |
| from sys import argv | |
| m = open('macs.txt', 'r').read() | |
| log_file = '' | |
| if '-z' in argv: | |
| from gzip import open |
This file contains hidden or 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/python | |
| """ | |
| Who owns the OUI? IEEE knows. | |
| Run with -u to force update. | |
| """ | |
| from __future__ import print_function | |
| from urllib import urlopen | |
| import sys |
This file contains hidden or 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/python | |
| """ | |
| Who owns the OUI? IEEE knows. | |
| Auto-refreshes once a month. | |
| Run with -u to force update. | |
| """ | |
This file contains hidden or 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/bash | |
| synclient HorizHysteresis=10 VertHysteresis=10 CircularScrolling=1 CircScrollTrigger=1 TapButton1=1 TapButton2=3 TapButton3=2 | |
| syndaemon -i 1.0 -t & |