This file contains hidden or 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 Force LTR on KaTeX (ChatGPT/OpenAI) | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Add dir="ltr" to all .katex-html elements on ChatGPT/OpenAI | |
// @match https://chat.openai.com/* | |
// @match https://chatgpt.com/* | |
// @match https://*.openai.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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/env bash | |
# Save and restore Okular sessions | |
set -e | |
dump() { | |
for fd in /proc/$(ps -C okular -o pid= | sed -e's/\s//g')/fd/*; do | |
readlink "$fd" | |
done | grep '.pdf' | |
} |
This file contains hidden or 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
# General settings | |
set -g default-terminal "tmux-256color" | |
set -ga terminal-overrides ",*256col*:Tc" | |
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' | |
set -ga terminal-overrides ",xterm-256color:Tc" | |
set -ga terminal-overrides ",alacritty:RGB" | |
set -s escape-time 50 | |
set -g base-index 1 | |
set -g focus-events on |
This file contains hidden or 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
:: Directory to save backups | |
SET backupDir=D:\Backups\Audio Backup | |
:: Store date as a variable | |
FOR /f "tokens=2 delims==" %%G in ('wmic os get localdatetime /value') do set datetime=%%G | |
SET hh=%time:~0,2% | |
SET hh=%hh: =0% | |
SET datetime=%datetime:~0,4%-%datetime:~4,2%-%datetime:~6,2% %hh%-%time:~3,2%-%time:~6,2% | |
:: Create a backup of the current audio settings state |