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 / .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
@seandlg
seandlg / vimrc
Created December 2, 2019 11:51
Vim Configuration (etc/vim/vimrc)
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
" the call to :runtime you can find below. If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim