start new:
tmux
start new with session name:
tmux new -s myname
require 'rubygems' | |
require 'attr_encrypted' | |
class User | |
attr_encrypted :last_name, :key => 'my super secret key' | |
def initialize(last_name) | |
self.last_name = last_name | |
end | |
end |
#include <iostream> | |
#include <ctime> | |
#include <string> | |
using namespace std; | |
string convert(unsigned long n) { | |
static char *formats[16] = { | |
"", "%s%s%s", "%s%s", "%s%s-%s", | |
"%s hundred", "%s hundred and %s%s", "%s hundred and %s", "%s hundred and %s-%s", |
$VERBOSE = nil | |
require File.expand_path('../rooby', __FILE__) | |
Person = Rooby::Class.new 'Person' do | |
define :initialize do |name| | |
@name = name | |
end | |
define :name do |
# This tmux statusbar config was created by tmuxline.vim | |
# on Thu, 09 Jan 2014 | |
set -g status-bg 'colour238' | |
set -g message-command-fg 'colour249' | |
set -g status-justify 'left' | |
set -g status-left-length '100' | |
set -g status 'on' | |
set -g pane-active-border-fg 'colour150' | |
set -g message-bg 'colour237' |
.ruby-version | |
.php-version | |
*.swp | |
*.swo | |
*.un~ | |
# Compiled source # | |
################### | |
*.class | |
*.dll |
(evil-define-state god | |
"God state." | |
:tag " <G> " | |
:message "-- GOD MODE --" | |
:entry-hook (evil-god-start-hook) | |
:exit-hook (evil-god-stop-hook) | |
:input-method t | |
:intercept-esc nil) | |
(defun evil-god-start-hook () |
# This patch detects {index_columns} that match something like | |
# the example below, then strips the surrounding double quotes. | |
# | |
# "(settings->'example')" | |
# | |
# The resulting CREATE INDEX sql looks something like: | |
# | |
# CREATE INDEX "idx_users_on_settings_example" ON "users" USING gin ((settings->>'example')) | |
# | |
# Your {add_index} call should looks something like: |
[Unit] | |
Description=Buildkite Agents | |
Documentation=https://buildkite.com/agent | |
[email protected] | |
[email protected] | |
# ... | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/true |
# It requires ACK - http://betterthangrep.com/ | |
task :find_unused_images do | |
images = Dir.glob('app/assets/images/**/*') | |
images_to_delete = [] | |
images.each do |image| | |
unless File.directory?(image) | |
# print "\nChecking #{image}..." | |
print "." | |
result = `ack -1 -G '(app|public)' --ruby --html --css --js #{File.basename(image)}` |