Skip to content

Instantly share code, notes, and snippets.

@Fmstrat
Fmstrat / vscode-texture-fix.sh
Last active Jul 3, 2020
Fixes texture corruption in VS Code terminal after resuming from suspend
View vscode-texture-fix.sh
#!/bin/bash
#
# Fixes texture corruption in VS Code terminal after resuming from suspend.
#
# Place script in /lib/systemd/system-sleep/ so it can run after resuming
# and edit the CONFIG variable with the location of your settings.json
#
# Based of stephan-t's https://gist.github.com/stephan-t/561d0e473dddb270be3da6a8ca994306
# but without the jq requirement or 5s login delay and works with dotfiles (symlinks)
@Fmstrat
Fmstrat / .pgapass
Last active Sep 4, 2020
.pgpass with aliases for psql
View .pgapass
alias:host:port:db:user:pass
alias2:host2:port2:db2:user2:pass2
@Fmstrat
Fmstrat / HOOKS.md
Last active Oct 20, 2019
Unofficial documentation for hooks in TT-RSS
View HOOKS.md
@Fmstrat
Fmstrat / Extend Monitors.ahk
Last active Nov 10, 2018
An AutoHotkey macro that returns 3 monitors to a full extended state after using the nVidia hotkey to exit Surround Mode.
View Extend Monitors.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; NOTE:
;
; In Windows 10, you can just hit "Win-P" and choose "Extend" instead of using this script.
;