Skip to content

Instantly share code, notes, and snippets.

=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
no such file to load -- oauth_client
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/ken/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Users/ken/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/ken/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Library/Ruby/Gems/1.8/gems/vimeo-1.1.0/lib/vimeo.rb:6
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
actionmailer (2.3.5, 2.2.2, 1.3.6)
actionpack (2.3.5, 2.2.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.5, 2.2.2, 1.15.6)
activeresource (2.3.5, 2.2.2)
activesupport (2.3.5, 2.2.2, 1.4.4)
acts_as_ferret (0.4.3)
authlogic (2.1.3)
capistrano (2.5.2)
cgi_multipart_eof_fix (2.5.0)
##vimeo_videos_controller.rb
class VimeoVideosController < ApplicationController
before_filter :fetch_remote,
:only => [:index, :edit, :add]
before_filter :find_video,
:only => [:show, :edit, :destroy]
def index
@videos = Content::VimeoVideo.all
@kench
kench / build-linux.sh
Created June 17, 2011 18:58
DepthJS NPAPI Plugin Compilation errors on Linux
#!/bin/sh
echo "Assuming homebrew install of libusb and libfreenect"
mkdir -p depthjs.plugin/Contents/MacOS
cp -f Info.plist depthjs.plugin/Contents
g++ -Wno-write-strings -lresolv \
-I/usr/local/include \
-I/usr/local/include/libusb-1.0 -I/usr/local/include/libfreenect \
`pkg-config --cflags libusb-1.0` \
`pkg-config --cflags opencv` \
-lz \
@kench
kench / gist:1033151
Created June 18, 2011 14:43
DepthJS NPAPI Plugin Compilation Issues with libfreenect
ken@Ken-Desktop:~/Downloads/depthjs/npapi_plugin$ ./build-linux.sh
Assuming homebrew install of libusb and libfreenect
depthjs.cc: In constructor ‘DepthJSDevice::DepthJSDevice(freenect_context*, int)’:
depthjs.cc:75:99: error: ‘FREENECT_VIDEO_RGB_SIZE’ was not declared in this scope
depthjs.cc: At global scope:
depthjs.cc:162:13: warning: ‘bool setupDevice()’ defined but not used
ocv_freenect.cpp: In function ‘void depth_cb(freenect_device*, void*, uint32_t)’:
ocv_freenect.cpp:57:37: error: ‘FREENECT_DEPTH_11BIT_SIZE’ was not declared in this scope
ocv_freenect.cpp: In function ‘void rgb_cb(freenect_device*, void*, uint32_t)’:
ocv_freenect.cpp:70:33: error: ‘FREENECT_VIDEO_RGB_SIZE’ was not declared in this scope
@kench
kench / sms-ip.py
Created October 19, 2012 02:20
Raspberry Pi - Send SMS with current external IP address(es) on boot
#!/usr/bin/python
# Send SMS with current IP address via Twilio
# Copyright 2012, Kenley Cheung
# Dual licensed under the MIT or GPL Version 2 licenses.
from twilio.rest import TwilioRestClient
import httplib
# Configuration
account = "ACXXXXXXXXXXXXXXXXX"
token = "ZZZZZZZZZZZZZZZZZZZZZ"
@kench
kench / rpi_cidr
Created November 24, 2013 21:37
RPI IP Address Ranges
Allow from 128.113.0.0/16 # RPI network
Allow from 129.161.0.0/16 # Ancillary network for wireless?
Allow from 128.213.0.0/16 # CS network
Allow from 192.12.92.0/24 # CSNET
Allow from 192.12.91.0/24 # CSNET
# IPv6 allocations
Allow from 2620:0:2820::/24
Allow from 2001:468:903::/24
Allow from 2001:468:903::/24
{
"timezone": "-0500",
"routes": [
{
"name": "East",
"id": "2",
"schedules": [
{
"name":"Weekday",
"occurrence": "1-5",

Keybase proof

I hereby claim:

  • I am kench on github.
  • I am kenley (https://keybase.io/kenley) on keybase.
  • I have a public key whose fingerprint is 030B EF14 2440 59AF ED0D 0C84 1B28 9BD2 4164 0405

To claim this, I am signing this object:

@kench
kench / gist:585a906196887d05b113c801784a8e58
Created November 12, 2016 05:20
exacore build on Ubuntu 16.04 LTS
kenley@kenley:~/Downloads/exacore$ make
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavformat.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavformat' found
Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
Package libavutil was not found in the pkg-config search path.