Skip to content

Instantly share code, notes, and snippets.

@francismhw
francismhw / qw.rc
Last active December 6, 2017 03:09
qw DCSS bot configured for 15 rune 27 level Ziggurat ascension
# This rcfile is elliptic's DCSS bot "qw", the first (and thus far only) bot
# to win DCSS with no human assistance. A substantial amount of code here was
# contributed by elliott or borrowed from N78291's bot "xw", and many others
# have contributed as well.
# For brief instructions and the most up-to-date version of qw, see
# https://github.com/elliptic/qw.
## qw's settings:
#
@francismhw
francismhw / iptables-repeater.conf
Created January 16, 2015 01:03
/etc/fail2ban/action.d/iptables-repeater.conf fail2ban repeater
# Fail2ban configuration file
#
# Author: Phil Hagen <phil@identityvector.com>
#
[Definition]
# Option: actionstart
# Notes.: command executed once at the start of Fail2Ban.
# Values: CMD
@francismhw
francismhw / jail.conf
Created January 16, 2015 01:02
jail.conf fail2ban
[ssh-repeater]
enabled = true
filter = sshd
action = iptables-repeater[name=ssh]
sendmail-whois[name=SSH-repeater, dest=root, sender=root]
logpath = /var/log/secure
maxretry = 32
findtime = 31536000
bantime = 31536000
@francismhw
francismhw / caskinstall
Created January 12, 2015 16:41
brew cask installs
brew cask install
appcleaner carbon-copy-cloner cinch seil karabiner google-chrome hex-fiend keka komodo-edit libreoffice vienna wireshark nmap # sublime-text textwrangler
add dotted droid
@francismhw
francismhw / usefulvimzsh
Created January 12, 2015 14:48
useful vim zsh
http://www.economyofeffort.com/2014/08/11/beyond-ctrl-remap-make-that-caps-lock-key-useful/
http://www.glump.net/files/2012/08/vi-vim-cheat-sheet-and-tutorial.pdf
https://github.com/amix/vimrc
http://ivan.kanis.fr/zsh.pdf
https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet
http://www.bash2zsh.com/zsh_refcard/refcard.pdf
cat /dev/urandom | strings | grep -o '[[:alnum:][:punct:]]' | head -n 30 | tr -d '\n'; echo
@francismhw
francismhw / screen
Created December 15, 2014 21:37
screen
startup_message off
defscrollback 30000
escape ^Bb
#shell /bin/zsh
term screen-256color
#might have to put $HOME here
bind r eval "source ~/.screenrc" "'.screenrc reloaded!'"
#make screen think terminal doesn't have alt screen
#termcapinfo xterm* ti@:te@
#hardstatus off
@francismhw
francismhw / slimesetup
Created April 19, 2014 09:24
slime setup os x
brew install emacs --cocoa sbcl
curl -O http://beta.quicklisp.org/quicklisp.lisp
sbcl --load quicklisp.lisp
(quicklisp-quickstart:install)
(ql:quickload "quicklisp-slime-helper")
vi .emacs.d/personal/slime.el
slime.el
(load (expand-file-name "~/quicklisp/slime-helper.el"))
;; Replace "sbcl" with the path to your implementation
@francismhw
francismhw / gist:9884964
Last active August 29, 2015 13:57
digital ocean notes
arch linux
==========
pacman -Syu --ignore filesystem
pacman -Syu
systemd
systemctl
@francismhw
francismhw / .perltidyrc
Created March 20, 2014 04:10
Perl Best Practices .perltidyrc Perl::Tidy
# PBP .perltidyrc file
-l=78 # Max line width is 78 cols
-i=4 # Indent level is 4 cols
-ci=4 # Continuation indent is 4 cols
-st # Output to STDOUT
-se # Errors to STDERR
-vt=2 # Maximal vertical tightness
-cti=0 # No extra indentation for closing brackets
-pt=1 # Medium parenthesis tightness