This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls *.png | while read line; do pngcrush -brute $line $line.crushed; mv -f $line.crushed $line; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node --debug-brk $(which grunt) buildall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Jira Sanity | |
// @namespace https://gist.github.com/tuxracer/6324960 | |
// @description http://i.minus.com/iblI17K8bAJjbr.gif | |
// @include https://*.atlassian.net/* | |
// ==/UserScript== | |
/*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license | |
//@ sourceMappingURL=jquery-2.0.3.min.map | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by https://github.com/tuxracer/generator-generatorcs | |
path = require 'path' | |
yeoman = require 'yeoman-generator' | |
module.exports = class ChaplinGenerator extends yeoman.generators.Base | |
constructor: (args, options, config) -> | |
yeoman.generators.Base.apply this, arguments | |
@on 'end', -> | |
@installDependencies skipInstall: options['skip-install'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// yeoman index.js created by generator-generator. Compare to https://gist.github.com/tuxracer/6332601 | |
'use strict'; | |
var util = require('util'); | |
var path = require('path'); | |
var yeoman = require('yeoman-generator'); | |
var ChaplinGenerator = module.exports = function ChaplinGenerator(args, options, config) { | |
yeoman.generators.Base.apply(this, arguments); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('coffee-script'); | |
module.exports = require('./index.coffee'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
review = "!git push origin HEAD:refs/for/$(git rev-parse --abbrev-ref HEAD)" | |
reviewmaster = push origin HEAD:refs/for/master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GeneratorGenerator = (args, options) -> | |
yeoman.generators.Base.apply this, arguments_ | |
@pkg = JSON.parse(@readFileAsString(path.join(__dirname, "../package.json"))) | |
@currentYear = (new Date()).getFullYear() | |
@on "end", -> | |
@npmInstall() unless options["skip-install"] | |
"use strict" | |
path = require("path") | |
url = require("url") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
toMs = (str) -> | |
unit = str.slice? -1 | |
duration = str.slice? 0, -1 | |
hasUnit = isNaN parseInt unit | |
# If there isn't a unit we'll assume this is already in milliseconds | |
if typeof str is 'number' or not hasUnit | |
str | |
else if str.slice(-2) is 'ms' | |
parseInt str.slice 0, -2 |