Skip to content

Instantly share code, notes, and snippets.

@Fmstrat
Fmstrat / vscode-texture-fix.sh
Last active July 3, 2020 12:13
Fixes texture corruption in VS Code terminal after resuming from suspend
#!/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 September 4, 2020 03:39
.pgpass with aliases for psql
alias:host:port:db:user:pass
alias2:host2:port2:db2:user2:pass2
@Fmstrat
Fmstrat / HOOKS.md
Last active October 20, 2019 15:53
Unofficial documentation for hooks in TT-RSS
@Fmstrat
Fmstrat / Extend Monitors.ahk
Last active November 10, 2018 00:31
An AutoHotkey macro that returns 3 monitors to a full extended state after using the nVidia hotkey to exit Surround Mode.
#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.
;