Skip to content

Instantly share code, notes, and snippets.

@MethodGrab
MethodGrab / mongo-autostart-osx.md
Created May 23, 2016 08:02 — forked from subfuzion/mongo-autostart-osx.md
mongo auto start on OS X

Install with Homebrew

brew install mongodb

Set up launchctl to auto start mongod

$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents

/usr/local/opt/mongodb/ is a symlink to /usr/local/Cellar/mongodb/x.y.z (e.g., 2.4.9)

@MethodGrab
MethodGrab / macOS External Display Fix.md
Last active November 16, 2022 20:54
A fix for blurry text on external displays in macOS & OS X

macOS External Display Fix

A fix for blurry text on external displays in macOS & OS X.

  1. Run the patch (src) which will create a new directory in the CWD called DisplayProductID-YYYY:

    ruby ./patch-edid.rb
  2. Reboot into recovery mode (hold down CMD-R while rebooting)

@MethodGrab
MethodGrab / gist:6ff47d8cbcc017bdc8d0e136700b2b44
Created March 30, 2016 15:00 — forked from ptz0n/gist:1646171
Recursive merge of arrays with integer keys
<?php
/**
* Merge two dimensional arrays my way
*
* Will merge keys even if they are of type int
*
* @param array $array1 Initial array to merge.
* @param array ... Variable list of arrays to recursively merge.
*
@MethodGrab
MethodGrab / README.md
Last active February 22, 2023 14:15
Jenkins NodeJS Plugin: Missing nodejs.org installers

Jenkins NodeJS Plugin: Missing nodejs.org installers

Versions

  • Ubuntu 14.04 LTS x64
  • Java 1.7
  • Jenkins 1.639
  • NodeJS plugin 0.2.1

Keybase proof

I hereby claim:

  • I am MethodGrab on github.
  • I am methodgrab (https://keybase.io/methodgrab) on keybase.
  • I have a public key whose fingerprint is 3EC4 8DED D59C 1639 C155 9B7E 16A6 BAB1 4BA2 0968

To claim this, I am signing this object:

@MethodGrab
MethodGrab / mute.coffee
Last active August 29, 2015 14:02
Mute Yeoman while tests run (see https://github.com/yeoman/generator/issues/472)
###
Silence STDOUT & STDERR streams during tests
Useful for Yeoman to provide a cleaner output
@uses github.com/balderdashy/fixture-stdout
Yeoman Usage:
If your generator logs anything on the 'end' event
you can add an additional event as the very last
thing and trigger Output.unmute() on that event instead.
```