Skip to content

Instantly share code, notes, and snippets.

View lemartinet's full-sized avatar

Louis-Emmanuel Martinet lemartinet

View GitHub Profile
@lemartinet
lemartinet / gist:48737ab847cc772e137fac2b88497b32
Created February 16, 2017 20:51
Creating a virtualbox image over network
# Set up source machine
0. Optional, ssh support and lzo
sudo bash
add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
apt-get update
apt-get install ssh lzop
1. Boot Ubuntu USB stick
2. Run fdisk -l to figure out which drive to clone and how many bytes it has
@lemartinet
lemartinet / change_crashplan_backup_service_port.sh
Created February 2, 2016 21:58 — forked from thebengeu/change_crashplan_backup_service_port.sh
Change CrashPlan Backup Service Port (Default 4243 Conflicts with Docker / boot2docker)
#!/bin/sh
PORT=4200
sudo launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist
sudo sed -i '' "s/\(<servicePort>\)[^<]*/\1$PORT/" /Library/Application\ Support/CrashPlan/conf/my.service.xml
sed -i '' "s/#*\(servicePort=\).*/\1$PORT/" /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties
defaults write /Applications/CrashPlan.app/Contents/Resources/CrashPlan\ menu\ bar.app/Contents/Info CPPort $PORT
sudo launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist