Skip to content

Instantly share code, notes, and snippets.

View chriskilding's full-sized avatar

Chris Kilding chriskilding

View GitHub Profile
@chriskilding
chriskilding / cleanup.xml
Created December 29, 2017 21:00
Elements of Java Style for Eclipse
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="2">
<profile kind="CleanUpProfile" name="Elements-Java-Style" version="2">
<setting id="cleanup.format_source_code" value="true"/>
<setting id="cleanup.add_missing_annotations" value="true"/>
<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="false"/>
<setting id="cleanup.remove_unused_private_types" value="true"/>
<setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/>
<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/>
<setting id="cleanup.add_generated_serial_version_id" value="false"/>
@chriskilding
chriskilding / .Xmodmap
Created June 6, 2016 14:01
Xmodmap workaround to make IntelliJ IDEA Alt key shortcuts work in X11 sessions
keycode 66 = Alt_L
clear Mod1
add Mod1 = Alt_L Alt_R
@chriskilding
chriskilding / Debug output
Created April 16, 2016 11:21
Vagrant runs afoul of the sandbox when run from an OSX app, even with temporary read-write access to "/"
To produce:
Run `vagrant global-status` somehow from inside an NSTask.
Stack trace:
/Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/platform.rb:163:in `open': Operation not permitted @ dir_initialize - / (Errno::EPERM)
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/platform.rb:163:in `entries'
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/util/platform.rb:163:in `block in fs_real_path'
from /Users/[me]/Library/Developer/Xcode/DerivedData/[Myapp]-abfibemntmljueecqywiaajeywwr/Build/Products/Debug/[Myapp].app/Contents/Resources/vagrant/embedded/gems/gems/vagrant-1.8
@chriskilding
chriskilding / jruby-openssl-debug-load-trace
Created October 30, 2014 16:52
Jruby debug trace when (failing at) loading its JARs
2014-10-30T15:58:03.788Z: LoadService: trying builtinLib: jruby.rb
2014-10-30T15:58:03.817Z: LoadService: found builtinLib: jruby.rb
2014-10-30T15:58:03.817Z: LoadService: trying builtinLib: java.rb
2014-10-30T15:58:03.817Z: LoadService: found builtinLib: java.rb
2014-10-30T15:58:03.851Z: LoadService: trying builtinLib: jruby/java.rb
2014-10-30T15:58:03.851Z: LoadService: trying fileResource: /Users/me/.rvm/rubies/jruby-1.7.16/lib/ruby/1.9/site_ruby/jruby/java.rb
2014-10-30T15:58:03.852Z: LoadService: trying fileResource: /Users/me/.rvm/rubies/jruby-1.7.16/lib/ruby/shared/jruby/java.rb
2014-10-30T15:58:03.852Z: LoadService: trying fileResource: /Users/me/.rvm/rubies/jruby-1.7.16/lib/ruby/1.9/jruby/java.rb
2014-10-30T15:58:03.852Z: LoadService: trying jarExtension: jruby/java
2014-10-30T15:58:03.853Z: LoadService: trying builtinLib: jruby/java.class
@chriskilding
chriskilding / CMakeLists.txt
Created August 12, 2013 11:03
CMake script for the cJSON library (http://sourceforge.net/projects/cjson/)
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(cJSON)
add_library(cJSON SHARED cJSON.c)
set_target_properties(cJSON PROPERTIES LINKER_LANGUAGE C)
install(TARGETS cJSON
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
@chriskilding
chriskilding / backbone-forms-make-new-instance.js.coffee
Created March 22, 2012 11:37
Making new instance of model with backbone-forms (question)
class App.Views.OrganizationsIndex extends Backbone.View
template: JST['organizations/index']
initialize: ->
# need to ensure collection is loaded
# before the template renders
# don't forget the 'this' context binding
@collection.on('reset', @render, this)