Skip to content

Instantly share code, notes, and snippets.

# https://github.com/tmux/tmux/issues/145
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -t vi-copy C-WheelUpPane halfpage-up
bind -t vi-copy C-WheelDownPane halfpage-down
image: golang:1.5
before_script:
- echo " ===== :D ===== "
test:
script:
- go test
[:INT, :TERM, :HUP].each do |s|
Signal.trap(s) {
puts "#{s}"
exit 1
}
end
let g:syntastic_eruby_ruby_quiet_messages =
\ {'regex': 'possibly useless use of a variable in void context'}
ActiveRecord::Base.connection.select_values("select uuid_generate_v4();").first
ActiveRecord::Base.connection.select("select uuid_generate_v4();")
function wikip() {
if [ $# != 0 ]; then
w3m -dump "http://ja.wikipedia.org/wiki/$*" |less
else
echo "Usage: wikip <keyword>"
fi
}
[Unit]
Description=nginx
SourcePath=/etc/init.d/nginx
Before=multi-user.target multi-user.target multi-user.target graphical.target shutdown.target
After=network-online.target remote-fs.target local-fs.target
Wants=network-online.target
Conflicts=shutdown.target
[Service]
Type=forking
tags
tmp
.git/
node_modules/
#!/usr/bin/env bash
brew $@ && echo $@ >> ~/Documents/brew.txt