tmux new [-s name] [cmd](:new) - new session
tmux ls(:ls) - list sessionstmux switch [-t name](:switch) - switches to an existing session
| function! ToggleGStatus() | |
| if buflisted(bufname('.git/index')) | |
| bd .git/index | |
| else | |
| Gstatus | |
| endif | |
| endfunction | |
| command ToggleGStatus :call ToggleGStatus() | |
| nmap <F3> :ToggleGStatus<CR> |
| // Run in the JavaScript console of the hterm browser window | |
| // Clear all existing settings - you probably don't want to do this. | |
| // Preferences are now stored in "chrome.storage.sync" instead of | |
| // "window.localStorage" so if you clear your preferences the changes | |
| // will be propagated to other devices. | |
| //term_.prefs_.storage.clear(); | |
| var htermProfiles = [ |
| #!/bin/sh | |
| # recursively removes all .pyc files and __pycache__ directories in the current | |
| # directory | |
| find . | \ | |
| grep -E "(__pycache__|\.pyc$)" | \ | |
| xargs rm -rf | |
| # or, for copy-pasting: |
| #!/bin/bash | |
| # A simple script to backup an organization's GitHub repositories. | |
| #------------------------------------------------------------------------------- | |
| # NOTES: | |
| #------------------------------------------------------------------------------- | |
| # * User @jimklimov (and probably some others called out in the long comment | |
| # thread below) have modified this script to make it more robust and keep | |
| # up with various changes in the GitHub API and response format at: | |
| # https://github.com/jimklimov/github-scripts |
| #!/bin/sh | |
| # Installs tarsnap client on Debian and Ubuntu | |
| # | |
| # You'll need to setup an account at | |
| # http://www.tarsnap.com | |
| # and load it with some funds | |
| # | |
| # Make sure you run this as root | |
| # |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |
| #!/bin/sh | |
| # script to check for complete torrents in transmission folder, then stop and move them | |
| # either hard-code the MOVEDIR variable here… | |
| MOVEDIR=/home/mjdescy/media # the folder to move completed downloads to | |
| # …or set MOVEDIR using the first command-line argument | |
| # MOVEDIR=%1 | |
| # use transmission-remote to get torrent list from transmission-remote list | |
| # use sed to delete first / last line of output, and remove leading spaces | |
| # use cut to get first field from each line |