start new:
tmux
start new with session name:
tmux new -s myname
This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.
Here are the required steps to create a command:
Create a new Gist with a command.js
and command.json
file, or simply fork this one.
Write your JavaScript in command.js
. This will be injected into and executed on the page the user is currently on when they run it.
Add some metadata to the command.json
file:
#!/bin/bash | |
# As per http://osxdaily.com/2011/08/04/enable-key-repeat-mac-os-x-lion/ | |
# Most apps need to be relaunched to make the setting stick. | |
defaults write -g ApplePressAndHoldEnabled -bool true |
source 'https://rubygems.org' | |
ruby '2.0.0' | |
gem 'dotenv-rails', :groups => [:development, :test] | |
gem 'rails', '~> 4.1.6' | |
gem 'rails-api', '~> 0.2.1' | |
# PostgreSQL | |
gem 'pg', '~> 0.17.1' |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
times in msec | |
clock self+sourced self: sourced script | |
clock elapsed: other lines | |
000.011 000.011: --- VIM STARTING --- | |
000.097 000.086: Allocated generic buffers | |
000.521 000.424: locale set | |
000.526 000.005: clipboard setup |
" Vim configuration. Thoroughly annotated with comments for two reasons: | |
" 1. Hopefully this is helpful to others | |
" 2. I often can't remember why something is set is a certain way or what a | |
" specific plugin provides! | |
" | |
" Note to future self: Git history was lost during a rename; you can see it by | |
" adding the `--follow` option to `git log`. | |
" | |
" Any questions, contact @lbwski |