Skip to content

Instantly share code, notes, and snippets.

View shirlston's full-sized avatar

Steven Hirlston shirlston

  • Indianapolis, IN
View GitHub Profile
@shirlston
shirlston / dmgm.sh
Created October 22, 2015 15:06
Open files from diff master that match a regex in rubymine
#!/bin/bash
# dmgm
# Diff Master Grep (Ruby)Mine
# Open files from dm that match a regex in rubymine
# syntax:
# dmgm <regex>
git diff --name-only `git merge-base origin/master HEAD` | grep $1 | xargs mine
@shirlston
shirlston / rubo.sh
Last active November 2, 2015 18:44
Rubo: Execute rubocop on ruby files that match a regex
#!/bin/bash
# rubo
# rubo(cop)
# Execute rubocop on ruby files that match a regex
# syntax:
# rubo <file regex>
git diff --name-only `git merge-base origin/master HEAD` | grep $1 | grep rb | xargs rubocop
@shirlston
shirlston / i18n.sh
Last active December 31, 2015 09:29
Automate i18n translation rake tasks for Mobi.
#!/bin/bash
# i18n.sh
# Automate rake translations
# syntax:
# i18n.sh <path>
langs=(zh-TW nl fr de it pt es el tr)
@shirlston
shirlston / userscript.js
Created February 12, 2016 22:17
Mefiquote for modern theme
// ==UserScript==
// @name Mefiquote (updated for redesign)
// @namespace http://plutor.org/
// @description Adds "quote" links to Metafilter comments. Updated for the 2014 redesign.
// @include http://metafilter.com/*
// @include http://*.metafilter.com/*
// @include https://metafilter.com/*
// @include https://*.metafilter.com/*
// @version 0.0.1.20141102043946
// ==/UserScript==
@shirlston
shirlston / ryans_minecraft_server_problem.log
Created August 9, 2017 23:23
Ryans Minecraft Server Problem
09.08 18:06:03 [Server] INFO No new version available
09.08 18:06:03 [Server] INFO Checking for Updates ...
09.08 18:06:03 [Server] Startup Done (7.126s)! For help, type "help" or "?"
09.08 18:06:02 [Server] INFO Server permissions file permissions.yml is empty, ignoring it
09.08 18:06:02 [Server] INFO Checking/Fixing format of portals.yml
09.08 18:06:02 [Server] INFO Enabling RandomTP v2.3 - noID
09.08 18:06:02 [Server] INFO Enabling EssentialsChat v2.0.1-b467
09.08 18:06:02 [Server] INFO Boot finished.
09.08 18:06:02 [Server] INFO Finished loading data (File Mode).
09.08 18:06:02 [Server] INFO Unexpected exception saving schema version: plugins/GriefPreventionData/_schemaVersion (Permission denied)