Skip to content

Instantly share code, notes, and snippets.

@jamland
jamland / Toggle Mono-Stereo Audio Output.applescript
Created June 28, 2019 11:27
Toggle Mono/Stereo Audio Output. MacOS 10.14
-- Tested on MacOS 10.14
-- May not work for versions below or above
tell application "System Preferences"
reveal anchor "Hearing" of pane id "com.apple.preference.universalaccess"
end tell
tell application "System Events"
tell application process "System Preferences"
-- set frontmost to true
0xf9117e681dAAb6c1cD5d2f54450D10788ce389A8
0x2abd898Ac5Fc716C0f1752B0ad570659837Fff47
0x400421B9441eFae811b31Fd87FF97458A09bDAE9
<section>
<div id="rrnavSection"></div>
<link rel="stylesheet" href="https://rrresources.scdn4.secure.raxcdn.com/assets/global-nav.css">
<script src="https://rrresources.scdn4.secure.raxcdn.com/assets/bundle.js"></script>
<style media="screen">
#rrnavSection {
background: white;
border-bottom: 1px solid rgba(0,0,0,.2);
font-size: 18px;
@jamland
jamland / test.md
Last active August 25, 2016 12:58
andy$ rails s
=> Booting Puma
=> Rails 4.2.5.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/Users/Andy/.rvm/gems/ruby-2.2.4@bikeid/gems/railties-4.2.5.1/lib/rails/application/configuration.rb:110:in `database_configuration': Cannot load `Rails.application.database_configuration`: (RuntimeError)
Could not load database configuration. No such file - ["config/database.yml"]
from /Users/Andy/.rvm/gems/ruby-2.2.4@bikeid/gems/activerecord-4.2.5.1/lib/active_record/railtie.rb:117:in `block (2 levels) in <class:Railtie>'
from /Users/Andy/.rvm/gems/ruby-2.2.4@bikeid/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
4th-dimension:topicon andy$ gulp dist
[15:15:30] Starting to Gulp! Please wait...
[15:15:30] Using gulpfile ~/Sites/repository/hud-2016/topicon/gulpfile.js
[15:15:30] Starting 'dist'...
[15:15:30] Starting 'dist-html'...
[15:15:30] Starting 'html:clean'...
[15:15:30] Finished 'html:clean' after 21 ms
[15:15:30] Starting 'html:dev'...
[15:15:30] Plumber found unhandled error:
TypeError in plugin 'gulp-hb'
@jamland
jamland / gist:8b89aca594419b32135f
Created December 6, 2015 18:47
Kernel Panic 😱
Anonymous UUID: A1261779-EAE0-0E32-F71A-95A171C3FCA0
Sun Dec 6 20:45:49 2015
*** Panic Report ***
panic(cpu 2 caller 0xffffff802dd28dd4): "zalloc: zone map exhausted while allocating from zone buf.8192, likely due to memory leak in zone kalloc.64 (930210304 total bytes, 14533905 elements allocated)"@/Library/Caches/com.apple.xbs/Sources/xnu/xnu-3247.10.11/osfmk/kern/zalloc.c:2543
Backtrace (CPU 2), Frame : Return Address
0xffffff813b5d3120 : 0xffffff802dce5307
0xffffff813b5d31a0 : 0xffffff802dd28dd4
0xffffff813b5d32d0 : 0xffffff802deeab91
Last login: Thu Sep 24 10:22:32 on ttys001
4th-dimension:~ andy$ telnet chat-main.hipchat.com 5222
Trying 54.163.145.114...
telnet: connect to address 54.163.145.114: Connection refused
Trying 54.87.51.105...
telnet: connect to address 54.87.51.105: Connection refused
Trying 54.146.1.84...
telnet: connect to address 54.146.1.84: Connection refused
Trying 54.221.90.195...
telnet: connect to address 54.221.90.195: Connection refused