This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weechat | |
Relay setup | |
On the server's instance of weechat: | |
/relay add ssl.irc 8001 | |
/secure set relay WHATEVER_PASSWORD | |
/set relay.network.password "${sec.data.relay}" | |
On the server, to generate the ssl certificate: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Time = "" | |
local TakingInput = false | |
function InitiateKeybindings() | |
mp.add_forced_key_binding("0", "JumpTo_Key_0", AddToJumpTime0) | |
mp.add_forced_key_binding("1", "JumpTo_Key_1", AddToJumpTime1) | |
mp.add_forced_key_binding("2", "JumpTo_Key_2", AddToJumpTime2) | |
mp.add_forced_key_binding("3", "JumpTo_Key_3", AddToJumpTime3) | |
mp.add_forced_key_binding("4", "JumpTo_Key_4", AddToJumpTime4) | |
mp.add_forced_key_binding("5", "JumpTo_Key_5", AddToJumpTime5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# ~/.xinitrc | |
# | |
# Executed by startx (run your window manager from here) | |
# | |
if [ -d /etc/X11/xinit/xinitrc.d ]; then | |
for f in /etc/X11/xinit/xinitrc.d/*; do | |
[ -x "$f" ] && . "$f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
RangerTabsFilePath="$XDG_DATA_HOME/ranger/tabs" | |
RangerTabCount=0 | |
WouldOpenPWD=0 | |
if [ -f $RangerTabsFilePath ]; then | |
# Split on newline from: https://unix.stackexchange.com/questions/29724/how-to-properly-collect-an-array-of-lines-in-zsh#29748 | |
RangerTabs=("${(@f)$(tr -s '\n\0' '\0\n' < $RangerTabsFilePath)}") | |
RangerTabCount=${#RangerTabs[@]} |