Skip to content

Instantly share code, notes, and snippets.

View NeQuissimus's full-sized avatar
:octocat:
This is my status

Tim Steinbach NeQuissimus

:octocat:
This is my status
View GitHub Profile
@NeQuissimus
NeQuissimus / pdfkit.rb
Created May 3, 2012 14:01
pdfkit.rb for working with showoff
# /Library/Ruby/Gems/1.8/gems/pdfkit-0.5.2/lib/pdfkit/pdfkit.rb
# I kept getting invalid argument and file not found errors when creating a PDF
# from my showoff presentations. Changing a few lines fixed this behaviour.
# Thanks to clyfe (https://gist.github.com/1330326) for his optimized version!
class PDFKit
class NoExecutableError < StandardError
def initialize
@NeQuissimus
NeQuissimus / change_xcode_path
Created May 5, 2012 00:24
Fix XCode 4.3 path selection
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer
@NeQuissimus
NeQuissimus / 1_create_pipe
Created May 5, 2012 12:53
Limit bandwidth
ipfw pipe 1 config bw 100KB
@NeQuissimus
NeQuissimus / headless_vm
Created May 5, 2012 17:57
Start VMware Fusion headless VM
/Library/Application\ Support/VMware\ Fusion/vmrun -T fusion start /Volumes/VMs/_Hadoop/Hadoop\ Master.vmwarevm/Hadoop\ Master.vmx nogui
@NeQuissimus
NeQuissimus / enable_gatekeeper
Created May 5, 2012 17:58
Gatekeeper with OSX 10.7.3
sudo spctl --enable
@NeQuissimus
NeQuissimus / no_hibernate
Created May 5, 2012 18:08
Disable OSX hibernate mode
sudo pmset hibernatemode 0
@NeQuissimus
NeQuissimus / hide_library
Created May 5, 2012 18:19
(Un)Hide OSX ~/Library/
chflags hidden ~/Library
@NeQuissimus
NeQuissimus / .gtkrc-2.0
Created May 5, 2012 18:22
Transparent icon background
style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 0
font_name="Sans Bold"
base[NORMAL] = "#ffffff"
base[SELECTED] = "#ffffff"
base[ACTIVE] = "#fefefe"
fg[NORMAL] = "#ffffff"
@NeQuissimus
NeQuissimus / dmg_to_iso
Created May 5, 2012 18:25
Convert DMG to ISO and back
hdiutil convert image.dmg -format UDTO -o image.iso
@NeQuissimus
NeQuissimus / language_chooser
Created May 5, 2012 18:32
OSX language chooser
sudo "/System/Library/CoreServices/Language Chooser.app/Contents/MacOS/Language Chooser"