Skip to content

Instantly share code, notes, and snippets.


David Wattier Vedrillan

View GitHub Profile
Vedrillan / lxcremove
Created Nov 15, 2018
Script used to remove the lxc container
View lxcremove
lxc stop -f $NAME
lxc delete $NAME
sudo sed -i "/$NAME.lxd #lxdeploy/d" /etc/hosts
ssh-keygen -qR "$NAME".lxd &>/dev/null
Vedrillan / lxcdeploy
Last active Jan 16, 2019
Script used to create the lxc container
View lxcdeploy
while [[ $# -gt 0 ]]
case $key in
Vedrillan / .gitmessage
Last active Nov 22, 2018
File used as template for Git commit message.
View .gitmessage
# Summary on the first line, --------------------|
# its length should not exceed 50 characters. ---|
# Leave a blank line between summary and description.
# Description of the commit, you must wrap line at the 72nd mark. -----|
# The description can be as verbose as you see fit. -------------------|
View commit-msg
import sys
import re
def print_error(msg):
print("\033[91m" + "[error] " + "\033[0m" + msg, file=sys.stderr)