Skip to content

Instantly share code, notes, and snippets.

Avatar

ylluminate ylluminate

View GitHub Profile
View convert_currency.rb
#!/usr/bin/env ruby
require 'net/http'
def convert_currency(from_curr, to_curr)
doc = Net::HTTP.get('www.google.com', "/finance/converter?a=1&from=#{from_curr}&to=#{to_curr}")
regexp = Regexp.new("(\\d+\\.{0,1}\\d*)\\s+#{to_curr}")
regexp.match doc
$1.to_f
end
@ylluminate
ylluminate / perfectelementary.bash
Created Jun 17, 2017
HowTo Install the perfect Elementary-OS
View perfectelementary.bash
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@ylluminate
ylluminate / # nano - 2016-11-25_01-43-13.txt
Created Nov 25, 2016
nano (homebrew/dupes/nano) on macOS 10.12.1 - Homebrew build logs
View # nano - 2016-11-25_01-43-13.txt
Homebrew build logs for homebrew/dupes/nano on macOS 10.12.1
Build date: 2016-11-25 01:43:13
@ylluminate
ylluminate / # ncurses - 2016-11-25_01-41-30.txt
Created Nov 25, 2016
ncurses (homebrew/dupes/ncurses) on macOS 10.12.1 - Homebrew build logs
View # ncurses - 2016-11-25_01-41-30.txt
Homebrew build logs for homebrew/dupes/ncurses on macOS 10.12.1
Build date: 2016-11-25 01:41:30
@ylluminate
ylluminate / # nano - 2016-11-25_00-32-11.txt
Created Nov 25, 2016
nano (homebrew/dupes/nano) on macOS 10.12.1 - Homebrew build logs
View # nano - 2016-11-25_00-32-11.txt
Homebrew build logs for homebrew/dupes/nano on macOS 10.12.1
Build date: 2016-11-25 00:32:11
@ylluminate
ylluminate / # nano - 2016-11-24_23-24-25.txt
Created Nov 25, 2016
nano (homebrew/dupes/nano) on macOS 10.12.1 - Homebrew build logs
View # nano - 2016-11-24_23-24-25.txt
Homebrew build logs for homebrew/dupes/nano on macOS 10.12.1
Build date: 2016-11-24 23:24:25
@ylluminate
ylluminate / default.txt
Created Jun 25, 2016
Default Password for Telnet to Night Owl FS500 (DVR08-53A)
View default.txt
# For anyone that would like root access via telnet to their old Night Owl device, the login is:
Username: root
Password: 123456
@ylluminate
ylluminate / ! README.txt
Last active Oct 19, 2020
Own your DVR (Mfgs: Swann, Lorex, Night Owl, Zmodo, URMET, kguard security, etc.; models: DVR04B, DVR08B, DVR-16CIF, DVR16B, etc.)
View ! README.txt
See the original post for the source of this code:
http://console-cowboys.blogspot.com/2013/01/swann-song-dvr-insecurity.html
@ylluminate
ylluminate / gist:0fd20847809efc2e950f2e865136997a
Created May 27, 2016 — forked from ryansobol/gist:5252653
15 Questions to Ask During a Ruby Interview
View gist:0fd20847809efc2e950f2e865136997a

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.

You can’t perform that action at this time.