start new:
tmux
start new with session name:
tmux new -s myname
| // ==UserScript== | |
| // @name Trello Activity | |
| // @namespace http://fluidapp.com | |
| // @description Displays a Growl notification for new activities every 5 seconds. Also updates the badge. | |
| // @include * | |
| // @author Michael Lopez ([email protected]) | |
| // ==/UserScript== | |
| (function () { | |
| if (window.fluid) { |
| // Copyright (C) 2012 Benoit Sigoure | |
| // Copyright (C) 2012 StumbleUpon, Inc. | |
| // This library is free software: you can redistribute it and/or modify it | |
| // under the terms of the GNU Lesser General Public License as published by | |
| // the Free Software Foundation, either version 2.1 of the License, or (at your | |
| // option) any later version. This program is distributed in the hope that it | |
| // will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | |
| // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | |
| // General Public License for more details. You should have received a copy | |
| // of the GNU Lesser General Public License along with this program. If not, |
| var linkify = (function() { | |
| var replaceSubstr = function(text, i, j, substr) { | |
| return text.substr(0, i) + substr + text.substr(j); | |
| } | |
| var mergeByIndices = function(a, b) { | |
| var i = 0, j = 0, result = []; | |
| while (i < a.length || j < b.length) { | |
| if (i < a.length && (j >= b.length || a[i].indices[0] < b[j].indices[0])) | |
| result.push(a[i++]); |
| #!/bin/bash | |
| # | |
| # Install Postgres 9.2 on a clean Ubuntu 12.04 | |
| """ | |
| LC_ALL issue | |
| comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file. | |
| sudo apt-get install language-pack-en-base | |
| sudo dpkg-reconfigure locales | |
| comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file. |
| #!/bin/bash | |
| #Author: Travis Gibson | |
| #This script requires an argument for the resolution width | |
| #Thanks go out to eCharles for a patch in the comments of this link here: http://blog.echarles.net/2013/10/01/Ubuntu-13.04-On-MacbookPro-Retina | |
| if [ -z "$1" ]; then | |
| echo "Usage: Res.sh <resolution_width>"; | |
| exit 1; | |
| fi | |
| erg=$( echo "$1") | |
| check=$(xrandr -q | grep DP-2 | cut -d " " -f 4 | cut -d "x" -f 1) |
| #!/bin/bash | |
| echo "Finding and Purging Big Files From Git History" | |
| echo "==============================================" | |
| echo "" | |
| echo "http://naleid.com/blog/2012/01/17/finding-and-purging-big-files-from-git-history/" | |
| echo "" | |
| pushd "$(git rev-parse --show-toplevel)" > /dev/null |
#Overview drip is an awesome command line tool that can be used to dramatically lower perceived JVM startup time. It does this by preloading an entirely new JVM process\instance and allowing you to simply use the preloaded environment. This has extraordinary results with jruby.
We reduced time to run rake environment from 13 seconds to a mere 3.5 seconds. This is actually at or near MRI 1.9.3p327 (with falcon patch) speeds!
Adding a few addition jruby options will reduce startup time even further (down to 1.69 seconds).
#Install Drip Install drip if you haven't already (see https://github.com/flatland/drip)
| var request = require('supertest'), | |
| should = require('should'), | |
| app = require('../server'); | |
| var Cookies; | |
| describe('Functional Test <Sessions>:', function () { | |
| it('should create user session for valid user', function (done) { | |
| request(app) | |
| .post('/v1/sessions') |
| -- turns a dictionary table into a bulk reply table | |
| local dict2bulk = function (dict) | |
| local result = {} | |
| for k, v in pairs(dict) do | |
| table.insert(result, k) | |
| table.insert(result, v) | |
| end | |
| return result | |
| end |