Skip to content

Instantly share code, notes, and snippets.

View kevwil's full-sized avatar

Kevin Williams kevwil

View GitHub Profile
cd ~/tmp
mkdir gitsvnrebase
cd gitsvnrebase
svnadmin create fubar-repo
svn co file:///Users/sensei/tmp/gitsvnrebase/fubar-repo fubar-wc
git svn init file:///Users/sensei/tmp/gitsvnrebase/fubar-repo fubar-git
cd fubar-git
git svn fetch
cd ../fubar-wc
echo "hello from svn" > test.txt
@kevwil
kevwil / gist:249506
Created December 5, 2009 01:49
setup for @app.call errors
builder = Rack::Builder.new do
use Rack::CommonLogger
use Rack::Lint
use Rack::ShowExceptions
lambda { |env| [200, {'Content-Type' => 'text/plain'}, ['OK']] }
use Rack::Lint
end
@app = builder.to_app
# pass app to server, server calls app and gets response
@kevwil
kevwil / debug_output.txt
Created August 11, 2011 16:35
getSessionID not optional?
DEBUG: setting up form upload parsing ...
DEBUG: received message: { type: 'warning',
isupload: true,
msg: 'unable to retrieve session identifier, configuration parameter me.getSessionID must be a function!' }
/Volumes/code/git/fileservice/node_modules/formaline/lib/formaline.js:478
a( me.firstChunk, me.sendResponseToMultipart.bind( me, me.firstChunk.length )
^
TypeError: Cannot read property 'length' of null
at /Volumes/code/git/fileservice/node_modules/formaline/lib/formaline.js:478:113
@kevwil
kevwil / mydate.zsh
Created February 7, 2012 23:39
memoize a backticked system call result in zsh
my_date(){
readonly d="`date`" || echo "$d"
echo "$d"
}
# should always be the same result
print $(my_date)
sleep 2
print $(my_date)
sleep 2
print $(my_date)
@kevwil
kevwil / weechat_console.log
Created May 20, 2013 19:22
homebrew/python/weechat problems
growl: dlopen(/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so, 2):
Symbol not found: __PyInt_AsInt
Referenced from: /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
python: function "register" not found (or failed) in file "/Users/willkd9/dotfiles/weechat/python/autoload/growl.py"
python: stdout/stderr: Traceback (most recent call last):
python: stdout/stderr: File "/Users/willkd9/dotfiles/weechat/python/autoload/urlgrab.py", line 147, in <module>
python: stdout/stderr: import urllib
python: stdout/stderr: File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py",
@kevwil
kevwil / Boot.scala
Last active December 18, 2015 15:48
AskTimeoutException
package my.test.app
import akka.actor.{ActorSystem,Props}
import akka.io.IO
import spray.can.Http
object Boot extends App {
implicit val system = ActorSystem("Tester")
val service = system.actorOf(Props[TesterActor], "tester-service")
IO(Http) ! Http.Bind(service, interface = "0.0.0.0", port = 8080)
@kevwil
kevwil / gist:8355916
Created January 10, 2014 15:06
GoSublime install debug output
startup, version: 3059 osx x64 channel: stable
executable: /Applications/Sublime Text 3.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/willkd9/Library/Application Support/Sublime Text 3/Packages
state path: /Users/willkd9/Library/Application Support/Sublime Text 3/Local
hardware concurrency: 8
zip path: /Applications/Sublime Text 3.app/Contents/MacOS/Packages
zip path: /Users/willkd9/Library/Application Support/Sublime Text 3/Installed Packages
found 15 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
@kevwil
kevwil / IDEA
Last active January 3, 2016 06:29
Java problems on OSX Mavericks
§ /Applications/IntelliJ\ IDEA\ 13\ CE.app/Contents/MacOS/idea_appLauncher
[JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading MRJApp.properties file
[JavaAppLauncher Error] CFBundleCopyResourceURL() failed while getting Resource/Java directory
JavaVM: Failed to load JVM: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bundle/Libraries/libserver.dylib
JavaVM: Failed to load JVM: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bundle/Libraries/libserver.dylib
JavaVM FATAL: Failed to load the jvm library.
[JavaAppLauncher Error] JNI_CreateJavaVM() failed, error: -1
✗ /Applications/IntelliJ\ IDEA\ 13\ CE.app/Contents/MacOS/idea
[JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading MRJApp.properties file
[JavaAppLauncher Error] CFBundleCopyResourceURL() failed while getting Resource/Java directory
@kevwil
kevwil / lzmq-ffi_install.log
Created January 14, 2014 23:17
lua bindings for ØMQ build failures
Installing http://www.luarocks.org/repositories/rocks/lzmq-ffi-0.3.4-1.src.rock...
Using http://www.luarocks.org/repositories/rocks/lzmq-ffi-0.3.4-1.src.rock... switching to 'build' mode
Archive: v0.3.4.zip
cc85f3356a19a2545972fa416043b18a2eb00e97
creating: lzmq-0.3.4/
inflating: lzmq-0.3.4/.gitignore
inflating: lzmq-0.3.4/.travis.yml
inflating: lzmq-0.3.4/LICENCE.txt
inflating: lzmq-0.3.4/README.md
creating: lzmq-0.3.4/doc/
@kevwil
kevwil / brew_config.log
Created January 24, 2014 15:08
Cassandra 2.0.4 install failure
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 942fa3e4ce6610eeb8efb6a7342bbbfad4cec54e
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9.1-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
GCC-4.2: build 5666