Skip to content

Instantly share code, notes, and snippets.

View theodric's full-sized avatar
🎯
Shoobydoowop

þēodrīċ theodric

🎯
Shoobydoowop
View GitHub Profile
@theodric
theodric / functions.sh
Last active July 13, 2024 15:30
Random functions
printf "\nSystem has been awake for `echo $delta | awk '{printf("%d:%02d:%02d:%02d\n",($1/60/60/24),($1/60/60%24),($1/60%60),($1%60))}'`\n\n"
@theodric
theodric / fixtweets.sh
Created October 13, 2024 22:07
Extract your tweets in plaintext from the tweets.js / tweets-part1.js files inside your Twitter archive, and remove old-fashioned retweets, plain URLs, and other crap
cat tweets.js | grep -i full_text | sed -E 's/.*"full_text" *: *"(.*)",/\1/' | egrep -v ^@ | egrep -v ^https:// | egrep -v ^RT > fulltext2.txt
@theodric
theodric / pslin.txt
Last active November 29, 2024 13:58
pslin
Get your legit version of PS2021 running under wine:
install: winetricks, wine, wine64
then run:
winetricks vcrun2022 allfonts fontsmooth=rgb gdiplus atmlib msxml3 msxml6
unpack your legit copy of PS2021 and pass the name of the appropriate executable as an argument to wine to run it, e.g.
wine appropriatename.exe
@theodric
theodric / 1337drudge.js
Created December 10, 2024 17:12
Drudge Report black hat hacker-mode userstyle for ViolentMonkey
// ==UserScript==
// @name Drudge Report Black Hat Hax0r Mode
// @namespace http://tampermonkey.net/
// @version 1.1
// @description A dark mode for Drudge Report with a 1337 |-|4><0R æsthetic
// @author Theodric Æðelfriþ
// @match https://drudgereport.com/*
// @grant none
// ==/UserScript==
@theodric
theodric / 1337infowars.js
Created December 14, 2024 18:22
InfoWars Black Hat Hacker userstyle
// ==UserScript==
// @name InfoWars Black Hat Hax0r Mode
// @namespace http://tampermonkey.net/
// @version 1.3
// @description A dark mode for Drudge Report with a 1337 |-|4><0R æsthetic
// @author Theodric Æðelfriþ
// @match https://www.infowars.com/*
// @grant none
// ==/UserScript==
@theodric
theodric / darkrotik.js
Last active December 20, 2024 20:42
Mikrotik webfig color inverter userstyle (dark mode)
// ==UserScript==
// @name MikroTik Inverted Dark Mode
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Invert colors on MikroTik webfig
// @author Peepee Poopoo
// @source https://gist.github.com/theodric/2c3b234c8a668eec50ceb3688aad0786
// @fart hey you, edit this file so it works on your device's IP address/DNS name
// @match http://192.168.88.1/*
// @grant none
@theodric
theodric / macOS-open-for-bash-on-linux.txt
Last active December 23, 2024 19:21
macOS 'open' for bash on linux
open() {
if [[ -z "$1" ]]; then
echo "usage: open <file>" >&2
return 1
fi
if [[ ! -e "$1" ]]; then
echo "file not found: $1" >&2
return 1
fi
@theodric
theodric / asteriskdahdinotes.txt
Created December 24, 2024 01:46
asterisk & dahdi with tdm410
From: https://serverfault.com/questions/978738/dahdi-3-0-0-not-assign-spans-and-cannot-generate-configuration/989462#989462
site logo
Skip to main content
Server Fault
DAHDI 3.0.0 not assign spans and cannot generate configuration
Asked 5 years, 4 months ago
Modified 2 years, 3 months ago
@theodric
theodric / etc-keyd-cros.conf
Last active December 28, 2024 16:17
'MORPHIUS' Chromebook ThinkPad C13 Yoga-specific keyd keymapper config - needs https://github.com/rvaiya/keyd
[ids]
k:18d1:503d
k:18d1:504c
k:18d1:5030
k:18d1:5057
k:18d1:502b
k:18d1:5052
k:18d1:5050
k:18d1:5044
k:18d1:503c
@theodric
theodric / Thinkpad E14g2 keyd config + libinput quirks file
Last active January 10, 2025 19:27
keyd config for the ThinkPad E14 gen2
## E14 (with a fucked-up Fn key)
## First part: Mappings to make the keyboard work more like the C13
## Second part: Libinput quirks file to restore the function of disabling the touchpad while typing
## twinkpad:/etc/keyd # cat thinky.conf
[ids]
0001:0001:a38e6885
[main]
f1 = back