Skip to content

Instantly share code, notes, and snippets.

const mdx = require('@mdx-js/mdx');
module.exports = {
purge: {
enabled: true,
mode: 'all',
content: [
'./**/*.html',
'./**/*.jsx',
'./**/*.mdx',
@lightcap
lightcap / bluetooth-drop-macos.log
Created September 3, 2018 17:15
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.
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
### 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:

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 January 29, 2016 10:16
Commits by Spree Core Team
$ 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>
### 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 August 29, 2015 13:56
JavaScript, Sinon.js and Chai.js Regexp literal equality Madness
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', ->
@lightcap
lightcap / gist:5016769
Created February 22, 2013 21:43
O RLY Heroku?
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 December 7, 2011 00:34
Restore Heroku Postgresql db to Engine Yard Cloud (Assuming beta postgres at EY)
# 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
# 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'