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(){ | |
//Konami magic | |
var code=[38,38,40,40,37,39,37,39,66,65], konamiStep=0; | |
window.addEventListener("keydown", function(event) { | |
if(event.keyCode==code[konamiStep]){konamiStep++;}else{konamiStep=0;} | |
if(konamiStep==code.length){ | |
//KONAMI MAGIC HERE | |
konamiStep=0; | |
} | |
}, false); |
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
lynx -dump http://www.daysoftheyear.com/days/$(date +%Y)/$(date +%m)/ | grep -v "^\s" | grep -v "^\s*$"|sed "s/\[[0-9]*\]/ -/;s/And also.../Fun 33th Mon, 9999/"|sed -n "/\S* $(date +%-d)\S* \S*, \d*/,/\S* \d*\S* \S*, \d*/p"|head -n -1;echo "See http://www.daysoftheyear.com for more" |
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
\usepackage{listings} | |
\usepackage{color} | |
\usepackage{float} | |
\definecolor{lightgray}{rgb}{0.95, 0.95, 0.95} | |
\definecolor{darkgray}{rgb}{0.4, 0.4, 0.4} | |
\definecolor{purple}{rgb}{0.65, 0.12, 0.82} | |
% Shamelessly stolen from: http://tex.stackexchange.com/a/22992/37828 | |
\lstdefinelanguage{Assembler}[x86masm]{Assembler}{% |
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
#!/bin/bash | |
fbase=$1 | |
flocal=$2 | |
fremote=$3 | |
fmerge=$4 | |
echo cp $flocal $fmerge | |
cp $flocal $fmerge | |
echo keepassxc-cli merge -s "$fmerge" "$fremote" | |
keepassxc-cli merge -s "$fmerge" "$fremote" | |
exit $? |
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/python3 | |
# Name: Make a JSON of folk dances based on id3 files, fix some spelling and capitalisation | |
# Usage: ls *.mp3 | ./extract.py | |
# Just pipe a list of filenames into it | |
# requires eyeD3 (http://eyed3.nicfit.net/) | |
# By Robbert Gurdeep Singh | |
################################################################################ | |
import eyed3 | |
import re |
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
/* ==UserStyle== | |
@name ReMarkable upload Button | |
@namespace beardhatcode.be | |
@version 1.0.0 | |
@description Add an upload button on USB Web interface of your ReMarkable, allowing you to upload without dragging | |
@author Beardhatcode | |
==/UserStyle== */ | |
@-moz-document url("http://10.11.99.1/") { | |
input[type="file"] { | |
width: 7em; |
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 Epurse to ledger | |
// @namespace beardhatcode | |
// @match https://epurse.ugent.be/transaction | |
// @grant GM_registerMenuCommand | |
// @grant GM_setClipboard | |
// @grant GM_download | |
// @version 1.0 | |
// @author - | |
// @run-at document-idle |
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 Github nixpkgs PR tracker | |
// @namespace beardhatcode | |
// @match https://github.com/* | |
// @version 1.0 | |
// @author - | |
// @description Adds a link to nixpk.gs/pr-tracker in the sidebar | |
// @downloadURL https://gist.github.com/beardhatcode/aa46f81278d5f4a1d31a592eff9c6db6/raw/nix-pr-tracker.user.js | |
// @inject-into content | |
// ==/UserScript== |
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
mutool poster -x 2 -y 2 "$1" tmp.pdf | |
pdftk A=tmp.pdf cat A4 A3 A1down A2down output "$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
// ==UserScript== | |
// @name Wordle - zeus.gent | |
// @namespace Violentmonkey Scripts | |
// @match https://mattermost.zeus.gent/* | |
// @grant GM_registerMenuCommand | |
// @grant GM_setClipboard | |
// @version 1.0 | |
// @author - | |
// @description 3/1/2022, 12:23:04 PM | |
// ==/UserScript== |
OlderNewer