Skip to content

Instantly share code, notes, and snippets.

View sd65's full-sized avatar

Sylvain Doignon sd65

View GitHub Profile
@sd65
sd65 / test
Created May 19, 2020 16:00
test
sudo true # hopefully sudo is happy
sudo apt-get update -qy
sudo apt-get upgrade -qy
sudo apt-get install -qy git python3-pip libglib2.0-dev libhidapi-hidraw0 libhidapi-libusb0 libdbus-1-dev
sudo pip3 install hid aioconsole crc8 dbus-python
mkdir -p ~/joycontrol
git clone https://github.com/mart1nro/joycontrol ~/joycontrol
@sd65
sd65 / OWOuais.js
Last active October 3, 2018 14:23
Greasemonkey for Office 365 Browser Notification
// ==UserScript==
// @name OWouais
// @version 1
// @description Bring the necessary Desktop Notification to Outlook Web App.
// @author SD
// @match https://outlook.office.com/owa/*
// @exclude */manifests/*
// @grant none
// ==/UserScript==
#!/bin/bash
# Init
WORDLIST=/usr/share/dict/words
WORDLIST_N=${1:-1500}
FILE=/dev/shm/f
COUNTER=0
FOUND=""
# Min 5 chars
@sd65
sd65 / confluence_attachement_nuker.sh
Created June 20, 2018 12:58
Delete attachements from a Confluence page
#/bin/bash
# $1 = pageid (obtained in URL)
# JIRA_USERNAME & JIRA_PASSWORD must be set
# Needs jq and curl to be installed
# Fill this (Confluence workspace name):
PROJECT_NAME=xxx
IFS=$'\n'
@sd65
sd65 / vpn.sh
Last active November 4, 2017 15:02
instaVPN
#!/bin/bash
# Secure OpenVPN server installer for Debian, Ubuntu, CentOS and Arch Linux
# https://github.com/Angristan/OpenVPN-install
if [[ "$EUID" -ne 0 ]]; then
echo "Sorry, you need to run this as root"
exit 1
fi
@sd65
sd65 / pingBTOrLock
Created September 4, 2017 12:18
Prevent laptop grab theft
#!/bin/bash
DEVICE="$1"
SCAN_DELAY=10
trap ctrl_c INT
function ctrl_c() {
echo "Shutting down..."
exit 0