I hereby claim:
- I am sietsevandermolen on github.
- I am sietse (https://keybase.io/sietse) on keybase.
- I have a public key ASDW_nz_cKGeKyOPJfOK5MyOnMrFFlUG17Y7dFpm08EptAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| run_terminal=' | |
| for t in $TERMINAL urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm xfce4-terminal; do | |
| which $t > /dev/null 2>&1 && exec $t; | |
| done | |
| ' | |
| get_id() { | |
| local id=$(xprop -root _NET_ACTIVE_WINDOW) |
| autostart_etc=${XDG_CONFIG_DIRS-/etc/xdg}/autostart | |
| autostart_home=${XDG_CONFIG_HOME-~/.config}/autostart | |
| shopt -s nullglob | |
| for i in $autostart_etc/*.desktop $autostart_home/*.desktop; do | |
| if ! grep -q "OnlyShowIn=" "$i"; then | |
| $(grep "Exec=" "$i" | sed 's/Exec=//') & | |
| fi | |
| done |
| #!/bin/bash | |
| # By @minad and @SietsevanderMolen | |
| WIFI_VM="sys-net" | |
| json() { | |
| if [[ -n "$3" ]]; then | |
| echo -n "{\"name\":\"$1\",\"color\":\"$3\",\"full_text\":\"$2\"}," | |
| else | |
| echo -n "{\"name\":\"$1\",\"full_text\":\"$2\"}," |
I hereby claim:
To claim this, I am signing this object:
| function swagdatstring() { | |
| local chars=" -_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" | |
| local flipped=" -_ɐqɔpǝɟɓɥıɾʞlɯuodbɹsʇnʌʍxʎz∀𐐒ƆᗡƎℲ⅁HIſ⋊⅂WNOԀΌᴚS⊥∩ΛMX⅄Z⇂ᄅƐㄣގ9ㄥ860" | |
| local newstring='' | |
| for ((i = ${#1}; i > 0; i--)); do | |
| newstring+=${flipped[${chars[(i)${1[$i]}*]}]} | |
| done | |
| echo $newstring | |
| } |
| d=''.join(map(chr, range(34, 126))) | |
| q="Q#$%&q()*}w'e[0123456789ZzW]E{@ANIHDYUJGCVPMLSRXO:KF><BT?-\=^\"`anihdyujgcvpmlsrxo;kf.,bt/_|+']" | |
| print(''.join(q[d.find(c)] if d.find(c)!=-1 else c for c in input())) |