Skip to content

Instantly share code, notes, and snippets.

View ylluminate's full-sized avatar

ylluminate ylluminate

View GitHub Profile
#!/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 June 17, 2017 00:16
HowTo Install the perfect Elementary-OS
#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 November 25, 2016 06:46
nano (homebrew/dupes/nano) on macOS 10.12.1 - Homebrew build logs
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 November 25, 2016 06:42
ncurses (homebrew/dupes/ncurses) on macOS 10.12.1 - Homebrew build logs
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 November 25, 2016 05:35
nano (homebrew/dupes/nano) on macOS 10.12.1 - Homebrew build logs
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 November 25, 2016 04:25
nano (homebrew/dupes/nano) on macOS 10.12.1 - Homebrew build logs
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 June 25, 2016 20:47
Default Password for Telnet to Night Owl FS500 (DVR08-53A)
# 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 March 17, 2024 04:35
Own your DVR (Mfgs: Swann, Lorex, Night Owl, Zmodo, URMET, kguard security, etc.; models: DVR04B, DVR08B, DVR-16CIF, DVR16B, etc.)
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 23:23 — forked from ryansobol/gist:5252653
15 Questions to Ask During a Ruby Interview

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.

@ylluminate
ylluminate / image.md
Last active August 29, 2015 14:23 — forked from jah2488/image.md

so small