Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jamiecurran on github.
  • I am jamiecurran (https://keybase.io/jamiecurran) on keybase.
  • I have a public key whose fingerprint is B839 E4BC 01AE 988E 75F8 CFA0 F2FF 0494 D20A 652C

To claim this, I am signing this object:

@jamiecurran
jamiecurran / gist:4db38902bbf0439d4d6d0722be012b92
Created August 17, 2016 15:59
httparty debug output with Rails
class Foo
include HTTParty
debug_output Rails.logger
end
M-g g = goto line
C-x v g = git blame
robe
M-. jump to
M-, jump back
C-c, C-f = (json mode) auto indent/format
C-c p s g = run grep on files in project
@jamiecurran
jamiecurran / gist:df0b5d4836c1a2b464cd1d980a2c59e8
Created August 13, 2017 14:06
Installing pip on macOS Sierra using existing python install
sudo easy_install pip
@jamiecurran
jamiecurran / date_range.rb
Created September 27, 2018 16:11
Generate date range
(0..3).map {|v| Date.today - (v * 21).days}
.mode column
.headers on
@jamiecurran
jamiecurran / gist:ab33a6282b986cb31fa24e3993f86f97
Created March 28, 2021 13:35
Nest Camera - Home Assistant
Enable stream: in configuration.yaml
For arch:
- pacman -S pkgconfig
- pip install wheel
- pip install av==8.0.2