start new:
tmux
start new with session name:
tmux new -s myname
| Byobu Commands | |
| ============== | |
| byobu Screen manager | |
| Level 0 Commands (Quick Start) | |
| ------------------------------ | |
| <F2> Create a new window |
| {%url 'nominations-form' as nomination_form %} | |
| {% blocktrans %} | |
| <p>Be the first to <a href="{{ nomination_form }}">nominate your community.</a></p> | |
| {% endblocktrans %} |
| http://stackoverflow.com/questions/4556184/vim-move-window-left-right | |
| http://www.worldtimzone.com/res/vi.html |
| # GIT | |
| alias gs='git status' | |
| alias gpl='git pull' | |
| alias gc='git commit' | |
| alias gp='git push' | |
| alias ga='git add' | |
| # GRUNT | |
| alias gw='grunt watch --force' | |
| alias gb='grunt build --force' |
| Grep | |
| ========== | |
| grep -ir "some_string" some_directory | |
| grep -ir --include=*.less "some_string" some_directory |
| # Header 1 # | |
| ## Header 2 ## | |
| ### Header 3 ### (Hashes on right are optional) | |
| #### Header 4 #### | |
| ##### Header 5 ##### | |
| ## Markdown plus h2 with a custom ID ## {#id-goes-here} | |
| [Link back to H2](#id-goes-here) | |
| This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one |
| // When using underscore this passes the class scope into the event handler (callback function) | |
| // rather than having the click event scope in the handler (callback function) | |
| Navigation.prototype._addClickEvent = function () { | |
| var handler = _(this._handleEventClick).bind(this); | |
| this.$nav_items.on('click', handler); | |
| }; | |
| // Here this refers to Navigation.prototype rather than the event which gets passed in | |
| Navigation.prototype._handleEventClick = function (evt) { | |
| evt.preventDefault(); |
| <!--Example JS template--> | |
| <script type="text/template" id="PastCommunityTemplate"> | |
| <img class="pvs-cmy-img" src="<%= thumbnail %>" alt="<%= name %>"> | |
| <h3 class="pvs-cmy-title"><%= name %></h3> | |
| <h4 class="pvs-cmy-city">City: <%= city %></h4> | |
| <p class="pvs-cmy-description"><%= summary %></p> | |
| </script> |