Skip to content

Instantly share code, notes, and snippets.

View gist:027e1b9a3b50f36806e16a94ca2f80c9
const mdx = require('@mdx-js/mdx');
module.exports = {
purge: {
enabled: true,
mode: 'all',
content: [
'./**/*.html',
'./**/*.jsx',
'./**/*.mdx',
@lightcap
lightcap / bluetooth-drop-macos.log
Created Sep 3, 2018
A log of what happens when Bluetooth drops on Macs, filtered for firmware updates. Same exact thing happens on two 2018 MacBook Pros connected to Apple Magic Trackpad and Apple Magic Keyboard.
View bluetooth-drop-macos.log
default 10:09:36.430726 -0700 fud Persisted state machine restored to state FUD_STATE_END
default 10:09:36.448065 -0700 fud Persisted state machine restored to state FUD_STATE_DO_REMOTECHECK
default 10:09:36.449332 -0700 fud Persisted state machine restored to state FUD_STATE_DO_REMOTECHECK
default 10:09:36.449780 -0700 fud Resuming fud...
default 10:09:36.450676 -0700 fud shouldDefaultModalClientBeEnabled() - 1
default 10:09:36.450747 -0700 fud registering XPC activity with XPC_ACTIVITY_CHECK_IN
default 10:09:36.450853 -0700 fud blessRequestsList={
}
default 10:09:36.451003 -0700 fud Stream event happened for filter: com.apple.mau.plugin.standalonehiddevice.trackpad.6.bt
default 10:09:36.451259 -0700 fud -[FudStateMachine isActive]: state=5 nextState=-1 filter=com.apple.mau.plugin.standalonehiddevice.trackpad.6.bt
View gist:f21d80a11de68c8c0e5d74203d9641fd
### Keybase proof
I hereby claim:
* I am lightcap on github.
* I am lightcap (https://keybase.io/lightcap) on keybase.
* I have a public key ASB1FlgEi3z34mgq8vl_NUpXSCVGKy6OVSec4eKoY5MSWAo
To claim this, I am signing this object:
View keybase.md

Keybase proof

I hereby claim:

  • I am lightcap on github.
  • I am lightcap (https://keybase.io/lightcap) on keybase.
  • I have a public key ASCQ7FepPVjBm5bMhuTYEJxkUk545OhmnIdbob7YQkzYSgo

To claim this, I am signing this object:

@lightcap
lightcap / gist:9f52f62e35923efbeac4
Created Jan 29, 2016
Commits by Spree Core Team
View gist:9f52f62e35923efbeac4
$ git log --author "Damian Legawiec" --all
e3b9439 - capybara-screenshot added (3 days ago) <Damian Legawiec>
ecfba11 - Merge pull request #6948 from spark-solutions/rspec-rails-3-4-0 (2 days ago) <Damian Legawiec>
9104851 - updating rspec-rails to 3.4.0 (3 days ago) <Damian Legawiec>
8142adb - Merge pull request #6947 from spark-solutions/rspec-rails-3-3 (3 days ago) <Damian Legawiec>
5e2be8d - locking rspec-rails at 3.3.x for now (3 days ago) <Damian Legawiec>
6e30eec - Merge pull request #6940 from spark-solutions/rwd_fixes (3 days ago) <Damian Legawiec>
dd3f17a - Merge branch 'master' into rwd_fixes (3 days ago) <Damian Legawiec>
faf2412 - Merge pull request #6946 from spark-solutions/rails_4_2_5_1 (3 days ago) <Damian Legawiec>
52799e7 - Merge branch 'master' into rails_4_2_5_1 (3 days ago) <Damian Legawiec>
View gist:13d702526d3f14426473
### Keybase proof
I hereby claim:
* I am lightcap on github.
* I am lightcap (https://keybase.io/lightcap) on keybase.
* I have a public key whose fingerprint is 8C96 7DC7 DD99 828A 2C9D CC34 9CD1 E300 98AB 7456
To claim this, I am signing this object:
@lightcap
lightcap / madness_test.coffee
Last active Aug 29, 2015
JavaScript, Sinon.js and Chai.js Regexp literal equality Madness
View madness_test.coffee
chai = require 'chai'
sinon = require 'sinon'
chai.use require 'sinon-chai'
# Yup, I'm mixing style. Deal with it.
expect = chai.expect
assert = chai.assert
describe 'regexp equality', ->
View gist:5016769
klickitat:beercounter mattkern(master)$ heroku apps
=== My Apps
flunky
glacial-gorge-1334
gtlist
gtlist-prod
tranquil-fjord-3537
klickitat:beercounter mattkern(master)$ heroku apps:rename beercounter
Renaming tranquil-fjord-3537 to beercounter... failed
@lightcap
lightcap / gist:1440810
Created Dec 7, 2011
Restore Heroku Postgresql db to Engine Yard Cloud (Assuming beta postgres at EY)
View gist:1440810
# On Heroku
# Create dump file
heroku pgbackups:capture --app <application_name>
# On Engine Yard slice
# Get dump file from heroku
curl -o latest.dump `heroku pgbackups:url b005 --app <application_name> -e <environment>`
# drop and recreate database
bundle exec rake db:drop
View Gemfile
# A sample Gemfile
source "http://rubygems.org"
gem 'rake', '= 0.8.7'
gem 'mysql', '~> 2.8.1'
gem 'rack', '= 1.1.0'
gem 'rails', '~> 2.3.11'
gem 'authlogic', '= 2.0.14'
gem 'will_paginate', '~> 2.3.15'
gem 'activemerchant', '= 1.4.2', :require => 'active_merchant'