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
// This file sets some default prefs for use at USC Labs | |
// and locks down some other prefs. | |
// | |
// Safari Migration | |
lockPref("browser.migration.version", 1); | |
lockPref("browser.places.importBookmarksHTML", false); | |
lockPref("network.cookie.prefsMigrated", true); | |
// application updates | |
lockPref("app.update.enabled", false); |
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 processIsRunning(appName) | |
tell application "System Events" | |
return process appName exists | |
end tell | |
end processIsRunning | |
on GoGoGeohop(email, subject) | |
-- pause iTunes | |
if processIsRunning("iTunes") then | |
tell application "iTunes" |
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
(* | |
run flake8 against the frontmost BBEdit document | |
You need to install flake8 with | |
sudo easy_install flake8 | |
more info here http://flake8.readthedocs.org/en/latest/ | |
*) |
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 | |
PATH=/usr/bin:/bin:/usr/sbin:/sbin export PATH | |
# ssh-installer | |
# copies a pkg with scp and runs installer on target | |
# usage: ssh-installer [USER@]HOST PKGFILE [other installer options] | |
TMPPKGDIR="/private/tmp/ssh-installer/" |
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
tell application "BBEdit" | |
if not (exists text document 1) then | |
return | |
end if | |
if source language of text document 1 is not "UNIX Shell Script" then | |
set thename to name of text document 1 | |
display dialog "Document '" & thename & "' does not seem to be a shell script!" | |
return | |
end if |
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
global html | |
global processedURLs | |
on appendLineWithDoc(theDoc) | |
tell application "Safari" | |
tell theDoc | |
try | |
my appendHTML(" <li>") | |
my appendHTML("<a href=\"" & URL & "\">") | |
my appendHTML(name) |
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
# ENVIRONMENT VARIABLES | |
# add my ~/bin dir to path | |
PATH=${PATH}:~/bin | |
export PATH | |
# simple prompt | |
# default macOS prompt is: \h:\W \u\$ | |
export PS1="\W \$ " |
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/python | |
from Cocoa import NSImage, NSImageNameComputer, NSSize, NSMakeSize, NSMakeRect, NSBitmapImageRep, NSPNGFileType, NSData | |
from CoreGraphics import CGImage | |
from objc import NULL | |
size = NSMakeSize(512, 512) | |
image = NSImage.imageNamed_(NSImageNameComputer) | |
image.setSize_(size) |
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>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadContent</key> | |
<dict> | |
<key>com.apple.driver.AppleHIDMouse</key> |
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>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadDescription</key> | |
<string>Empty Profile that controls nothing</string> | |
<key>PayloadDisplayName</key> |
OlderNewer