Command Line
pry -r ./config/app_init_file.rb- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb- load your rails into a pry session
Debugger
| <?xml version='1.0' encoding='utf-8'?> | |
| <?grc format='1' created='3.7.9'?> | |
| <flow_graph> | |
| <timestamp>Tue Jul 22 14:34:09 2014</timestamp> | |
| <block> | |
| <key>options</key> | |
| <param> | |
| <key>author</key> | |
| <value></value> | |
| </param> |
| { | |
| "Africa/Abidjan": "+00:00", | |
| "Africa/Accra": "+00:00", | |
| "Africa/Addis_Ababa": "+03:00", | |
| "Africa/Algiers": "+01:00", | |
| "Africa/Asmara": "+03:00", | |
| "Africa/Asmera": "+03:00", | |
| "Africa/Bamako": "+00:00", | |
| "Africa/Bangui": "+01:00", | |
| "Africa/Banjul": "+00:00", |
| uint8_t c; | |
| void setup() | |
| { | |
| // Open serial communications and wait for port to open: | |
| Serial.begin(4800); // 8E2 : 8bits, 2 stops bits, even parity. | |
| // Serial.begin(4800, SERIAL_8E2); // 8E2 : 8bits, 2 stops bits, even parity. | |
| while (!Serial) { |
| require 'nokogiri' | |
| require 'open-uri' | |
| # Get a Nokogiri::HTML:Document for the page we're interested in... | |
| doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove')) | |
| # Do funky things with it using Nokogiri::XML::Node methods... | |
| #### |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| #!/bin/bash | |
| # -------------------------------------------------------------------------------------------- | |
| # Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
| # | |
| # Run from the web: | |
| # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh) | |
| # -------------------------------------------------------------------------------------------- | |
| # Set the Ruby version you want to install |
| ########################################################### | |
| # net/socket_http.rb | |
| ########################################################### | |
| module Net | |
| # Overrides the connect method to simply connect to a unix domain socket. | |
| class SocketHttp < HTTP | |
| attr_reader :socket_path | |
| # URI should be a relative URI giving the path on the HTTP server. |
| require 'nokogiri' | |
| require 'open-uri' | |
| class MakeMkvSettings | |
| attr_accessor :makemkv_settingsfile | |
| def initialize | |
| puts("Initialize MakeMKV Settings update process...") | |
| @makemkv_settingsfile = ENV['HOME'] + "/.MakeMKV/settings.conf" |
| #!/bin/sh | |
| echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
| read inputline | |
| name="$inputline" | |
| echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
| read inputline | |
| url="$inputline" |