Skip to content

Instantly share code, notes, and snippets.

View dougmorato's full-sized avatar

Doug Morato dougmorato

View GitHub Profile
@dougmorato
dougmorato / captcha.md
Created June 14, 2012 22:03 — forked from Samuirai/captcha.md
G-WAN Captcha Decode

G-WAN is a new free web server. They seem to be very proud of it, or at least just want to make a lot of money. Well anyway, in almost every sentence they write, they claim that they are 20% cooler than anything else. It feels a bit arrogant. I have to admit, I don't know a lot about web servers, so I can't speak to how good they are.

However, then I saw their Captcha example. I also don't know much about machine learning algorithms, OCR, and stuff like that, but I do know how to read pixels. I also know how to compare values with python :P

demo

They say the following about their Captcha:

@dougmorato
dougmorato / hack.sh
Created April 25, 2012 06:49 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@dougmorato
dougmorato / .tmux.config
Created April 10, 2012 06:12 — forked from iansheridan/.tmux.config
a sample config file for Tmux
# Last modified: 2011 Sep 14
# Author: Florian CROUZAT <contact@floriancrouzat.net>
# Feel free to do whatever you want with this file.
# Just make sure to credit what deserve credits.
# Binds {{{
# Prefix
unbind C-b
set-option -g prefix C-a
bind a send-prefix
@dougmorato
dougmorato / mytmux.sh
Created April 10, 2012 06:10 — forked from jjt/mytmux.sh
My tmux.conf and a sample Django/compass/hamlpy shell script
#!/bin/bash
#
# tmux.sh - example for Django/compass/hamlpy tmux dev setup
#
mydir=/home/dev/movietempest
source $mydir/env-django-1.3.2/bin/activate
py=$mydir/env-django-1.3.2/bin/python
aliaspy=alias py="$py"
ses=mt
@dougmorato
dougmorato / tmux.conf
Created April 10, 2012 06:10 — forked from shinzui/tmux.conf
tmux.conf
# ~/.tmux.conf
#
# See the following files:
#
# /opt/local/share/doc/tmux/t-williams.conf
# /opt/local/share/doc/tmux/screen-keys.conf
# /opt/local/share/doc/tmux/vim-keys.conf
#
# URLs to read:
#
@dougmorato
dougmorato / hack.sh
Created April 1, 2012 07:53 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@dougmorato
dougmorato / securing_rails_updates.md
Created March 6, 2012 08:08 — forked from peternixey/securing_rails_updates.md
How Homakov hacked GitHub and how to protect your application

##How Homakov hacked GitHub and the line of code that could have prevented it


Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.

If you'd like to follow me on twitter my handle is @peternixey


@dougmorato
dougmorato / gist:1166559
Created August 23, 2011 21:10 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: Software Developer and Security Expert
Favorite Python project: FABRIC
Favorite Conference: Pycon 2011
Python Experience Level: Intermediate
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._
@dougmorato
dougmorato / fabfile.py
Created April 23, 2011 23:25 — forked from onyxfish/fabfile.py
Chicago Tribune News Applications fabric deployment script
from fabric.api import *
"""
Base configuration
"""
env.project_name = '$(project)'
env.database_password = '$(db_password)'
env.site_media_prefix = "site_media"
env.admin_media_prefix = "admin_media"
env.newsapps_media_prefix = "na_media"