Skip to content

Instantly share code, notes, and snippets.

View sharethewisdom's full-sized avatar

Bart De Roy sharethewisdom

  • Belgium
View GitHub Profile
@sharethewisdom
sharethewisdom / GrabLinks.user.js
Last active August 29, 2015 14:06
Lists all links on a (Youtube) page for clipboard copy (disclaimer: I'm NOT the author)
@sharethewisdom
sharethewisdom / global.css
Last active September 29, 2015 21:28
global 'dark' userstyle
input[type='text']{
-moz-appearance: button!important;
}
:focus{outline: none!important}
button::-moz-focus-inner{border: 0!important}
html,img,video,input,select,iframe{
-webkit-filter: invert(100%) hue-rotate(180deg)!important;
}
input,body{
background-color: #000000 !important;
@sharethewisdom
sharethewisdom / so.user.js
Last active October 13, 2015 13:10
Changes links and imgur image urls to be protocol relative in order to avoid mixed content on Stack Exchange sites.
// ==UserScript==
// @name Stack Overflow Patch
// @description Changes some insecure urls on Stack Exchange sites to https
// @author Bart De Roy
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
// @match *://*.superuser.com/*
// @match *://*.serverfault.com/*
// @match *://*.mathoverflow.net/*
@sharethewisdom
sharethewisdom / yt.user.js
Created January 20, 2016 10:18
Removes the autoplay up next feature
// ==UserScript==
// @version 1.0.2
// @name Removes the autoplay up next feature
// @match *://www.youtube.com/*
// @run-at document-start
// @grant none
// @noframes
// ==/UserScript==
/*---
NOTE: I am not the author.

Keybase proof

I hereby claim:

  • I am sharethewisdom on github.
  • I am sharethewisdom (https://keybase.io/sharethewisdom) on keybase.
  • I have a public key ASDCwEkKCIF8R7fiHLg3kdtd-faE_yl2Tel6Ya6N9CjJTQo

To claim this, I am signing this object:

@sharethewisdom
sharethewisdom / iptables_rules.sh
Created December 12, 2016 22:04 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
Can password typing in the browser be made less obvious
for a keylogger?
No... probably this is creating another attack surface...
but anyway.
Suppose you'd randomize the rate, and the order in
which characters reach the DOM, introducing additional
characters and keystrokes.
@sharethewisdom
sharethewisdom / yt.user.js
Last active January 20, 2018 17:31
userscript to make youtube user friendly
// ==UserScript==
// @name Youtube watch redirect
// @namespace http://tampermonkey.net/
// @version 0.2
// @description redirect watch pages, channel and user video listings and add some magic
// @author Bart De Roy
// @match https://www.youtube.com
// @match https://www.youtube.com/*
// @homepageURL https://gist.github.com/sharethewisdom/
// @downloadURL https://gist.github.com/sharethewisdom/56585798273ef6a0e98e393c5c95e9c5/raw/3f7266847a61f8ee4a3e0250b5112359eb54c762/yt.user.js
\documentclass[border=5mm]{standalone}
\usepackage{filecontents}
\begin{filecontents*}{A0.txt}
x y ey- ey+ label
21 -26 {} {} A0
33 -25 {} {} A1
40 -23 2 2 E2
45 -19.5 2.5 2 A2
49 -14 1 1 C\sharp3
@sharethewisdom
sharethewisdom / 80-mkinitcpio-patch.hook
Last active September 20, 2019 12:23
mkinitcpio patch
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = usr/bin/mkinitcpio
[Action]
Description = Patching /usr/bin/mkinitcpio
When = PostTransaction
Exec = /usr/bin/patch /usr/bin/mkinitcpio /root/mkinitcpio.patch