Skip to content

Instantly share code, notes, and snippets.

View mgrouchy's full-sized avatar

Mike Grouchy mgrouchy

View GitHub Profile
@mgrouchy
mgrouchy / vim.rb
Created March 16, 2012 17:46
Vim formula for Homebrew
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => '6c318419e331'
version '7.3.515'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end
#first generate a key for your domain
openssl genrsa -out yourdomain.com.key 2048
#then generate the request
openssl req -new -key yourdomain.com.key -out yourdomain.com.csr
MMMMMMMMMMMMMMMWXkl;.. .;dKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMXx:. ..''. 'xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMWKo' 'lkKNNN0c. .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNWWMMMMWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMKo. ;xXWMMMMMMX: :XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNOoc;''',;cxKKl;odccllclOWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWkcccccckWMMMMMMMM
MMMMMMMNx' ,kNMMMMMMMMMWo ,KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKo' .;cllc;...,. ;l::, oWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWk:::. ;XMMMMMMMM
MMMMMMKc .o0OdkN
@mgrouchy
mgrouchy / arcanist.md
Created August 23, 2016 02:18 — forked from potench/arcanist.md
Install Phabricator on OSX and Install arcanist

OSX Arcanist Installation Guide

Note, please replace "WWW/tools" with where ever you store your web tools.

$ mkdir ~/WWW/tools
$ cd ~/WWW/tools
$ git clone https://github.com/phacility/libphutil.git
$ git clone https://github.com/phacility/arcanist.git

Keybase proof

I hereby claim:

  • I am mgrouchy on github.
  • I am mgrouchy (https://keybase.io/mgrouchy) on keybase.
  • I have a public key whose fingerprint is 153C 3DCA 9B26 30A2 B9B3 E940 8D82 17A5 1E08 9AE9

To claim this, I am signing this object:

@mgrouchy
mgrouchy / .osx
Created November 11, 2013 19:13
In osx turn off dock animation, make delay essentially non-existant
# Turn off dock animation, no delay
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock autohide-delay -float 0
@mgrouchy
mgrouchy / gist:5462228
Created April 25, 2013 19:03
Stacktrace
File "/Users/mgrouchy/Dropbox/.repositories/work/SourceMetrics/smetrics/speak/views.py", line 235, in post
return super(ProcessPublishFormView, self).post(request, *args, **kwargs)
File "/Users/mgrouchy/.virtualenvs/sm/lib/python2.7/site-packages/django/views/generic/edit.py", line 138, in post
return self.form_valid(form)
File "/Users/mgrouchy/Dropbox/.repositories/work/SourceMetrics/smetrics/speak/views.py", line 240, in form_valid
form.save(profile=profile)
File "/Users/mgrouchy/Dropbox/.repositories/work/SourceMetrics/smetrics/speak/forms.py", line 209, in save
response = super(PublishTwitterWithAuthForm, self).save(**serviceauth.to_dict())
File "/Users/mgrouchy/Dropbox/.repositories/work/SourceMetrics/smetrics/publisher/forms.py", line 101, in save
response = publisher.publish(msg, **new_data)
require 'formula'
class TmuxForIterm2 < Formula
homepage 'http://code.google.com/p/iterm2/wiki/TmuxIntegration'
url 'https://iterm2.googlecode.com/files/tmux-for-iTerm2-20130210.tar.gz'
sha1 'd16f3c3abd510cb0a1fc6209bfb3fd83c5639f19'
depends_on 'pkg-config' => :build
depends_on 'libevent'
@mgrouchy
mgrouchy / backends.py
Last active December 13, 2015 18:29
Use Johnny Cache with Memcachier. These Changes are required to make it work on Heroku with Memcachier as johnny-cache uses the Django Pylibmc backend which doesn't support SASL.
"""
This is taken wholesale from JohnnyCache except instead of overriding
_get_memcache_timeout in the Django pylibmc backend, we use the Pylibmc
backend from django_pylibmc which supports SASL
"""
from django_pylibmc.memcached import PyLibMCCache
class JohnnyPyLibMCCache(PyLibMCCache):
"""
{
"bold_folder_labels": true,
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"draw_white_space": "all",
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",