Skip to content

Instantly share code, notes, and snippets.

committing badassery

Jordan Ritter jpr5

committing badassery
View GitHub Profile
jpr5 / gist:822d93c7bfa73856292411bb12292adc
Created September 3, 2021 16:52
macOS URLs to invoke specific Settings panes
View gist:822d93c7bfa73856292411bb12292adc
Accessibility Preference Pane
Mouse & Trackpad
jpr5 / jitsi-aws-graviton2-aarch64-instructions.txt
Last active November 8, 2022 16:01
JITSI on ARM64 (Amazon Graviton2 / aarch64)
View jitsi-aws-graviton2-aarch64-instructions.txt
JITSI et al. uses Java but there's no escaping a CPU-arch specific library for *coding video. You get the x86 one by default,
so it needs to be recompiled.
Seen lots of instructions out there that look complicated and are longer, change a bunch of extra settings, etc.
For AWS ARM64, much of that cruft is not needed. This is pretty simple.
As of 7/2/21, these are the *default* instructions for installing JITSI (Ubuntu LTS 20.04):
sudo -s # be root
jpr5 / b00m.rb
Created December 11, 2012 17:58
Nuke HipChat 1:1 History
View b00m.rb
require 'rubygems'
require 'mechanize'
account = {
:email => "",
:password => "balls",
agent =
site ="", account)
jpr5 / bug.rb
Created October 16, 2012 20:28
Demo and workaround for post-connection delay bug in EventMachine 1.0.0
View bug.rb
#!/usr/bin/env ruby
# Demo and workaround for post-connection delay bug in EventMachine 1.0.0
# See for explanation.
require 'rubygems'
require 'eventmachine' # 1.0.0
require 'amqp' # 0.8.0 / 54f18d426
jpr5 / bot.rb
Created April 26, 2011 07:13
XMPP/Ruby Bot for HipChat
View bot.rb
#!/usr/bin/env ruby
# Script: HipChat bot in Ruby
# Author: Jordan Ritter <>
unless `rvm-prompt i g`.chomp == "ree@xmpp"
exec("rvm ree@xmpp ruby #{$0}")
jpr5 / 1_script.rb
Created February 25, 2011 20:28
DM: lazy-loaded properties materialized in hooks (:save) reset parental reference updates for children
View 1_script.rb
require 'rubygems'
require 'data_objects' # current master @ ed1ceefc
require 'dm-core' # current master @ 73860575
require 'dm-migrations' # current master @ ab608e81
class Order
include ::DataMapper::Resource
jpr5 / 1_bar.rb
Created February 9, 2011 05:59
bad bug in DM/DO nested transactions (FIXED in 03ae081f28a6143478e2174ccf3bd233e82cb91b)
View 1_bar.rb
'addressable.git', 'extlib.git',
'do.git/data_objects', 'do.git/do_mysql',
'dm-core.git', 'dm-migrations.git', 'dm-transactions.git', 'dm-do-adapter.git', 'dm-mysql-adapter-1.0.0',
].each do |path|
$:.unshift "common/gems/#{path}/lib"
jpr5 / 1_no_workie.rb
Created January 17, 2011 20:52
[ruby 1.8.7] nested namespaces need physical nesting for const_missing? to work
View 1_no_workie.rb
class Balls
class Balls::Dongs
def doit
puts "balls = #{BALLS}"
jpr5 / 1_example.rb
Created January 5, 2011 00:27
DM example of M:M through join table using two relationships.
View 1_example.rb
class DocumentSet
include ::DataMapper::Resource
property :id, Serial
# First, define the immediate (intermediate) relationship.
has n, :document_maps, :child_key => [:ds_id]
# Then make another relationship that bounces through that relationship
# (:through), arriving at model Document.
jpr5 / 1_notes.txt
Created December 17, 2010 22:10
Nested-Transactional Cukes in DataMapper
View 1_notes.txt
Depends on: