I hereby claim:
- I am uroborus on github.
- I am uroborus (https://keybase.io/uroborus) on keybase.
- I have a public key ASAcmzdFRJH84eR3w_H9TzwfThAVckXHesfKa_FuoNYhnAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# From https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH" | |
brew install coreutils | |
brew install gnu-tar --with-default-names | |
# alternatively | |
brew install binutils | |
brew install diffutils |
# Encoding file | |
perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' < file | |
# Decoding file | |
perl -MMIME::Base64 -ne 'print decode_base64($_)' < file.b64 | |
# HMAC-SHA1 | |
perl -MDigest::HMAC_SHA1 -le '$_=Digest::HMAC_SHA1->new($ARGV[0])->add($ARGV[1])->b64digest; $_.="=" x length % 4; print' TestKey TestString |
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
# 0. Intro to objects | |
## Everything is object | |
We will begin our journey with objects. | |
In Ruby, just like in real life, our world is filled with objects. Everything is an object - integers, characters, text, arrays - everything. | |
To make things happen using Ruby, one always puts oneself in the place of an object and then has conversations with other objects, telling them to do stuff. |