Skip to content

Instantly share code, notes, and snippets.

View robindegen's full-sized avatar

Robin 'Ruadeil' Degen robindegen

  • Netherlands
  • 13:29 (UTC +02:00)
View GitHub Profile
sudo hdiutil convert "InstallESD.dmg" -format UDTO -o "InstallESD.iso"
@robindegen
robindegen / gist:93ea0deaab6ff6db5281
Created June 19, 2015 13:57
Make bootable usb from osx dmg
Create gpt apple fs
then
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled\ 1 --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction
@robindegen
robindegen / gist:ddc4b8bcfcf6119f70bd
Created June 19, 2015 15:51
Convert ESXi vmdisk imported from Fusion
vmkfstools -i source.vmdk destination.vmdk -d 'thin' -a lsilogic
@robindegen
robindegen / gist:3ccbcf526e4c0ff1f6f4
Created June 28, 2015 12:16
Fix Steam Cave Story+ on OSX
cd /
sudo ln -s /Users/robindegen/Library/Application\ Support/Steam/steamapps/common/Cave\ Story+/data/ data
@robindegen
robindegen / gist:03b6d1e208d182c6e504
Created June 29, 2015 09:47
Rewrite all git history in all branches to move everything to a subfolder
#!/bin/bash
git checkout origin/master
git branch -D master
export folder_name=$1
for remote in `git branch -r | grep -v /HEAD`;
do
git checkout --track $remote ;
@robindegen
robindegen / gist:c37176036d9b4b64fde4
Created June 29, 2015 13:17
Export dependency tree based on CMake scripts
# CMakeGraphVizOptions.cmake
set(GRAPHVIZ_EXTERNAL_LIBS OFF)
set(GRAPHVIZ_IGNORE_TARGETS "[Tt]est")
cmake --graphviz=test.dot .
sfdp -Goverlap=ortho -Gsplines=true -n -Tpng test.dot 1>dependencies.png
@robindegen
robindegen / gist:1c1de47006e313c7d9e4
Created July 3, 2015 08:31
Squash all commits in a git repository to a single one
git rebase -i --root
@robindegen
robindegen / gist:e9361f6d4b4c4e23d2b5
Created July 7, 2015 06:54
Find all git repositories in a folder recursively
find . -name '.git' -exec dirname '{}' \;
@robindegen
robindegen / gist:503b1dcca81ee93e18fa
Created July 18, 2015 23:38
Use osx keychain with GIT
git config --global credential.helper osxkeychain
@robindegen
robindegen / gist:88355768bbecaeb9c3aa
Created July 31, 2015 17:16
Manually trigger windows 10 update
wuauclt.exe /updatenow