Skip to content

Instantly share code, notes, and snippets.

View mgrouchy's full-sized avatar

Mike Grouchy mgrouchy

View GitHub Profile
View logo.txt
mgrouchy /
Created August 23, 2016 02:18 — forked from potench/
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
$ git clone

Keybase proof

I hereby claim:

  • I am mgrouchy on github.
  • I am 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:


JavaScript Testing with Grunt, Mocha and Chai

In the following post I would like to introduce one way how you can setup your testing workflow for JavaScript development. The central components in the testing environment are Grunt, Mocha and Chai that I will cover from the introduction and installation of each component to the cooperation of all components for the execution of tests.

If you are already an experienced Grunt user and just look for the Gruntfile.js and the Mocha / Chai setup just skip the central components section and skip to the installing components part.

You can find the sample project with all code at GitHub on:

Central Components

View Vagrantfile
# This configuration will set up a database (db) and a web server (web) VM.
# Assumes the use of VirtualBox 4.3.14-95030 as a provider.
# Uses vagrant-vbguest plugin (
# to keep VirtualBox Guest Addition wrangled.
# Configuration
# Machine-specific configuration
DB_INSTALL_SCRIPT = "vagrant_data/db/"
mgrouchy / backendhackerbug.js
Last active August 29, 2015 14:02
There is a bug in the Backend Hacker Job application page( ) in Chrome Version 36.0.1985.84 beta, you cannot reveal your personal email. I expect this is because of the structure of the page the input is no longer a direct child of #sameemails. This is a quick fix I made so I could submit the form. Scree…
View backendhackerbug.js
//replace this
if ( $(this).is(':checked') ) {
} else {
mgrouchy / .osx
Created November 11, 2013 19:13
In osx turn off dock animation, make delay essentially non-existant
View .osx
# Turn off dock animation, no delay
defaults write autohide-time-modifier -float 0
defaults write autohide-delay -float 0
mgrouchy / gist:5462228
Created April 25, 2013 19:03
View gist:5462228
File "/Users/mgrouchy/Dropbox/.repositories/work/SourceMetrics/smetrics/speak/", 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/", line 138, in post
return self.form_valid(form)
File "/Users/mgrouchy/Dropbox/.repositories/work/SourceMetrics/smetrics/speak/", line 240, in form_valid
File "/Users/mgrouchy/Dropbox/.repositories/work/SourceMetrics/smetrics/speak/", line 209, in save
response = super(PublishTwitterWithAuthForm, self).save(**serviceauth.to_dict())
File "/Users/mgrouchy/Dropbox/.repositories/work/SourceMetrics/smetrics/publisher/", line 101, in save
response = publisher.publish(msg, **new_data)
View tmux-for-iterm2.rb
require 'formula'
class TmuxForIterm2 < Formula
homepage ''
url ''
sha1 'd16f3c3abd510cb0a1fc6209bfb3fd83c5639f19'
depends_on 'pkg-config' => :build
depends_on 'libevent'
mgrouchy /
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):