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/bash | |
# Sample sxhkd usage: | |
# | |
# alt + {a,f} | |
# /home/sunn/scripts/bspwm_resize {-p,-n} -x -s 20 | |
# | |
# alt + {s,d} | |
# /home/sunn/scripts/bspwm_resize {-p,-n} -y -s 20 |
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/bash | |
# NAME | |
# | |
# docker-mysql-import | |
# | |
# DESCRIPTION | |
# | |
# Helper for importing SQL dumps into mysql server running in Docker containers. | |
# |
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
alignment top_left | |
background yes | |
border_width 1 | |
cpu_avg_samples 2 | |
default_color 9a875f | |
default_outline_color white | |
default_shade_color white | |
draw_borders no | |
draw_graph_borders no | |
draw_outline no |
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/bash | |
readarray -t PROPS < <(xwinfo -its $1) | |
INST=${PROPS[0]} | |
TYPE=${PROPS[1]} | |
STATE=(${PROPS[2]}) | |
RULE=() | |
# Sane defaults |
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
# | |
# buffers.conf -- weechat v0.4.2 | |
# | |
[color] | |
current_bg = default | |
current_fg = default | |
default_bg = default | |
default_fg = black | |
hotlist_highlight_bg = default |
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
URxvt.keysym.C-7: command:\033]710;-*-uushi-medium-r-normal-*-*-*-*-*-*-*-*-*\007\033]711;-*-uushi-medium-r-normal-*-*-*-*-*-*-*-*-*\007 | |
URxvt.keysym.C-8: command:\033]710;-*-gohufontmod11-medium-r-normal-*-*-*-*-*-*-*-*-*\007\033]711;-*-gohufontmod-medium-r-normal-*-*-*-*-*-*-*-*-*\007 | |
URxvt.keysym.C-9: command:\033]710;-*-limey-*-*-*-*-*-*-*-*-*-*-*-*\007\033]711;-*-limey-*-*-*-*-*-*-*-*-*-*-*-*\007 | |
URxvt.keysym.C-0: command:\033]710;-*-lemon-*-*-*-*-*-*-*-*-*-*-*-*\007\033]711;-*-lemon-*-*-*-*-*-*-*-*-*-*-*-*\007 | |
URxvt.keysym.C-minus: command:\033]710;-*-tewi-medium-r-normal-*-*-*-*-*-*-*-*-*\007\033]711;-*-tewi-medium-r-normal-*-*-*-*-*-*-*-*-*\007 | |
URxvt.keysym.C-equal: command:\033]710;xft:inconsolata:size=8\007\033]711;xft:inconsolata:size=8\007 | |
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
case $TERM in | |
*xterm*|*rxvt*|(dt|k|E|a)term) | |
preexec () { | |
print -Pn "\e]2;$1\a" # edited; %n@%m omitted, as I know who and where I am | |
} | |
;; | |
esac |
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
factorial :: Integer -> Integer | |
factorial n = foldr (*) 1 [1..n] | |
choose :: Integer -> Integer -> Integer | |
choose n k = (factorial n) `div` ((factorial k) * (factorial (n - k))) | |
main :: IO () | |
main = print $ choose 40 20 |
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
! █▓▒░ mikado colors | |
urxvt*foreground: #f3f3f3 | |
urxvt*background: #121212 | |
urxvt*cursorColor: #f3f3f3 | |
urxvt*color0: #322a2c | |
urxvt*color8: #46423b | |
urxvt*color1: #a04363 | |
urxvt*color9: #ae837a | |
urxvt*color2: #9b9329 | |
urxvt*color10: #b4aa30 |
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/bash | |
POSITIVE=false | |
HORIZONTAL=false | |
SIZE='20' | |
err() { | |
echo "$1" | |
exit 1 | |
} |
NewerOlder