Skip to content

Instantly share code, notes, and snippets.

View tyrbo's full-sized avatar

Jonmichael Chambers tyrbo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tyrbo on github.
  • I am tyrbo (https://keybase.io/tyrbo) on keybase.
  • I have a public key ASAOlcWz-3g6Bm38qAqKGQjW5YaJVLpQYPtEyZzz0ABvnQo

To claim this, I am signing this object:

Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-TaskbarOptions -Size Small -Lock -Dock Bottom -Combine Always
Disable-BingSearch
cinst chocolatey
cinst googlechrome
cinst firefox
cinst 7zip
cinst vlc
version: '2'
services:
app:
build: .
depends_on:
- db
- redis
- phantomjs
ports:
This is a test.
[7] pry(main)> module B
[7] pry(main)* class << self
[7] pry(main)* attr_accessor :derp
[7] pry(main)* end
[7] pry(main)* end
=> nil
[8] pry(main)> B.derp = true
=> true
[9] pry(main)> B.derp
=> true
class RPNCalculator
def evaluate(rpn)
stack = []
split_elements = rpn.split(" ")
split_elements.each_with_index do |element, idx|
if element =~ /\d+/
stack << element.to_i
else
phrase = "This is my secret message."
code = 13
encrypted_phrase = phrase.upcase.chars.map do |char|
value = char.ord
next char if (value < 65 || value > 90)
final = (value + code)
final = (final - 91) + 65 if final > 90
final.chr
@tyrbo
tyrbo / lol.rb
Created November 17, 2014 17:26
lol
a = [1, 2, 3, 4, [5, 6], [7, 8, 9]]
def flatten(input, output = nil)
output ||= []
i = 0
max = input.size
for i in 0...max
if input[i].is_a? Array
@tyrbo
tyrbo / sources.list
Created October 16, 2014 21:08
sources.list
deb http://nginx.org/packages/debian/ trusty nginx
deb-src http://nginx.org/packages/debian/ trusty nginx
@tyrbo
tyrbo / octo.conf
Last active August 29, 2015 14:07
octo.conf
start on runlevel [2345]
stop on runlevel [016]
respawn
exec su - miniature-octo-ironman -c 'cd /home/miniature-octo-ironman/miniature-octo-ironman; chruby-exec 2.1.2 -- bundle exec pumactl --config-file puma_config.rb start'