Skip to content

Instantly share code, notes, and snippets.

View jangxx's full-sized avatar
🖥️
Probably coding rn

Jan Scheiper jangxx

🖥️
Probably coding rn
View GitHub Profile
@jangxx
jangxx / ksk_animation_fix.meta.js
Last active August 18, 2016 16:03
Userscript for Tampermonkey to fix the god-awful slow animations on ksk-steinfurt.de
// ==UserScript==
// @name KSK Animation fix
// @version 0.3
// ==/UserScript==
@jangxx
jangxx / sshfs_ez.sh
Last active March 3, 2019 12:42
Easy sshfs mount script for OSX
#!/bin/bash
if [ -z $1 ]; then
echo "Usage: sshfs_ez user@address [port]";
exit
fi
PORT=22
if [ ! -z $2 ]; then PORT=$2; fi
@jangxx
jangxx / bettersyncvideo.meta.js
Last active October 23, 2017 15:42
Userscript for Tampermonkey to add videos from reddit to a playlist on sync-video.com
// ==UserScript==
// @name Better SyncVideo
// @namespace http://jangxx.com
// @version 0.6
// @description Adds various improvements to sync-video.com, for example reddit integration
// @author jangxx
// @match *://www.sync-video.com/r/*
// @match *://sync-video.com/r/*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@jangxx
jangxx / mdh_greyout.user.js
Last active February 4, 2017 22:03
A userscript that checks all the 3306 pages on milliondollarhomepage.com and greys out the offline ones
// ==UserScript==
// @name Million Dollar Homepage Greyout
// @namespace http://jangxx.com/
// @version 0.1
// @description Greys out all the offline pages on milliondollarhomepage.com
// @author /u/jangxx
// @match http://milliondollarhomepage.com/
// @grant GM_xmlhttpRequest
// @connect *
// ==/UserScript==
@jangxx
jangxx / pocket_open_links_directly.user.js
Last active April 17, 2021 18:43
A Userscript which disables the reader view on the Pocket website and opens links directly instead
@jangxx
jangxx / latex_tree.sh
Last active January 8, 2020 12:59
A small bash script which outputs the contents of a directory as a tree wrapped in LaTeX itemize environments
#!/bin/bash
if [ -z "$1" ]; then
cat <<HELP_USAGE
$(basename $0) <directory>
Prints a tree of all files in the specified directory wrapped in a LaTeX itemize environment.
HELP_USAGE
exit
fi
@jangxx
jangxx / layout_fix.user.js
Last active November 7, 2018 17:10
Fix the layout on moves.rwth-aachen.de
// ==UserScript==
// @name MOVES Layout Fix
// @namespace https://literalchaos.de
// @version 0.1
// @description Disables overflow: hidden on the MOVES main content
// @author jangxx
// @match https://moves.rwth-aachen.de/teaching/*
// @grant none
// @downloadURL https://gist.github.com/jangxx/7a0d2022086fe802001edcd4bdab766f/raw/layout_fix.user.js
// ==/UserScript==
@jangxx
jangxx / youtube_speed_slider.user.js
Last active July 27, 2020 23:42
[DEPRECATED] Youtube has implemented this feature now, so this userscript is not needed anymore. Old description: An improved version of this userscript: https://greasyfork.org/en/scripts/25058-youtube-player-speed-slider Removes the ugly checkbox, adds nicer styling and introduces somewhat cleaner code.
// ==UserScript==
// @name (DEPRECATED) Youtube Player Speed Slider
// @namespace youtube_player_speed_slider
// @version 0.4.0
// @description A userscript that is no longer required. You can uninstall this without losing any features.
// @author Łukasz, jangxx
// @match https://*.youtube.com/*
// @grant none
// @downloadURL https://gist.github.com/jangxx/d56eb1efbf7dcd5d6de3af922af8160b/raw/youtube_speed_slider.user.js
// ==/UserScript==
@jangxx
jangxx / justiny_detector_integration.user.js
Last active October 24, 2022 20:50
Integrates the Justin Y. Detector right into the YouTube comment section.
// ==UserScript==
// @name Justin Y. Detector Integration
// @namespace https://literalchaos.de/
// @version 0.2
// @description Automatically try to find out if Justin. Y has left a comment on a video
// @author jangxx
// @match http://www.youtube.com/*
// @match https://www.youtube.com/*
// @grant GM_xmlhttpRequest
// @downloadURL https://gist.github.com/jangxx/998baf5fd94a6bd6cf400d54c631b213/raw/justiny_detector_integration.user.js
@jangxx
jangxx / update.py
Created March 6, 2019 00:55
Simple DynDNS update script
import argparse, socket, requests, json, os
parser = argparse.ArgumentParser()
parser.add_argument('--username', type=str, help="DynDns Username", required=True)
parser.add_argument('--password', type=str, help="DynDns Password", required=True)
parser.add_argument('--url', type=str, help="Update url with <ipaddr> and <ip6addr> parameters", required=True)
args = parser.parse_args()
# attempt to get the server's ipv4 and ipv6 addresses