Skip to content

Instantly share code, notes, and snippets.

@alyandon
alyandon / gist:b19e2634fac6505bb5bd0e0c99d856b0
Last active August 12, 2025 15:56
tmux-is-the-gnu-screen
# gnu screen muscle memory
set -g prefix C-a
bind-key C-a send-prefix
bind-key C-c new-window
bind-key C-Space next-window
bind-key C-p previous-window
bind-key C-n next-window
bind-key C-d detach
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
@alyandon
alyandon / snapd-regain-sanity.patch
Last active January 26, 2023 16:47
Give users control over snapd autorefresh mechanism - apply patch over offiical repo and build binaries
diff --git a/cmd/snapd/main.go b/cmd/snapd/main.go
index 741d998404..55d06d2d9c 100644
--- a/cmd/snapd/main.go
+++ b/cmd/snapd/main.go
@@ -52,6 +52,10 @@ func init() {
}
func main() {
+ if _, found := os.LookupEnv("SNAPD_DISABLE_AUTOREFRESH"); found {
+ logger.Noticef("AutoRefresh disabled due to SNAPD_DISABLE_AUTOREFRESH environment variable being set")