Skip to content

Instantly share code, notes, and snippets.

View k9ordon's full-sized avatar
🐙

Klemens Gordon k9ordon

🐙
View GitHub Profile
tell application "System Events"
repeat while exists (processes where name is "SecurityAgent")
tell process "SecurityAgent"
click button "Allow" of group 1 of window 1
end tell
delay 0.2
end repeat
end tell
@k9ordon
k9ordon / README
Created May 15, 2014 10:48 — forked from seriema/README
These two files should help you to import passwords from mac OS X keychains to 1password.
Assumptions:
1) You have some experience with scripting/are a power-user. These scripts worked for me
but they haven't been extensively tested and if they don't work, you're on your own!
Please read this whole document before starting this process. If any of it seems
incomprehensible/frightening/over your head please do not use these scripts. You will
probably do something Very Bad and I wouldn't want that.
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they
#!/bin/bash
#
# Originally from "Automatically download Chromium nightly builds"
# http://top-frog.com/2010/05/29/automatically-download-chromium-nightly-builds/
LATEST=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/LAST_CHANGE`
CURRENT=`defaults read /Applications/Chromium.app/Contents/Info.plist SCMRevision 2>/dev/null`
PROCESSID=`ps ux | awk '/Chromium/ && !/awk/ {print $2}'`
if [[ $LATEST -eq $CURRENT ]]; then
@k9ordon
k9ordon / homebrew-yosemite.md
Last active August 29, 2015 14:02
Homebrew on OSX 10.10 Yosemite

#Fix your homebrew installation

open

/usr/local/Library/brew.rb

replace

#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
@k9ordon
k9ordon / yosemite-comp.md
Last active August 29, 2015 14:02
OSX 10.10 Yosemite - Compatibility list

A short list on osx yosemite compatibility from my setup

System Version: OS X 10.10 b2 (14A261i) Model Identifier: MacBookAir6,1

working

  • atom
  • safari
  • little snitch
  • bartender
@k9ordon
k9ordon / gist:19e284a8a3a285415e5a
Created August 4, 2014 11:28
nodejs simple sync
var init = function() {
next();
};
var next = function() {
++idx;
if(!steps[idx]) process.exit();
steps[idx](next);
};
@k9ordon
k9ordon / gist:00923fe3b13525948c37
Last active August 29, 2015 14:10
Asphalt 8:Airborne
Two Mics - Bluebird
Celldweller - Through the Gates
Celldweller - Pulsar
Dj Gontran - Moby Glitch
Krubb Wenkroist - Bleach
Di Dubai - Vodka Aspirin
Di Gontran - Chemistry
AWOLNATION - Burn it Down
MuteMath - Blood Pressure
@k9ordon
k9ordon / gist:582281
Created September 16, 2010 11:21 — forked from padolsey/gist:527683
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// if (ie) { alert('IE ' + ie); } // else ie version is not a number;
// if(!ie) { alert ('IE is Kryptonite.'); }
var ie = (function(){
var div = document.createElement('div');
@k9ordon
k9ordon / gist:4762681
Created February 12, 2013 12:57
8tracks liked tracks to plain
$( "li.track" ).each(function( index ) {
var track = $('.t', this).text(),
artist = $('.a', this).text().replace("&","");
$(this).text(artist + ' - ' +track);
});
@k9ordon
k9ordon / index.html
Created May 30, 2016 10:53
super-uber-chapter-meetup homepage
<html><head><title>super-uber-chapter-meetup</title></head><body><img src="http://media0.giphy.com/gifsu/l2Je7F2ADWJZmBrEc/giphy-glitter.gif"> <br><a href="http://karriere.at">we are hiring</a></body></html>