This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before backup: | |
dpkg --get-selections > packages.txt | |
while restoring: | |
dpkg --clear-selections | |
dpkg --set-selections < packages.txt | |
aptitude install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Protocol sniffer between two serial port. Dump the output to a file and in the consol | |
@Author Marc-Olivier Arsenault | |
@Date Jan 3rd 2017 | |
''' | |
import serial | |
import sys | |
port1 = "/dev/ttyS1" | |
port2 = "/dev/ttyS3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: | |
" Marc-Olivier Arsenault | |
" marcolivier.arsenault@gmail.com | |
" | |
" Version: | |
" 1.0 - 20/03/2017 | |
" | |
" Blog_post: | |
" Highly inspired from Awesome vim file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change the prefix from 'C-b' to 'C-a' | |
# (remap capslock to CTRL for easy access) | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# start with window 1 (instead of 0) | |
set -g base-index 1 | |
# start with pane 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import decimal | |
import urllib.request | |
import boto3 | |
dynamodb = boto3.resource('dynamodb') | |
table = dynamodb.Table('AltCoinHistory') | |
def lambda_handler(event, context): |
OlderNewer