Skip to content

Instantly share code, notes, and snippets.

View DerEnderKeks's full-sized avatar

DerEnderKeks DerEnderKeks

View GitHub Profile
@DerEnderKeks
DerEnderKeks / ^^.ahk
Created August 3, 2018 17:14
Replace ^^,`` and `` with a single one of them
#NoEnv
#SingleInstance, force
SendMode Input
SetWorkingDir %A_ScriptDir%
:*B0:^^::
SendInput, {bs}
return
:*B0:``::
@DerEnderKeks
DerEnderKeks / clearDownloads.sh
Created January 20, 2019 15:14
Delete old files from the Downloads folder
#!/usr/bin/env bash
# Works with Git-Bash
echo "Deleting files..."
find "$HOME/Downloads/" -type f -mtime +3 -exec rm -f {} \;
echo "Deleting empty directories..."
find "$HOME/Downloads/" -type d -empty -delete
echo "Done."
@DerEnderKeks
DerEnderKeks / mfcuk_r65.md
Created March 11, 2019 20:50 — forked from ceres-c/mfcuk_r65.md
Using mfcuk r65 with libnfc 1.5.1 in 2018

You first need to download both libnfc 1.5.1 and mfcuk r65. The former is available among github releases wile the latter can be obtained via git rebase.

If you're on Arch you'll need pcsclite, if on Debian derivates libpcsclite-dev

Let's compile libnfc (<user> is your username)

mkdir -p ~/builds/nfc
cd ~/builds/nfc
wget https://github.com/nfc-tools/libnfc/releases/download/libnfc-1.5.1/libnfc-1.5.1.tar.gz

tar zxf libnfc-1.5.1.tar.gz

@DerEnderKeks
DerEnderKeks / print-minecraft-stats.sh
Created November 15, 2020 14:13
Script to print a specific Minecraft statistic for all players
#!/usr/bin/env bash
# This script prints the uuid, username and value of a minecraft statistic from the json files (located at world/stats/*.json).
PROFILE_URL="https://sessionserver.mojang.com/session/minecraft/profile"
usage() { echo "Usage: $0 [-d <stats directory>] [-1 <first json path, default 'custom'>] [-2 <second json path, default 'deaths'>]" 1>&2; exit 1; }
while getopts ":d:1:2:" o; do
case "${o}" in
@DerEnderKeks
DerEnderKeks / generator.html
Created March 18, 2021 15:36
Avatar animation "generator"
<!DOCTYPE html>
<!--
This page can be used to generate multiple frames of my avatar with the eyes rotated. Could probably be adjusted to do other stuff as well..
-->
<html>
<head>
<title>Generator</title>
</head>
@DerEnderKeks
DerEnderKeks / filters.txt
Last active October 3, 2023 17:59
My personal uBlock Origin filters
! www.der-postillon.com - hide steady floating button
www.der-postillon.com###steady-floating-button-wrapper
! www.youtube.com - hide Premiere garbage (hides any premiering/announced videos until they are an actual video) and shorts [https://www.reddit.com/r/uBlockOrigin/comments/143mdqv/code_to_block_youtube_shorts_june_2023/]
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::span[contains(text(),"UPCOMING")]])
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::span[contains(text(),"PREMIERE")]])
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::span[contains(@aria-label,"Shorts")]])
youtube.com##:matches-path(/feed/subscriptions) ytd-rich-grid-row, #contents.ytd-rich-grid-row:style(display:contents !important;)
youtube.com##:matches-path(/feed/subscriptions) ytd-rich-section-renderer:has-text(Shorts)
! number of videos per row