Skip to content

Instantly share code, notes, and snippets.

View jimklo's full-sized avatar

Jim Klo jimklo

View GitHub Profile
@jimklo
jimklo / xcode-nuke-uninstall.rb
Created April 21, 2017 20:33 — forked from matti/xcode-nuke-uninstall.rb
completely remove all xcode files
#!/usr/bin/env ruby
cancer_in_home = [
"Library/Developer",
"Library/Preferences/com.apple.dt.*",
"Library/Caches/com.apple.dt.*",
'Library/Application\ Support/Xcode'
]
cancer_in_root = [
/root/.ssh/test_repo_deploy_key:
file.managed:
- mode: 600
- contents: |
fake_private_key
multi line
awesome sauce
wow doge
@jimklo
jimklo / map reduce
Created February 23, 2012 22:41 — forked from nisbus/map reduce
Map reduce problem
map function:
function(doc) {
if(doc.symbol.lastIndexOf("HFF") == 0){
emit(doc.symbol,{last_update:doc.last_updatedutc,symbol:doc.symbol,last_yield:doc.last_yield});
}
}
View output: