Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jwarchol on github.
  • I am jwarchol (https://keybase.io/jwarchol) on keybase.
  • I have a public key whose fingerprint is 658B 5337 D02B 063D 9D23 FD91 5A46 C537 F78D CA17

To claim this, I am signing this object:

language_code name
af Afrikaans
am Amharic
ar Arabic
arq Algerian Arabic
art-x-bork Swedish Chef
as Assamese
ast Asturian
az Azerbaijani
be Belarusian
#!/usr/bin/env ruby
require 'fileutils'
require 'json'
puts "Starting"
class String
def squish
dup.squish!
end
04ACAD12D93880
0453A9620F3382
0434AA5AE13F80
04B184EA213682
04A3D7BA323182
047CD072DC3F80
045F6702DE3F80
04417A5AA13E81
042994BA323183
043ED6BA323182
@jwarchol
jwarchol / -
Created February 13, 2016 22:38
pi@doubleberry ~/tedstagram/monitor-app $ ./node_modules/.bin/ember s
/home/pi/tedstagram/monitor-app/node_modules/ember-cli-ted-bootstrap/index.js:13
let tedBootstrapPath = path.join(app.bowerDirectory, 'ted-bootstrap');
^^^
Unexpected strict mode reserved word
/home/pi/tedstagram/monitor-app/node_modules/ember-cli-ted-bootstrap/index.js:13
let tedBootstrapPath = path.join(app.bowerDirectory, 'ted-bootstrap');
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
@jwarchol
jwarchol / -
Created February 13, 2016 18:30
/main/actions/syncdatetime
Label: Synchronize camera date and time with PC
Type: TOGGLE
Current: 0
/main/actions/syncdatetime
Label: Synchronize camera date and time with PC
Type: TOGGLE
Current: 0
/main/actions/uilock

Keybase proof

I hereby claim:

  • I am jwarchol on github.
  • I am jwarchol (https://keybase.io/jwarchol) on keybase.
  • I have a public key whose fingerprint is 26C7 0A50 144D F56E ED6E 4E87 D940 AD76 7C70 0F12

To claim this, I am signing this object:

@jwarchol
jwarchol / README.md
Created February 21, 2015 14:17
Getting a Pentax K-r working on Raspberry Pi with pktriggercord-cli

When trying to use pktriggercord with a Pentax K-r I was unable to get it mounting via USB. I'd get lines like this over and over in /var/log/syslog:

Feb 21 14:11:12 raspberrypi kernel: [  996.673083] usb 1-1.2: new high-speed USB device number 49 using dwc_otg
Feb 21 14:11:13 raspberrypi kernel: [  996.933126] usb 1-1.2: new high-speed USB device number 50 using dwc_otg
Feb 21 14:11:13 raspberrypi kernel: [  997.193121] usb 1-1.2: new high-speed USB device number 51 using dwc_otg

When looking at other USB problems people had documented solutions for with the Pi I found that turning the USB down from hi-speed to full-speed helped in some cases. To do that edit /boot/cmdline.txt and add this to the end and reboot

@jwarchol
jwarchol / scalzi-locations.txt
Last active August 29, 2015 14:11
Scalzi Real Estate Holdings in Elite Dangerous
Scalzi Hub - Zoquala
Scalzi Port - Liu Xingga
Scalzi Prospect - HIP 62304
Tjingola
Scalzi Station - HIP 95973
Scalzi Vision - Caspatha
@jwarchol
jwarchol / README.md
Created July 28, 2012 21:06
Breathing LED on a Raspberry Pi

Raspberry Pi Breathing LED

This is a demonstration of using Ruby and the WiringPi Gem to pulse an LED connected to a GPIO pin in a manner similar to the sleep indicator on a MacBook.

A video of the effect can be found here: http://www.youtube.com/watch?v=NCUMXK7qf-c