ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Add PATH to ~/.bash_profile and ~/.zshrc
export PATH=/usr/local/bin:$PATH
This is a collection of information on PostgreSQL and PostGIS for what I tend to use most often.
| #!/usr/bin/env python | |
| # big_tweet_import | |
| # Imports the tweet-dump into MongoDB | |
| # | |
| # Author: Benjamin Bengfort <[email protected]> | |
| # Created: Thu Aug 28 07:37:41 2014 -0400 | |
| # | |
| # Copyright (C) 2014 Bengfort.com | |
| # For license information, see LICENSE.txt | |
| # |
| // These two need to be declared outside the try/catch | |
| // so that they can be closed in the finally block. | |
| HttpURLConnection urlConnection = null; | |
| BufferedReader reader = null; | |
| // Will contain the raw JSON response as a string. | |
| String forecastJsonStr = null; | |
| try { | |
| // Construct the URL for the OpenWeatherMap query |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| #!/usr/bin/python | |
| import argparse | |
| from pymongo import MongoClient as Client | |
| from bson import BSON | |
| from bson import json_util | |
| import json | |
| import os | |
| # mongo client |