Skip to content

Instantly share code, notes, and snippets.

Michael Prasuhn mikeyp

Block or report user

Report or block mikeyp

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 gremlins.js minified bookmarklet
(function (e, a, h, f, c, b, d) {
c = a.createElement("script");
c.type = "text/javascript";
c.src = "";
c.onload = c.onreadystatechange = function () {
if (!b && (!(d = this.readyState) || d == "loaded" || d == "complete")) {
View Gemfile
source ""
# Gems
gem 'nanoc'
gem 'adsf'
gem 'kramdown'
gem 'compass'
# Guard support
gem 'guard'
View gist:1e1e2ec64b1d299ad79c
mikey-p ~: time lunchy restart memcached
stopped homebrew.mxcl.memcached
started homebrew.mxcl.memcached
real 0m0.128s
user 0m0.085s
sys 0m0.040s
mikeyp /
Created Jul 29, 2014
Find out what item corresponds to a specific path
* @file
* Provide Drush integration for finding menu router items.
* Implements hook_drush_help().
function path_audit_drush_help($section) {
View gist:fe4667ecfc7743e5f7dd
function branch {
git branch | cut -c 3- | peco | xargs git checkout
function proj {
cd $(find ~/git ~/www ~/ex -maxdepth 1 -type d | peco)
View .profile
function proj {
cd $(find ~/git ~/www ~/ex -maxdepth 1 -type d | peco)
View test.js
mikey-p ~/git/example-com-cookie (master *): mocha cookie
✓ should return a 200 status when loading the test page (5015ms)
✓ should have the correct title (5008ms)
2 passing (10s)
View test.js
var assert = require('assert');
var Browser = require('zombie');
describe(' cookie', function(){
describe('tests', function(){
// Set host and create browser
before(function() {
Browser.localhost('', 4000);
View makefile
ts := $(shell /bin/date "+%Y%m%d%H%M%S")
root_domain :=
archive_file := ${root_domain}-archive-$(ts)
all: clean generate
rm -rf *o archive;
rm -rf *o ${root_domain}-archive*.tar.gz;
rm -rf *o ${root_domain}-archive*;
View gist:a97016b44dbea877c198
mikey-p ~/git/8/core (8.0.x): php scripts/ --url --color --file core/modules/system/src/Tests/Common/FormatDateTest.php
Drupal test run
Tests to be run:
- Drupal\system\Tests\Common\FormatDateTest
Test run started:
Friday, February 6, 2015 - 13:36
You can’t perform that action at this time.