Skip to content

Instantly share code, notes, and snippets.

View sbentzen's full-sized avatar

Shaun Bentzen sbentzen

View GitHub Profile
@sbentzen
sbentzen / osx-software-update-urls.txt
Created March 31, 2020 15:16 — forked from stefanschmidt/osx-software-update-urls.txt
URLs of the index files used by the software update client on OS X
10.3 (Panther): http://swscan.apple.com/scanningpoints/scanningpointX.xml
10.4 (Tiger): http://swscan.apple.com/content/catalogs/index-1.sucatalog
10.5 (Leopard): http://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog
10.6 (Snow Leopard): http://swscan.apple.com/content/catalogs/others/index-leopard-snowleopard.merged-1.sucatalog
10.7 (Lion): http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog
10.8 (Mountain Lion): http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
10.9 (Mavericks): http://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
10.9 (Mavericks incl. seeds): http://swscan.apple.com/content/catalogs/others/index-10.9seed-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
@sbentzen
sbentzen / Submodule-Cloner.sh
Created August 14, 2012 22:07
Used to quickly get ALL registered submodules on the master branch.
#!/bin/bash
git submodule init
git submodule update
git submodule foreach git checkout master
git submodule foreach git pull
@sbentzen
sbentzen / Things-Migration.applescript
Created February 25, 2012 00:37
Things to Things Migration
---------
-- Convert Things database to Things Beta database.
-- This script clones all area's, projects, people and tasks with all its relations, properties and correct ordering without any duplicates.
-- * 25 November 2011: Initial version.
-- * 26 November 2011: Removed some linefeeds to make it better readable on the forum.
-- * 27 November 2011: Fixed bug in addTask where activation was set in error.
--
-- TODO:
-- * Preserve log dates of completed tasks in the logbook. (I really want this, but think it isn't possible according to the current Things AppleScipt Guide?)
-- * Preserve repeating schedules. (I think this isn't possible either?)
@sbentzen
sbentzen / roflcopter.sh
Created February 2, 2012 01:06
The rofl copter on mac using say
#!/bin/bash
say "my raw full copter goes"
say -r 1000 "swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa swa s
@sbentzen
sbentzen / update-svn.sh
Created January 20, 2012 18:37
update a git-svn repository
#!/bin/bash
git fetch
git rebase
@sbentzen
sbentzen / Enable_Google_Toolbar.js
Created January 20, 2012 01:41
Enable the google toolbar in safari or chrome or firefox with this javascript piece
document.cookie="PREF=ID=03fd476a699d6487:U=88e8716486ff1e5d:FF=0:LD=en:CR=2:TM=1322688084:LM=1322688085:S=McEsyvcXKMiVfGds; path=/; domain=.google.com";window.location.reload();
@sbentzen
sbentzen / compound_interest.py
Created January 18, 2012 01:08
A Challenge!
import math
def compound_interest(principle, rate, term, period):
return principle * pow((1 + (rate/period)),(term * period))
p = float(raw_input("What is the Principal Value: "))
r = float(raw_input("What is the Rate: "))
t = float(raw_input("What is the Term: "))
n = float(raw_input("What is the Number of Payments: "))
@sbentzen
sbentzen / Jekyll.sh
Created December 16, 2011 13:40
Shell Script to Setup Jekyll
#
# jekyll.sh
#
# Use this inside the git repository or folder you want the jekyll site to be. Then, do what you do best and design and read documents on it.
#
# Created by Shaun Bentzen on 2011-12-16.
#!/bin/bash
git clone git://gist.github.com/1367098.git
mv 1367098/* ./
@sbentzen
sbentzen / _config.yml
Created November 15, 2011 13:43
Default config for Jekyll
safe: false
auto: false
server: false
server_port: 4000
baseurl: /
source: .
destination: ./_site
plugins: ./_plugins
@sbentzen
sbentzen / GCD+NSXML(GOOD).m
Created August 31, 2011 19:55
Grand Central Dispatch + NSXMLParser (the quick change)
dispatch_sync(rssQueue, ^{
[rssParser parse];
});