This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Act like Vim | |
set-window-option -g mode-keys vi | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# Look good | |
set-option -g default-terminal "screen-256color" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m.messages 'send-template', {:template_name => "Folder Shared", :template_content => [{:name => "sharelink", :content => "<a href='www.google.com'>test link</a>"},{:name => "monkeyrewards", :content => "<a href='www.google.com'>test link</a>"}], :message => {:subject => "Folder Shared!", :from_email => "[email protected]", :to => [{:email => "[email protected]", :name => "Ben Zittlau"}]}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class World | |
attr_accessor :cells | |
NEXT_STATE = [:dead, :alive, :alive, :dead, :dead, :dead, :dead, :dead] | |
def initialize(cells) | |
@cells = cells | |
end | |
def add_newly_born_cells |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo find . -mtime -30 ! -type d -print | xargs tar -cvf ~/archive.tar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Push the commit with the given SHA to origin:develop | |
git push origin 3733b4360f280f084c1d719e7cf4d277c7934621:develop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macbook:al Ben$ git reset --hard origin/master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> Ben's amazing bluring script </title> | |
</head> | |
<h1> Ben's amazing bluring script </h1> | |
<button id="reset">Reset</button> | |
<button id="blur">Blur</button> | |
<span id="paint_white" class="selected">Paint White</span> | |
<span id="paint_black">Paint Black</span> | |
<span id="paint_toggle">Paint Toggle</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List delayed jobs | |
ruby-1.9.2-p180 :002 > Delayed::Job.all.to_a | |
# Generate delayed job mongoid indexes | |
rails runner 'Delayed::Backend::Mongoid::Job.create_indexes' | |
# Work off the delayed job queue | |
Delayed::Worker.new.work_off | |
# Disabled delayed jobs during test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Press "t" to active the file finder. It's amazing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.action_mailer.smtp_settings = { | |
:enable_starttls_auto => true, | |
:address => "smtp.gmail.com", | |
:port => 587, | |
:domain => "whatever.com", | |
:authentication => :plain, | |
:user_name => "[email protected]", | |
:password => "xxxxxxxxx", | |
:openssl_verify_mode => OpenSSL::SSL::VERIFY_NONE | |
} |