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
| # import smtplib for sending and MIMEText to handle html | |
| import smtplib | |
| from email.mime.text import MIMEText | |
| # Create a MIMEText msg and specify html | |
| msg = MIMEText(htmlstring, 'html') | |
| # Add a subject, sender and recipient to the msg | |
| msg['Subject'] = 'My Subject' | |
| msg['From'] = 'from@domain.com' |
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: |
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
| 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
| // 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
| # 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
| # 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
| # Python 2.6 | |
| ./configure --prefix=/usr/local --disable-ipv6 |
OlderNewer