Skip to content

Instantly share code, notes, and snippets.

@dmiddle2000lb
dmiddle2000lb / gist:96857c40ac1ef4cc01ba
Created October 10, 2014 12:43
retire feature flag directive
// given the markup: <a href="#hashtag" feature-flag="phaseTwo" class="whatevs-yo">don't click</a>
// and the task to "retire" feature flag settings from the markup (ie B-03572)
// grunt feature --retire=phaseTwo
module.exports = function(grunt) {
grunt.initConfig({
dom_munger: {
feature_flags: {
src: ['path/to/views'],
options: {
callback: function($, file) {
@dmiddle2000lb
dmiddle2000lb / gfu
Created July 24, 2014 15:55
git eff u - random rage commit message generator. now with less obscenities!
gfu() {
# http://mentalfloss.com/article/57872/31-adorable-slang-terms-sexual-intercourse-last-600-years
no_fucks=("Give someone a green gown" "Play nug-a-nug" "Play the pyrdewy" "Play at couch quail" "Ride below the crupper" "Board a land carrack" "Fadoodling" "Put the devil into hell" "Night physic" "Princum-prancum" "Culbatizing exercise" "Join paunches" "Dance the Paphian jig" "Play at tray trip of a die" "Dance Barnaby " "Shot twixt wind and water" "Play at rantum-scantum" "Blow off the groundsills" "Play hey gammer cook" "Join giblets" "Play at rumpscuttle and clapperdepouch" "Lerricompoop" "Ride a dragon upon St. George" "Houghmagandy" "Pogue the hone" "Make feet for children’s stockings" "Dance the kipples" "Have ones corn ground" "Horizontal refreshment" "Arrive at the end of the sentimental journey" "Get ones ashes hauled")
get_fucked=${no_fucks[$RANDOM % ${#no_fucks[@]} ]}
git commit -m "$get_fucked"
}