This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import sys | |
import re | |
if __name__ == "__main__": | |
if len(sys.argv) != 2: | |
print('Usage:', sys.argv[0], '<process PID>', file=sys.stderr) | |
exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
wordpress: | |
image: wordpress | |
container_name: wp | |
ports: | |
- "8080:80" | |
environment: | |
WORDPRESS_DB_HOST: db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createQR(text) { | |
window.open('https://duckduckgo.com/?q=qr%20'+text) | |
} | |
ifr = document.querySelector('iframe') | |
if (ifr) { | |
document.location.href = ifr.src | |
} else { | |
ard = document.querySelector('.ardplayer-postercontrol'); | |
ard.click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createQR() { | |
var s = document.querySelector('.zdfplayer-anchor-tag-img').style; | |
var url = s.backgroundImage.match('"(.*\.jpg)')[1]; | |
var id = url.match(/([\d]*)_sendung_hsh/)[1]; | |
var result = `https://zdfvodnone-vh.akamaihd.net/i/meta-files/zdf/smil/m3u8/300/${id.substr(0,2)}/${id.substr(2,2)}/${id}_sendung_hsh/3/${id}_sendung_hsh.smil/index_3296000_av.m3u8`; | |
window.open('https://duckduckgo.com/?q=qr%20'+result) | |
} | |
function createButton() { | |
var button = document.createElement("input"); | |
button.type = "button"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name BugMeNot ProperCopy | |
// @namespace com.davidebove.blog | |
// @description Properly copy names on click without spaces issue. See https://bugzilla.mozilla.org/show_bug.cgi?id=1298706 | |
// @match http://bugmenot.com/view/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
function copyToClipboard(element) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import time | |
from subprocess import Popen, DEVNULL | |
import datetime | |
from scapy.all import IP, UDP, NTP | |
from netfilterqueue import NetfilterQueue | |
def get_switch_ip(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name All Times Top | |
// @namespace com.davidebove | |
// @match *://*.reddit.com/r/*/ | |
// @exclude *://*.reddit.com/r/*/*/*/ | |
// @version 1 | |
// @copyright Dbof | |
// @grant none | |
// ==/UserScript== | |
tabmenu = $('ul.tabmenu'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 9GAG NSFW picture peeker | |
// @include http://9gag.com/* | |
// @include https://9gag.com/* | |
// @version 0.1.11 | |
// @description 9GAG NSFW peeker | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.js | |
// @author Dbof, Error418 | |
// @grant GM.xmlHttpRequest | |
// ==/UserScript== |