Skip to content

Instantly share code, notes, and snippets.

Marc-Olivier Arsenault marcolivierarsenault

Block or report user

Report or block marcolivierarsenault

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View lg alias
git config --global alias.lg "log --branches --remotes=origin --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' HEAD"
@marcolivierarsenault
marcolivierarsenault / backup with apt.txt
Created Nov 4, 2015 — forked from bepcyc/backup with apt.txt
BAckup and restore with aptitude in Ubuntu or Debian
View backup with apt.txt
before backup:
dpkg --get-selections > packages.txt
while restoring:
dpkg --clear-selections
dpkg --set-selections < packages.txt
aptitude install
View config.json
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 60%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#000033",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
View qemu.conf
# Master configuration file for the QEMU driver.
# All settings described here are optional - if omitted, sensible
# defaults are used.
# VNC is configured to listen on 127.0.0.1 by default.
# To make it listen on all public interfaces, uncomment
# this next option.
#
# NB, strong recommendation to enable TLS + x509 certificate
# verification when allowing public access
View Windows GPU passtrough
qemu-system-x86_64 \
-enable-kvm -M q35 -m 8192 -cpu host -smp 4,sockets=1,cores=4,threads=1 \
-bios /usr/share/qemu/bios.bin -vga none \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
-device piix4-ide,bus=pcie.0,id=piix4-ide \
-device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on,romfile=/media/data/vm/gin/MSI.HD7770.1024.120611.rom \
-device vfio-pci,host=01:00.1,bus=pcie.0 \
-drive file=/media/data/vm/gin/gin.img,id=disk,format=raw -device ide-hd,bus=piix4-ide.0,drive=disk \
-drive file=/media/data/vm/gin/tonic.img,id=disk1,format=raw -device ide-hd,bus=piix4-ide.1,drive=disk1 \
-usb -usbdevice host:093a:2521 -usbdevice host:258a:0001 \
View normal kvm
qemu-system-x86_64 \
-enable-kvm -M q35 -m 512 -cpu host -smp 1,sockets=1,cores=1,threads=1 \
-bios /usr/share/qemu/bios.bin \
-vnc :0 -k en-us \
-device piix4-ide,bus=pcie.0,id=piix4-ide1 \
-drive file=/media/data/vm/tequila/tequila.img,id=disk,format=raw -device ide-hd,bus=piix4-ide1.0,drive=disk \
-net nic,vlan=0 \
-net tap,vlan=0,ifname=tun1,script=/etc/qemu-ifup
You can’t perform that action at this time.