! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
! Return caps lock and escape
This file contains hidden or 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
| # requires libevent installed (assuming ~/ prefix) | |
| # assuming installing in /usr/chris | |
| $ ./configure --prefix=/usr/chris CFLAGS="-I$HOME/include" LDFLAGS="-L$HOME/lib" |
This file contains hidden or 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/zsh | |
| export CONF_OPT_PYTHON='--enable-pythoninterp' | |
| export CONF_OPT_GUI='--disable-gui' | |
| export CONF_OPT_NETBEANS='--disable-netbeans' | |
| export CONF_ARGS='--prefix=/usr/local' | |
| make distclean | |
| ./configure $CONF_OPT_PYTHON $CONF_OPT_GUI $CONF_OPT_NETBEANS $CONF_ARGS |
This file contains hidden or 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
| # Python 2.6 | |
| ./configure --prefix=/usr/local --disable-ipv6 |
This file contains hidden or 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
| # Subversion 1.6.9 | |
| ./configure --prefix=/usr/local --disable-nls --with-apr=/usr/HTTPServer/bin \ | |
| --with-apr-util=/usr/HTTPServer/bin --without-berkeley-db --without-gnome-keyring --without-ssl --without-swig \ | |
| --with-sqlite=/usr/chris/src/subversion-1.6.9/sqlite-amalgamation/ --without-neon |
This file contains hidden or 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
| # with OpenSSL 0.9.7d | |
| ./configure --with-mpm=worker --enable-so --enable-layout=Apache --enable-mods-shared=most --enable-maintainer-mode --enable-static-support --prefix=/usr/local/apache2 --enable-ssl=shared --enable-proxy | |
| # with OpenSSL 1.0.1g | |
| ./configure --with-mpm=worker --enable-so --enable-layout=Apache --enable-mods-shared=most --enable-static-support --prefix=/usr/local/apache2.2 --enable-ssl=shared --enable-proxy --with-ssl=/usr/local/openssl-1.0.1g --with-included-apr | |
| # with OpenSSL 1.0.1j | |
| ./configure --with-mpm=worker --enable-so --enable-layout=Apache --enable-mods-shared=most --enable-static-support --prefix=/usr/local/apache2.2 --disable-lua --enable-ssl=shared --enable-proxy --with-included-apr LDFLAGS="-L/usr/local/openssl-1.0.1j/lib -lssl -lcrypto" |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| In[1]: from collections import Counter | |
| In[2]: ports = ['33680', | |
| '33680', | |
| '33680', | |
| '33677', | |
| '33677', | |
| '33677', | |
| '33677', | |
| '33677', |
This file contains hidden or 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
| ## This assumes that these packages are installed already - git, zsh, gvim, exuberant ctags ## | |
| # Create a ssh key | |
| $ ssh-keygen | |
| # Add public key to github | |
| # Checkout dotfiles | |
| $ git clone git@github.com:chauncey/dotfiles.git dotfiles/ | |
| $ cd dotfiles |
This file contains hidden or 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 python | |
| "Searches for KEY in GET request - combined Apache format (I think)""" | |
| KEY = "GET /cgi-bin/blah?var=myvar" | |
| LOG = "tmp.log" | |
| def findDupes(log): | |
| dupes = [] | |
| for l in log: |