start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2492984/hack.sh | sh | |
| # |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| // Create a new project and copy this code into app.js | |
| // if you use this code, please give me credit :) | |
| function JustAView(text){ | |
| var view = Ti.UI.createView({ | |
| backgroundColor:"#"+((1<<24)*Math.random()|0).toString(16), | |
| width:200, | |
| height:100 | |
| }); | |
| var label = Ti.UI.createLabel({ |
| /* | |
| * jQuery selectbox plugin | |
| * | |
| * Copyright (c) 2007 Sadri Sahraoui (brainfault.com) | |
| * Licensed under the GPL license and MIT: | |
| * http://www.opensource.org/licenses/GPL-license.php | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * | |
| * The code is inspired from Autocomplete plugin (http://www.dyve.net/jquery/?autocomplete) | |
| * |
| /* | |
| * jQuery Mobile Framework : events | |
| * Copyright (c) jQuery Project | |
| * Dual licensed under the MIT or GPL Version 2 licenses. | |
| * http://jquery.org/license | |
| */ | |
| (function($, undefined ) { | |
| $.extend( $.support, { | |
| orientation: "orientation" in window, |
| class AccountsController < ActionController::Base | |
| before_filter :lock_out_annoying_scammers | |
| def lock_out_annoying_scammers | |
| if signed_in_user && signed_in_user.email =~ secret_hacker_regexp | |
| logger.warn 'One of those annoying scammers has tried to access the accounts controller' | |
| redirect_to 'http://www.amazon.com/Hackers-Jonny-Lee-Miller/dp/6305047456/' and return | |
| end | |
| end | |
| end |
| var SITE = SITE || {}; | |
| SITE.fileInputs = function() { | |
| var $this = $(this), | |
| $val = $this.val(), | |
| valArray = $val.split('\\'), | |
| newVal = valArray[valArray.length-1], | |
| $button = $this.siblings('.button'), | |
| $fakeFile = $this.siblings('.file-holder'); | |
| if(newVal !== '') { |