Skip to content

Instantly share code, notes, and snippets.

View hugoShaka's full-sized avatar

Hugo Shaka hugoShaka

View GitHub Profile
@hugoShaka
hugoShaka / retag.py
Last active July 14, 2019 20:49
Short and dirty poc of docker retagging without pulling. Same registry, different repositories.
"""
Re-tag images on distant registry without pulling them, even if not in the same
repository. Only compatible with v2 manifests.
Usage:
retag <source> <destination> [--debug] [--insecure]
retag -h | --help
"""
# Disclaimer : no QA and no lint yet, poc quality script.
"""
This is a bot monitoring WebDAV calendar and issuing slack alerts.
"""
import os
import time
import ics
import requests
from slackclient import SlackClient
@hugoShaka
hugoShaka / xenial-touchpad.sh
Last active September 11, 2017 16:21
How to avoid the touchpad to fuck up when you're typing.
# Thanks to : Jim Basilio http://blog.jimbasilio.me/2015/10/libinput-and-ubuntu-15-10/
# Peter Hutterer http://who-t.blogspot.fr/2016/04/why-libinput-doesnt-have-lot-of-config.html
sudo apt update
sudo apt install xserver-xorg-input-libinput
cd /usr/share/X11/xorg.conf.d/
sudo mv 50-synaptics.conf ~/synaptics.conf.bak
sudo echo '# Match on all types of devices but tablet devices and joysticks
Section "InputClass"