Skip to content

Instantly share code, notes, and snippets.

View mranallo's full-sized avatar

Mark Ranallo mranallo

View GitHub Profile
@mranallo
mranallo / gist:7f140952ddccca369706
Created May 23, 2015 00:46
move pictures hazel script
# Written by Panayotis Vryonis, 2013.
# http://blog.vrypan.net/2013/5/20/leaving-iphoto-for-dropbox/
# Distributed under MIT License.
# <http://opensource.org/licenses/MIT>
fullfile=$1
PHOTOS="$HOME/Dropbox/Photos"
### Keybase proof
I hereby claim:
* I am mranallo on github.
* I am markdr (https://keybase.io/markdr) on keybase.
* I have a public key whose fingerprint is 2284 2155 3CB3 8EB0 BDFC 9A6B 09B8 9BA8 6EF4 E993
To claim this, I am signing this object:
/*
* Copyright (C) 2006, 2008 Valery Kholodkov
* Client body reception code Copyright (c) 2002-2007 Igor Sysoev
* Temporary file name generation code Copyright (c) 2002-2007 Igor Sysoev
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <nginx.h>
@mranallo
mranallo / nginx.rb
Created June 19, 2013 18:47
nginx + upload module + spdy
require 'formula'
class Nginx < Formula
homepage 'http://nginx.org/'
url 'http://nginx.org/download/nginx-1.4.1.tar.gz'
sha1 '9c72838973572323535dae10f4e412d671b27a7e'
devel do
url 'http://nginx.org/download/nginx-1.5.1.tar.gz'
sha1 'bd5a5e7dba39a4aa166918112367589f165ce5bc'
@mranallo
mranallo / nginx.rb
Created August 30, 2012 21:46
NGINX with SPDY
require 'formula'
class Nginx < Formula
homepage 'http://nginx.org/'
# url 'http://nginx.org/download/nginx-1.2.3.tar.gz'
# sha1 '98059ae08ebbfaaead868128f7b66ebce16be9af'
url 'http://nginx.org/download/nginx-1.3.5.tar.gz'
sha1 'ce0245295f23a54f10d916eb6b7b34469d0618a1'
devel do
@mranallo
mranallo / nginx.rb
Created August 27, 2012 19:09
Homebrew recipe for nginx with upload modules
require 'formula'
class Nginx < Formula
homepage 'http://nginx.org/'
url 'http://nginx.org/download/nginx-1.2.3.tar.gz'
sha1 '98059ae08ebbfaaead868128f7b66ebce16be9af'
devel do
url 'http://nginx.org/download/nginx-1.3.5.tar.gz'
sha1 'ce0245295f23a54f10d916eb6b7b34469d0618a1'
@mranallo
mranallo / nginx.rb
Created August 27, 2012 18:57
Homebrew recipe for nginx with upload modules.
require 'formula'
class Nginx < Formula
homepage 'http://nginx.org/'
url 'http://nginx.org/download/nginx-1.2.3.tar.gz'
sha1 '98059ae08ebbfaaead868128f7b66ebce16be9af'
devel do
url 'http://nginx.org/download/nginx-1.3.5.tar.gz'
sha1 'ce0245295f23a54f10d916eb6b7b34469d0618a1'
@mranallo
mranallo / gist:1760327
Created February 7, 2012 15:46
Mongo Connection Id
module Mongodb
def self.db
config = Rails.configuration.database_configuration["mongodb_#{Rails.env}"]
host = config["host"]
database = config["database"]
username = config["username"]
password = config["password"]
port = config["port"]
@mranallo
mranallo / delete-tags.sh
Created January 24, 2012 21:39 — forked from rgrove/delete-tags.sh
Shell script to delete useless build tags from GitHub forks of YUI 3
#!/bin/bash
# This script will delete *all* local and remote tags from any git repo you run
# it in, unless they begin with "v". Please use it to remove the hundreds of
# build tags from your YUI 3 fork.
#
# This script will not delete branches; just tags.
set -e
@mranallo
mranallo / emacs.rb
Created July 29, 2011 17:36 — forked from pingles/emacs.rb
Homebrew Emacs for OSX Lion with native full-screen
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3.tar.bz2'
md5 'a673c163b4714362b94ff6096e4d784a'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://repo.or.cz/emacs.git'
else