tmux new -s name - start a new session
tmux new -s name - start a new session in background
tmux new -s name -n window name "process to run" - start a new session with the window name set
tmux kill-session -t name - to kill a session
| set -g default-terminal "screen-256color" | |
| # remap prefix to Control + Space | |
| set -g prefix C-j | |
| unbind C-b | |
| bind C-j send-prefix | |
| # force a reload of the config file | |
| unbind R | |
| bind R source-file ~/.tmux.conf\; display-message "Reloaded!!" |
| call plug#begin('~/.vim/plugged') | |
| Plug 'junegunn/vim-github-dashboard' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'Xuyuanp/nerdtree-git-plugin' | |
| Plug 'kien/ctrlp.vim' | |
| Plug 'kchmck/vim-coffee-script' | |
| Plug 'bling/vim-airline' | |
| Plug 'nathanaelkane/vim-indent-guides' | |
| Plug 'easymotion/vim-easymotion' | |
| Plug 'marciomazza/vim-brogrammer-theme' |
ctrl-s - freezes the screen, ctrl-q unfreezes it. Useful to stop output without stopping program
at Do job at certain time
cron Execute script at certain intervals (daily, weekly, etc.).
du -k -s directory Get directory size
find rootdir -name filename Look for filename starting with rootdir.
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| respawn | |
| respawn limit 15 5 | |
| start on runlevel [2345] | |
| stop on runlevel [06] | |
| script | |
| su - uid -c "cd <location> && bundle exec sidekiq" >> /var/log/sidekiq.log | |
| end script |
| pre-start script | |
| pkill -f puma | |
| end script | |
| post-stop script | |
| pkill -f puma | |
| end script | |
| respawn | |
| respawn limit 15 5 |
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |