Skip to content

Instantly share code, notes, and snippets.

View jrodden1's full-sized avatar

jrodden1 jrodden1

View GitHub Profile
@rxseger
rxseger / file_atsc_rx2.grc
Created June 22, 2016 07:32
Enhanced file_atsc_rx.grc, exploded view with additional debug/diagnosis blocks for testing
<?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",
@mqu
mqu / arduino-serial.ino
Created March 31, 2015 05:21
simple ruby example to read and write bytes to Arduino serial port.
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...
####
@lfender6445
lfender6445 / gist:9919357
Last active October 8, 2025 09:24
Pry Cheat Sheet

Pry Cheat Sheet

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

@blacktm
blacktm / install_ruby_rpi.sh
Last active November 28, 2024 20:35
A Bash script to install Ruby on the Raspberry Pi
#!/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
@tylergannon
tylergannon / gist:7690997
Created November 28, 2013 12:19
Use HTTParty gem for making HTTP requests over unix domain sockets.
###########################################################
# 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.
@teuffel
teuffel / gist:6203734
Last active March 19, 2019 03:56
Script to get makemkv key for linux
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"
@demonbane
demonbane / makeapp.sh
Created July 5, 2011 20:05
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/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"