Skip to content

Instantly share code, notes, and snippets.

Hugo Shaka hugoShaka

Block or report user

Report or block hugoShaka

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
@hugoShaka
hugoShaka / retag.py
Last active Jul 14, 2019
Short and dirty poc of docker retagging without pulling. Same registry, different repositories.
View retag.py
"""
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.
View slackdav.py
"""
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 Sep 11, 2017
How to avoid the touchpad to fuck up when you're typing.
View xenial-touchpad.sh
# 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"
You can’t perform that action at this time.