I hereby claim:
- I am fijimunkii on github.
- I am harrisonpowers (https://keybase.io/harrisonpowers) on keybase.
- I have a public key whose fingerprint is 0308 0282 C2D8 FE6B 45E4 1BC8 27B1 21E8 32E8 2D76
To claim this, I am signing this object:
#!/bin/bash | |
# Install rbenv | |
# https://github.com/sstephenson/rbenv | |
cd ~ | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile | |
echo 'eval "$(rbenv init -)"' >> .bash_profile |
function lyrics | |
{ | |
sh ~/.config/pianobar/lyrics.sh | |
} |
function format_number(n) { | |
if (n < 1000) { | |
// Anything less than a thousand | |
return parseInt(n); | |
} else if (n < 1000000) { | |
// Anything less than a million | |
return (parseInt(n / 1000) + 'K'); | |
} else if (n < 1000000000) { |
defaults write com.apple.dashboard mcx-disabled -boolean NO |
comm -13 <(sort file1) <(sort file2) > file3 | |
grep -Fxvf file1 file2 > file3 | |
diff file1 file2 | grep "<" | sed 's/^<//g' > file3 | |
join -v 2 <(sort file1) <(sort file2) > file3 |
class CustomFormater < Logger::Formatter | |
def call(severity, time, progname, msg) | |
# msg2str is the internal helper that handles different msgs correctly | |
"#{time} - #{msg2str(msg)}" | |
end | |
end |
$logfile = File.join(__dir__, '../.log') | |
$logger = Logger.new($stdout).tap { |log| log.progname = 'MISBEHAVING APP' } | |
begin | |
# SSL Stuff | |
rescue => e | |
$logger.error e | |
$logger.error "Check the log file => #{$logfile}" | |
open($logfile, 'a') do |it| |
repo="fnichol/chef-rbenv" | |
latest_release=$(curl -s https://api.github.com/repos/$repo/git/refs/tags \ | |
| ruby -rjson -e ' | |
j = JSON.parse(STDIN.read); | |
puts j.map { |t| t["ref"].split("/").last }.sort.last | |
') | |
cat >> Berksfile <<END_OF_BERKSFILE | |
cookbook 'rbenv', | |
:git => 'git://github.com/$repo.git', :branch => '$latest_release' |
require 'csv' | |
require 'geocoder' | |
csv_dir = File.join(__dir__, 'csv/*.csv') | |
Geocoder.configure(:always_raise => [Geocoder::OverQueryLimitError]) | |
CSV::Converters[:quotes] = lambda{|s| | |
begin | |
return '' if s.to_s.empty? |
I hereby claim:
To claim this, I am signing this object: