Skip to content

Instantly share code, notes, and snippets.

View tobiasstrebitzer's full-sized avatar

Tobias Strebitzer tobiasstrebitzer

View GitHub Profile
@tobiasstrebitzer
tobiasstrebitzer / workstation.scpt
Created January 31, 2011 15:33
This Applescript lets you select from your Transmit v4 SFTP Favourites and opens Transmit, Textmate and a (ssh- connecting) Terminal.
tell application "Finder"
set homeFolder to (path to home folder as text)
set cleanupAtStartupFolder to homeFolder & "Library:Caches:Cleanup At Startup:" as alias
if not (exists folder "Transmit" of cleanupAtStartupFolder) then
make new folder at cleanupAtStartupFolder with properties {name:"Transmit"}
end if
end tell
set transmitPath to homeFolder & "Library:Caches:Metadata:Transmit:" as alias
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active November 14, 2024 17:18
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@tobiasstrebitzer
tobiasstrebitzer / osxdns.sh
Created September 27, 2012 08:20
Set up a local DNS server to catch all requests to a specific tld to your local machine (osx lion)
#! /bin/bash
# USAGE: sudo ./osxdns.sh tld
# Templates
namedconf='include "/etc/rndc.key";
controls {
inet 127.0.0.1 port 54 allow {any;}
keys { "rndc-key"; };
};
@tobiasstrebitzer
tobiasstrebitzer / bower.json
Created June 30, 2015 03:24
Polymer 1.0 Global Variables Behavior
{
"name": "polymer-globals-behavior",
"dependencies": {
"polymer": "Polymer/polymer#~1.0.5"
}
}