This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Accessibility Preference Pane | |
Main x-apple.systempreferences:com.apple.preference.universalaccess | |
Display x-apple.systempreferences:com.apple.preference.universalaccess?Seeing_Display | |
Zoom x-apple.systempreferences:com.apple.preference.universalaccess?Seeing_Zoom | |
VoiceOver x-apple.systempreferences:com.apple.preference.universalaccess?Seeing_VoiceOver | |
Descriptions x-apple.systempreferences:com.apple.preference.universalaccess?Media_Descriptions | |
Captions x-apple.systempreferences:com.apple.preference.universalaccess?Captioning | |
Audio x-apple.systempreferences:com.apple.preference.universalaccess?Hearing | |
Keyboard x-apple.systempreferences:com.apple.preference.universalaccess?Keyboard | |
Mouse & Trackpad x-apple.systempreferences:com.apple.preference.universalaccess?Mouse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'mechanize' | |
account = { | |
:email => "jpr5@serv.io", | |
:password => "balls", | |
} | |
agent = Mechanize.new | |
site = agent.post("https://www.hipchat.com/sign_in", account).uri.host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Demo and workaround for post-connection delay bug in EventMachine 1.0.0 | |
# | |
# See https://github.com/eventmachine/eventmachine/issues/374 for explanation. | |
require 'rubygems' | |
require 'eventmachine' # 1.0.0 | |
require 'amqp' # 0.8.0 / 54f18d426 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Script: HipChat bot in Ruby | |
# Author: Jordan Ritter <jpr5@darkridge.com> | |
# | |
unless `rvm-prompt i g`.chomp == "ree@xmpp" | |
exec("rvm ree@xmpp ruby #{$0}") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
[ | |
'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" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
class Balls | |
BALLS = 1 | |
end | |
class Balls::Dongs | |
def doit | |
puts "balls = #{BALLS}" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Depends on: | |
- https://github.com/datamapper/do/commit/74645c46ac9b210c5e4029853b8a23fe02defd71 | |
- https://github.com/datamapper/dm-transactions/commit/242e60473a341a151df62ea707264f06f418b077 |
NewerOlder