As configured in my dotfiles.
start new:
tmux
start new with session name:
| // Shows all exec commands and dump into allexeccommands.txt | |
| grep -rin 'exec(' var/www/yourfolder/ | awk '{FS=": +|\t"};{print $1;for(i=2;i<=NF;i++){ if($i != "") print $i}; print "\n"}' > allexeccommands.txt |
| #include <mongo.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| int main () { | |
| /** | |
| Sample BSON object that we'll be injecting. |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <signal.h> | |
| #include <time.h> | |
| #include <hiredis.h> | |
| #include <async.h> | |
| int main() { | |
| redisContext *c = redisConnect("127.0.0.1", 6379); |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| wget -q -O - https://raw.github.com/gist/2204072/install_tmux_1.6_on_ubuntu_10.04.sh | sudo bash |
| set-option -g mouse-select-pane on | |
| setw -g mode-keys vi | |
| set -g history-limit 5000 | |
| setw -g utf8 on |
| <?php | |
| $m = new MongoClient(); | |
| $db = $m->selectDB("test"); | |
| $collection = new MongoCollection($db, "fakestat"); | |
| for($i=0;$i<1000;$i++){ | |
| $index[]=rand(1,432050); | |
| } | |
| $fp = fopen('logTime.txt','w'); | |
| fwrite($fp, "startTimeSec\t startTimeNanoSec\t endTimeSec\t endTimeNanoSec\n"); |
| #!/usr/bin/env bash | |
| export TMUX_INSTALL_VERSION=1.6 | |
| wget -q -O - "https://gist.github.com/raw/4561674/install_tmux_${TMUX_INSTALL_VERSION}_on_ubuntu_10.04.sh" | sudo bash |