start new:
tmux
start new with session name:
tmux new -s myname
One of the Problems we face in any teams is that every one has his own sublime settings for spacing indentation which cause a problem when you push to git hub as some prefer using tabs for indentation and others using spacing.
The objective is to standardize your sublime settings for readability and to avoid extra indentation or spaces after each line you write
❯ redis-benchmark -p 6379 -P 100 -n 100000 -q
PING_INLINE: 653594.81 requests per second
PING_BULK: 1149425.38 requests per second
SET: 561797.75 requests per second
GET: 800000.00 requests per second
INCR: 746268.62 requests per second
LPUSH: 543478.25 requests per second
RPUSH: 584795.31 requests per second
LPOP: 606060.56 requests per second
// run once per project | |
git remote add upstream [ssh repo] | |
// before pull request | |
git fetch upstream | |
// merge remote with local | |
git merge upstream/master | |
// install hub |
#!/bin/bash | |
echo "--------------------------------------------------------------------------------" | |
uname -a | |
echo "--------------------------------------------------------------------------------" | |
MEMORY=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $1 $2 $3}'` | |
echo "$MEMORY" | |
echo "--------------------------------------------------------------------------------" | |
CORES_COUNT=`sysctl hw.ncpu | awk '{print $2}'` | |
echo "CPU" | |
sysctl -n machdep.cpu.brand_string |
jQuery(function($) { | |
$('form[data-async]').live('submit', function(event) { | |
var $form = $(this); | |
var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Testing Pie Chart</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.1.3"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.1.3"></script> | |
<style type="text/css"> |
// This is a simple function to get all the attached jquery events on all the DOM elements | |
// you will find a new data attribute on the elements that has events attached to it. | |
(function() { | |
if (window.jQuery) { | |
var elms = [], | |
elm = {}, | |
attrs = "", | |
evTypes = 0, | |
evCounter = 0, | |
elmCounter = 0, |