Skip to content

Instantly share code, notes, and snippets.

View bavovna's full-sized avatar
🇺🇦

bavovna

🇺🇦
View GitHub Profile
@bavovna
bavovna / tmux
Last active February 15, 2026 01:07
# change the prefix from 'C-b' to 'C-a'
# (remap capslock to CTRL for easy access)
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# start with window 1 (instead of 0)
set -g base-index 1
# start with pane 1
mosh() {
mosh -6 $1 -- tmux a
}
alias ssh=mosh
local function toggleApp(appName, newWindowMenuItem)
local app = hs.application.get(appName)
if app then
if not app:mainWindow() then
app:selectMenuItem({appName, newWindowMenuItem})
elseif app:isFrontmost() then
app:hide()
else
app:activate()
end
@bavovna
bavovna / termination_state.txt
Created September 30, 2020 19:26
HAProxy termination_state
From https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#8.5
Session state at disconnection
TCP and HTTP logs provide a session termination indicator in the
"termination_state" field, just before the number of active connections. It is
2-characters long in TCP mode, and is extended to 4 characters in HTTP mode,
each of which has a special meaning :
- On the first character, a code reporting the first event which caused the
@bavovna
bavovna / autonomous.txt
Created May 15, 2020 04:35 — forked from benjamincharity/autonomous.txt
Instructions on how to reset the autonomous desk. This fixes a problem where the desk will not lower (also reportedly fixes incorrectly reported heights).
> Thank you for reaching out to Autonomous! I am sorry to hear that you are having some trouble with your SmartDesk
> but I will be glad to assist. It sounds like your system needs a "hard reset" can I please have you follow these
> steps thoroughly.
Reset Steps:
1. Unplug the desk for 20 seconds. Plug it back in. Wait a full 20 seconds.
2. Press the up and down buttons until the desk lowers all the way and beeps or 20 seconds pass.
3. Release both buttons.
4. Press the down buttons until the desk beeps one more time or 20 seconds pass.