Skip to content

Instantly share code, notes, and snippets.

@jrhea
jrhea / createvm.bat
Last active August 29, 2015 14:01
Batch file to create VirtualBox VM
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage unregistervm "foo" --delete
echo Creating machine...
VBoxManage createvm --name "foo" -register
echo Registering OS Type
VBoxManage modifyvm "foo" --ostype Debian_64
echo Setting boot order
VBoxManage modifyvm "foo" --boot1 disk
VBoxManage modifyvm "foo" --boot2 none
VBoxManage modifyvm "foo" --boot3 none
@jrhea
jrhea / immutable_vdi.bat
Last active August 29, 2015 14:01
Add an immutable .vdi to a VM.
VBoxManage storageattach "foo" --storagectl "SATA Controller" --port 0 --device 0 --mtype immutable --type hdd --medium "foo.vdi"
@jrhea
jrhea / add_vdi.bat
Created May 13, 2014 05:16
Add a .vdi to a VM.
VBoxManage storageattach "foo" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "foo.vdi"
@jrhea
jrhea / multiattach_vdi.bat
Created May 13, 2014 05:17
Add a multiattach .vdi to a VM.
VBoxManage storageattach "foo" --storagectl "SATA Controller" --port 0 --device 0 --mtype multiattach --type hdd --medium "foo.vdi"
@jrhea
jrhea / host_guest_subnet.bat
Created May 13, 2014 05:18
Create a sub-net between the host and guest OS
echo Creating host-guest internal network
VBoxManage hostonlyif remove "VirtualBox Host-Only Ethernet Adapter"
VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig "VirtualBox Host-Only Ethernet Adapter" --ip 192.168.56.1 --netmask 255.255.255.0
VBoxManage dhcpserver add --ifname "VirtualBox Host-Only Ethernet Adapter" --ip 192.168.56.1 --netmask 255.255.255.0 --lowerip 192.168.56.1 --upperip 192.168.56.2
@jrhea
jrhea / host_guest_shared_dir.bat
Created May 13, 2014 05:19
Share a folder between host and guest OS.
echo Creating shared folder...
VBoxManage sharedfolder add "foo" --name "host" --hostpath C:\shared --automount
@jrhea
jrhea / 0_reuse_code.js
Created May 13, 2014 16:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jrhea
jrhea / new_gist_file_0
Created July 12, 2014 18:20
Kill process that is locking a file
#lsof |grep -i <any_file> to find out the process #kill -9 <pid> to terminate the program
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif
@jrhea
jrhea / artemis_pr.md
Last active January 25, 2019 17:57
Artemis PR Workflow

So you want to contribute to artems?

step 0: pick and issue to address:

Issues tagged as help wanted and/or good first issue are a good place to start: