Skip to content

Instantly share code, notes, and snippets.

Mike Grouchy mgrouchy

Block or report user

Report or block mgrouchy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View logo.txt
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 Aug 23, 2016 — forked from potench/arcanist.md
Install Phabricator on OSX and Install arcanist
View arcanist.md

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
View keybase.md

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:

View JavaScriptTestingWithGruntMochaAndChai.md

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: https://github.com/maicki/sample-js-testing-grunt-mocha-chai

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 (https://github.com/dotless-de/vagrant-vbguest)
# to keep VirtualBox Guest Addition wrangled.
# Configuration
# Machine-specific configuration
DB_INSTALL_SCRIPT = "vagrant_data/db/install.sh"
@mgrouchy
mgrouchy / backendhackerbug.js
Last active Aug 29, 2015
There is a bug in the Backend Hacker Job application page( http://jobs.bufferapp.com/backend-hacker# ) 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
$("#sameemails>input").change(function(){
if ( $(this).is(':checked') ) {
$("#personal_email").hide();
} else {
$("#sameemails").hide();
$("#personal_email").show();
}
});
@mgrouchy
mgrouchy / .osx
Created Nov 11, 2013
In osx turn off dock animation, make delay essentially non-existant
View .osx
# 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
View gist:5462228
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)
View tmux-for-iterm2.rb
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 Dec 13, 2015
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.
View backends.py
"""
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):
"""
You can’t perform that action at this time.