Hourly solar analemmas (ignoring daylight savings time) as seen from anywhere in the world in 2014.
Hourly solar analemmas (ignoring daylight savings time) as seen from San Francisco in 2014.
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/osascript | |
# opens url $1 in Safari and tries to engage its Reader View (if it shows up within 15s) | |
# You will probably need to first add Terminal.app here (osx Yosemite; 10.10.3): | |
# System Preferences -> Security & Privacy -> Privacy -> Accessibility | |
on run argv | |
set article_url to item 1 of argv |
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 | |
# lists all widgets of the app named $1 to stdout | |
# You will probably need to first add Terminal.app here (osx Yosemite; 10.10.3): | |
# System Preferences -> Security & Privacy -> Privacy -> Accessibility | |
osascript \ | |
-e 'tell application "'$1'" to activate' \ | |
-e 'tell application "System Events" to tell process "'$1'" to set output to entire contents of front window' \ |
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 phantomjs | |
var webpage = require('webpage') | |
, system = require('system') | |
, fs = require('fs') | |
, _ = require('underscore') | |
, URLS, MULTIPLE, OPTS = {}, OPTIONS = | |
{ '-v': 'verbose' | |
}; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/data |
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
function remac() { | |
local progress='.oO°Oo' | |
local airport=/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport | |
local ssid=$($airport -I|awk '/^ *SSID/ {print $2}') | |
local iface=$(networksetup -listallhardwareports|grep -A1 Wi-Fi|awk '/Device:/ {print $2}') | |
local mac=${1:-00$(openssl rand -hex 5|sed 's/\(..\)/:\1/g')} | |
echo Disconnecting Wi-Fi $iface from SSID $ssid to set new mac address $mac... | |
sudo $airport -z | |
local i n=0 |