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
export COWPATH=~/.config/cowsay | |
alias botsay="cowsay -f robot" |
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
Estonglish keyboard | |
/usr/share/X11/xkb/symbols/ee | |
partial alphanumeric_keys | |
xkb_symbols "estonglish" { | |
include "us(basic)" | |
name[Group1]= "Estonglish (English US, Estonian, Euro)"; |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
# Map hostname to its internal keyboard name. | |
# Find name with: xinput list | |
declare -A keyboards=( ["my-hostname"]="AT Translated Set 2 keyboard" ) | |
id=0 | |
host=$(hostname) |
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
#!/usr/bin/env bash | |
unset x y w h id | |
eval $(xwininfo -id $(xdotool getactivewindow) | | |
sed -n -e "s/^ \+Absolute upper-left X: \+\([0-9]\+\).*/x=\1/p" \ | |
-e "s/^ \+Absolute upper-left Y: \+\([0-9]\+\).*/y=\1/p" \ | |
-e "s/^ \+Width: \+\([0-9]\+\).*/w=\1/p" \ | |
-e "s/^ \+Height: \+\([0-9]\+\).*/h=\1/p" \ | |
-e "s/^xwininfo: Window id: [^\"]*\(.*\)/id=\1/p" | |
) |
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
BEGIN MESSAGE. | |
xaICELyEeVqB4cm xaXFhABS4OaaGW1 B6zR6XnrD7JplKl 6YLl0EmAVNwsomi | |
AJF3crh6zQJEP5n iun27SdAovFTCKq 6Xr2MZHgg4V25Zx NwYC3IeM0P5olyQ | |
a4QuSulD8D8CMUh Yn1G5RcjFWiZCnN f28Y2XLKapcIME3 2vlRJoEBTs2t0pU | |
GBIM63iWSkHkQtz w83EXK7PNogcvB5 Txhfs29HFxl. | |
END MESSAGE. |
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
(list (channel | |
(name 'kanal-a) | |
(url "https://github.com/erkiesken/kanal-a") | |
(branch "main")) | |
(channel | |
(name 'flat) | |
(url "https://github.com/flatwhatson/guix-channel.git") | |
(introduction | |
(make-channel-introduction | |
"33f86a4b48205c0dc19d7c036c85393f0766f806" |
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
#!/usr/bin/env bash | |
# <bitbar.title>UTC and local timezone</bitbar.title> | |
# <bitbar.version>v1.0.0</bitbar.version> | |
# <bitbar.author>Erki Esken</bitbar.author> | |
# <bitbar.author.github>erkiesken</bitbar.author.github> | |
# <bitbar.desc>Show the current time in local and UTC timezone.</bitbar.desc> | |
TIME_UTC=$(TZ="UTC" date "+%H:%M") | |
TIME_LOCAL=$(date "+%H:%M") |
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
#!/usr/bin/env bash | |
echo "${1}" | pbcopy |
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
a = ["Ooo","oOo","ooO","oOo"]; // like on the server listing screen of Minecraft | |
i = 0; | |
change = () => { document.querySelector("code").innerText = a[i % a.length]; i++; } | |
v = setInterval(change, 200) | |
// clearInterval(v); | |
// a = ["⦿⨀⨀⨀⨀","⨀⦿⨀⨀⨀","⨀⨀⦿⨀⨀","⨀⨀⨀⦿⨀","⨀⨀⨀⨀⦿","⨀⨀⨀⦿⨀","⨀⨀⦿⨀⨀","⨀⦿⨀⨀⨀"] |
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
defmodule ModAuthJWT do | |
use Ejabberd.Module | |
import Joken | |
def start(_host, _opts) do | |
info('Starting ejabberd module Auth JWT') | |
:ok | |
end | |
def stop(_host) do |
NewerOlder