Skip to content

Instantly share code, notes, and snippets.

View triggity's full-sized avatar

Michael Truong triggity

  • Classpass
  • San Francisco
View GitHub Profile
@triggity
triggity / docker-compose.yml
Last active April 27, 2020 15:38
home lab media docker compose
# host: debian with 2 mounted volumes for TV and Movies Media. (HDD)
# configuration and and config data is stored on host SSD. (/moviesmedia, /tvmedia)
# on ssd: configs, downloads in progress, images
#
version: '3.4'
services:
plex:
@triggity
triggity / gist:445b4ef2afb949fc7d14
Created May 29, 2014 20:44
case for mixins in marionette views
var guideLineMixin = {
defaults: {
guideLine: false
},
renderGuideline: function() {}
};
Chart.extend({
mixin: [guideLineMixin]
checking out new branch
git checkout -b newbranch remote/branch
@triggity
triggity / vim
Created April 9, 2013 05:48
vim cheatsheet
The list of Vim commands >
Working with files
Vim command Action
:e filename Open a new file. You can use the Tab key for automatic file name completion, just like at the shell command prompt.
:w filename Save changes to a file. If you don't specify a file name, Vim saves as the file name you were editing. For saving the file under a different name, specify the file name.
:q Quit Vim. If you have unsaved changes, Vim refuses to exit.
:q! Exit Vim without saving changes.
:wq Write the file and exit.
:x Almost the same as :wq, write the file and exit if you've made changes to the file. If you haven't made any changes to the file, Vim exits without writing the file.
# 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/

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname