View blog.rb
# Instead of loading all of Rails, load the
# particular Rails dependencies we need
require 'sqlite3'
require 'active_record'
# Set up a database that resides in RAM
adapter: 'sqlite3',
database: ':memory:'
View a_template.html.erb
<!-- NOTE this file must be saved under a folder named "a_subfolder"! -->
<h1><%= @a_variable.an_attribute %></h1>
View shell_log.txt
$ pbpaste
$ pbpaste | ruby -e 'url = gets.chomp; puts "[#{$1}](#{url})" if `curl -s #{url}` =~ %r{<title>(.*)</title>}im' | pbcopy # Get Markdown link
$ pbpaste
[Ruby Programming Language](
View tmux_global_hotkeys.txt
# Add to config file for
bind f11 shell '/usr/local/bin/tmux send-keys -t 0 C-p'
bind f12 shell '/usr/local/bin/tmux send-keys -t 0 C-n'
View ditch_intercom.txt
I'm writing about a totally different topic, though. It looks like your site is using Intercom, or some similar service. I don't know if you're as frustrated as I am with all the popups that intrude on everyone's daily work. But Intercom is just adding to the problem. It doesn't matter what the message is - odds are that it's not relevant to whatever task one is trying to carry out at the moment. The messages are a distraction.
Your product is great. But Intercom really hinders its usability. I hope you and your company will consider removing it from your site.
#!/usr/bin/env sh
# Create a new history file with simple, common commands removed
grep -v -E '^(exit|cd ..|git pull|git push|git status|git diff|git log|git checkout master|emacs .|rspec|rails c|bundle install|ls|rvm info|rails s|rake db:migrate|open .|tmux)\s*$' ~/.bash_history >> ~/.bash_history_cleaned
# Find top candidates for a 'grep -v' command of your own:
sort ~/.bash_history_cleaned | uniq --count | sort -n | tail -n 25
View 2016.txt
Progress: |==================================================================================================================================================================================================================================================================|
1. Fushigi Man -- Himuro Yoshiteru -- Fushigi Man EP
2. Letting Go -- Ketsa -- Mind Music Matter
3. Easily -- Grimes -- Art Angels
4. Favriel -- Grimes -- Halfaxa
5. Bootprint -- Himuro Yoshiteru -- Fushigi Man EP
6. Mighty feat. JFTH -- Caravan Palace -- <I°_°I>
7. Takhos -- Himuro Yoshiteru -- Fushigi Man EP
View style.css
body {
background-color: #edeff0;
font-family: "Helvetica", Arial, sans-serif;
padding: 40px;
text-align: center;
color: #333;
font-size: 18px;
h1 {
View gist:31e5f09bd678c154e008685fd868a1fe
git clone && cd optcarrot && brew install sdl2 && rvm use 2.3.1@optcarrot --ruby-version --create && bundle install && bin/optcarrot --video=sdl2 --audio=sdl2 --input=sdl2 examples/Lan_Master.nes
View log.txt
$ git config --global alias.amend 'commit --amend --no-edit'
$ git add .ruby-gemset
$ git commit -m "Set up rvm."
[master (root-commit) 53e0270] Set up rvm.
1 file changed, 1 insertion(+)
create mode 100644 .ruby-gemset
$ git add .ruby-version
$ git amend
[master b52d508] Set up rvm.
Date: Tue Oct 25 11:21:48 2016 -0700