start new:
tmux
start new with session name:
tmux new -s myname
| /**********************************************/ | |
| /* | |
| /* IR_Black Skin by Ben Truyman - 2011 | |
| /* | |
| /* Based on Todd Werth's IR_Black: | |
| /* http://blog.toddwerth.com/entries/2 | |
| /* | |
| /* Inspired by Darcy Clarke's blog post: | |
| /* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| /* |
| var app = require('../app'); | |
| console.log(); | |
| app.routes.all().forEach(function(route){ | |
| console.log(' \033[90m%s \033[36m%s\033[0m', route.method.toUpperCase(), route.path); | |
| }); | |
| console.log(); | |
| process.exit(); |
| (function($){ | |
| $.fn.html5Uploader = function(){ | |
| return this.each(function(){ | |
| var $this = $(this); | |
| if($this.is('[type="file"]')){ | |
| $this.bind('change', function(){ | |
| var files = this.files; | |
| for(var i = 0;i < files.length;i++){ | |
| fileHandler.call($this, files[i]); | |
| } |
| <!-- Add the following lines to theme's html code right before </head> --> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
| <script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script> | |
| <script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script> | |
| <!-- | |
| Usage: just add <div class="gist">[gist URL]</div> | |
| Example: <div class="gist">https://gist.github.com/1395926</div> | |
| --> |
| # FormView Class | |
| # | |
| # Backbone View subclass that will allow you to bind input fields | |
| # to model fields and keep the data in sync using the same | |
| # declarative syntax you're used to for Backbone Views. | |
| # | |
| # blog post: http://thurloat.com/2012/01/17/backbone-sync-models-and-views | |
| # | |
| # class TestView extends FormView | |
| # |
| var fstream = require("fstream"), | |
| tar = require("tar"), | |
| zlib = require("zlib"); | |
| fstream.Reader("src").pipe(tar.Pack()).pipe(zlib.createGzip()).pipe(fstream.Writer("output.tar.gz")); |
| --- | |
| #### | |
| #### THIS IS OLD AND OUTDATED | |
| #### LIKE, ANSIBLE 1.0 OLD. | |
| #### | |
| #### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
| #### | |
| #### IF IT BREAKS I'M JUST SOME GUY WITH | |
| #### A DOG, OK, SORRY | |
| #### |
| function git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \(\1\)/' | |
| } | |
| PS1=" λ \W\$(git_branch): " | |
| PS2=" | " |
| /** | |
| * Module dependencies. | |
| */ | |
| var path = require('path') | |
| // prompt | |
| exports.PS1 = function(){ |