I decided to switch to Rbfu (https://github.com/hmans/rbfu) for my ruby version manager. These are the rough steps I did to make that change.
I just followed the READMEs manual install instructions: https://github.com/hmans/rbfu#manual-installation
/* https://gist.github.com/kellyredding/30ac3bbf4534e00b0c04 */ | |
code, | |
.CodeRay, | |
.CodeRay * { | |
box-sizing: border-box; | |
} | |
code, | |
.CodeRay .code pre { |
REASSIGN OWNED BY old_role [, ...] TO new_role |
I decided to switch to Rbfu (https://github.com/hmans/rbfu) for my ruby version manager. These are the rough steps I did to make that change.
I just followed the READMEs manual install instructions: https://github.com/hmans/rbfu#manual-installation
puts 'hello ''there' | |
# => 'hello there' | |
puts "Wow! "\ | |
"This is a better way to get long "\ | |
"strings into your code without "\ | |
"violating your style guide that "\ | |
"recommends no line be longer than "\ | |
"80 characters long." | |
# => "Wow! This is a better way to get long strings into your code without violating your style guide that recommends no line be longer than 80 characters long." |
# used to make sure old mail items were getting garbage collected | |
# in the runner loop... | |
puts "InboxSync objects in memory: | |
ObjectSpace.each_object(Object) do |x| | |
if x.class.name.include?('InboxSync') | |
puts "#<#{x.class}:#{'0x%x' % (x.object_id << 1)}" | |
end | |
end |
#!/bin/bash | |
if [ -z $1 ]; then | |
echo "usage: mkgit project-name project-description" | |
else | |
gitdir="/srv/repos/$1.git" | |
if [ -d $gitdir ]; then | |
echo "error: the repo '$gitdir' already exists." | |
else |
require 'net/imap' | |
# Net::IMAP raises a parse error exception when fetching attributes it doesn't | |
# recognize. Here I patch an instance of Net::IMAP's `msg_att` method to | |
# recognize the Gmail IMAP extended attributes | |
# Refer to: | |
# * https://developers.google.com/google-apps/gmail/imap_extensions#access_to_gmail_labels_x-gm-labels | |
# * http://blog.wojt.eu/post/13496746332/retrieving-gmail-thread-ids-with-ruby |
class NamespacedKeyValueConfigFile | |
# This class parses a git-style config file of key=value configs grouped | |
# by [namespaces]. Each namespace gets a method that returns a hash of | |
# the key-value configs for the namespace. So given: | |
# [thing] | |
# key1 = val1 | |
# key2 = val2 | |
# [other] |