Skip to content

Instantly share code, notes, and snippets.

View seandlg's full-sized avatar
🎭
Day and night

Sean seandlg

🎭
Day and night
  • Berlin, Germany
View GitHub Profile
@seandlg
seandlg / main.js
Last active February 22, 2023 10:05
yachtworld Ad Remover
// ==UserScript==
// @name yachtworld.de Ad Remover
// @namespace Violentmonkey Scripts
// @match https://www.yachtworld.de/boote-kaufen/*
// @grant none
// @version 1.2
// @author seandlg
// @description 22/02/2023, 10:55:38
// @downloadURL https://gist.githubusercontent.com/seandlg/4a8f8cd2ab316c5a3636ce7155d3a254/raw
// ==/UserScript==
@seandlg
seandlg / book.js
Last active November 3, 2023 16:32
Appointment booking help - berlin.de
// ==UserScript==
// @name Terminbuchungshilfe - berlin.de
// @namespace Violentmonkey Scripts
// @match https://service.berlin.de/terminvereinbarung/termin/day/
// @match https://service.berlin.de/terminvereinbarung/termin/taken/
// @grant none
// @version 1.4
// @author seandlg
// @description 2/15/2023, 4:03:55 PM
// @icon https://www.berlin.de/favicon.ico
@seandlg
seandlg / gist:7a20bcfc1c5ccdc1f608b58bf9b8ef77
Created December 6, 2022 07:51
Improved reading experience on heise.de
// ==UserScript==
// @name heise.de improved reading experience
// @namespace Violentmonkey Scripts
// @match https://www.heise.de/*
// @grant none
// @version 1.0
// @author -
// @description 12/5/2022, 7:15:22 PM
// ==/UserScript==
@seandlg
seandlg / gist:c84ffa2921b3c3ea2bd90b9fb055e1fe
Created December 6, 2022 07:50
Improved reading experience on heise.de
// ==UserScript==
// @name heise.de improved reading experience
// @namespace Violentmonkey Scripts
// @match https://www.heise.de/*
// @grant none
// @version 1.0
// @author -
// @description 12/5/2022, 7:15:22 PM
// ==/UserScript==
@seandlg
seandlg / gist:f4290e8e4a07498d98699bd870ca825c
Created December 6, 2022 07:50
Improved reading experience on heise.de
// ==UserScript==
// @name heise.de improved reading experience
// @namespace Violentmonkey Scripts
// @match https://www.heise.de/*
// @grant none
// @version 1.0
// @author -
// @description 12/5/2022, 7:15:22 PM
// ==/UserScript==
@seandlg
seandlg / scrollToBottom.js
Created June 28, 2022 16:17
Scroll to bottom
// Simply run in console
(async() => {
const noScrolls = 30;
const waitBetweenScrolls = 100;
for (const it of Array(noScrolls)) {
window.scrollTo(0, document.body.scrollHeight);
await new Promise((resolve,reject) => {setTimeout(() => {resolve(true)}, waitBetweenScrolls)})
}
})()
@seandlg
seandlg / spawnAlacritty.bash
Last active December 8, 2020 23:52
Spawn Alacritty instance with the same cwd as the currently focused Alacritty instance (if there is one). Built for swaywm.
#!/usr/bin/env bash
# Check that jq and swaymsg are installed
if ! command -v jq &> /dev/null || ! command -v swaymsg &> /dev/null; then
echo "jq and swaymsg are required for this script to work!"
exit 1
fi
# Get the app_id of the currently focused window
APP=$(swaymsg -t get_tree | jq -r '.. | select(.focused == true)? | .app_id')
@seandlg
seandlg / settings.json
Created July 9, 2020 03:19
VSCode settings.json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
"window.zoomLevel": 0,
"workbench.startupEditor": "newUntitledFile",
"eslint.validate": [
"vue",
@seandlg
seandlg / blockmails.py
Created January 15, 2020 18:43
Snippets to block domains in Thunderbird
# creates string "conditions="OR ....." that has to be pasted to msgFilterRules.dat in thunderbird folder
mails = []
filtermails = ["@eulenberg.de", "@aol.com", "@aws.amazon.com", "@aol.com", "@gmx.de", "@googlemail.com", "@web.de"]
with open("blockmails.txt", "r") as f:
for line in f.readlines():
line = line.strip()
if not line in filtermails:
mails.append(line)
@seandlg
seandlg / .tmux.conf
Created December 8, 2019 19:44
Practical Tmus Configuration (~/.tmux.conf)
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0