Skip to content

Instantly share code, notes, and snippets.

View debugloop's full-sized avatar
👻
dealing with cursed scripture

Daniel Nägele debugloop

👻
dealing with cursed scripture
View GitHub Profile
# Mousemode alias so the mouse works in WeeChat while running mosh:
alias mousemode="perl -E ' print \"\e[?1005h\e[?1002h\" '"
# Command function to enable mousemode, get the mosh key and port, lookup the ip for the hostname and set up the mosh-client connection
function mosher() {
mousemode
mosh_string=$(ssh $1 -t mosh-server|grep "MOSH CONNECT")
mosh_key=$(echo $mosh_string|cut -d " " -f4)
mosh_port=$(echo $mosh_string|cut -d " " -f3)
mosh_ip=$(ping -n 1 $1 | grep Pinging | cut -d '[' -f 2|cut -d ']' -f 1)
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active June 15, 2025 15:49 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.