Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@froggr
froggr / vim_cheatsheet.md
Last active December 26, 2015 01:59 — forked from joejag/cheats.txt

###Vim Cheat Sheet

MOVEMENT

  • Basic movement: h j k l (left, down,up, right)
  • Word movement: w b (next, back) W B (ignore punct)
  • Number powered movement: 3w
  • Start of line: 0, end $
  • Start doc: gg, end: G, line: 6G
  • Next page: CTRL+f, Back page: CTRL+b, 1/2 versions: CTRL+d, CTRL+u
.img-circle,
.img-rounded,
.img-thumbnail,
.table-bordered,
select,textarea,input,code,pre,kbd,pre,
.input-group-addon,
.btn,
.dropdown-menu,
.form-control,
.panel,
/* If you've ever had the need to link directly to an open modal window with Bootstrap, here's a quick and easy way to do it:
Make sure your modal has an id:
<div class="modal" id="myModal" ... >
Then stick this bit of Javascript at at the end of your document:
*/
$(document).ready(function() {
@froggr
froggr / update_git_repos.sh
Last active August 29, 2015 14:10 — forked from douglas/update_git_repos.sh
Update all git repos in a base directory. I use git-up to get all branches
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
var f='write.txt',
fs=require('fs');
fs.writeFile(f,'Some text to write.',function(err){
if(err)
console.error(err);
console.log('Written!');
});
fs.appendFile(f,'Some more text to append.',function(err){
# This file is a reference script for the blog post
# http://jonathonhill.net/2012-11-29/roll-your-own-mamp-development-environment/,
# and is not intended to be run as a stand-alone install script.
# Some manual steps will be required, please read the blog post before attempting
# to use this script.
# Tutorial:
# http://mac.tutsplus.com/tutorials/server/upgrading-the-native-php-installation-on-os-x-mountain-lion/
# Download and install XQuartz from http://xquartz.macosforge.org/
.gform_wrapper ul {
padding-left: 0;
list-style: none; }
.gform_wrapper li {
margin-bottom: 15px; }
.gform_wrapper form {
margin-bottom: 0; }
@froggr
froggr / tmux-cheatsheet.markdown
Created February 29, 2016 19:13 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname