Skip to content

Instantly share code, notes, and snippets.

View krmnn's full-sized avatar

Thomas Karmann krmnn

  • Berlin
  • 07:33 (UTC +02:00)
View GitHub Profile
@krmnn
krmnn / kernelcache
Created March 15, 2015 14:18
rebuild OS X kernelcaches from Mavericks upward
kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions
@krmnn
krmnn / gist:b77321b4b9aad7c4d996
Created March 15, 2015 14:14
Applescript to open the current Finder directory with iTerm
on run
tell application "Finder"
set dir_path to quoted form of (POSIX path of (folder of the front window as alias))
end tell
CD_to(dir_path)
end run
on CD_to(theDir)
tell application "iTerm"
activate
@krmnn
krmnn / gist:9603278
Last active August 29, 2015 13:57
Debian Wheezy on Intel Galileo Development Board
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcpVerzeichnis Skelet:
> mkdir -p loop sdcard image
Plattenimage erstellen (3,8 GB max wegen FAT):
> dd if=/dev/zero of=loopback.img bs=10M count=380