Skip to content

Instantly share code, notes, and snippets.

View pboling's full-sized avatar
🏓
Ping me if you need me!

|7eter l-|. l3oling pboling

🏓
Ping me if you need me!
View GitHub Profile
@pboling
pboling / console output
Created March 13, 2013 18:24
Neo4j console SEVERE problems
ubuntu@ip-d-d-d-d:~$ sudo /var/lib/neo4j/bin/neo4j console
Starting Neo4j Server console-mode...
17:54:30,962 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
17:54:30,962 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
17:54:30,962 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/usr/share/neo4j/system/lib/neo4j-server-1.8.1.jar!/logback.xml]
17:54:30,984 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@5328f6ee - URL [jar:file:/usr/share/neo4j/system/lib/neo4j-server-1.8.1.jar!/logback.xml] is not of type file
17:54:31,044 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
17:54:31,051 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
17:54:31,055 |-INFO in ch.qos.logback.core.jora
@pboling
pboling / webadmin
Created March 13, 2013 18:23
Neo4j webadmin error trace
HTTP ERROR 500
Problem accessing /. Reason:
Failed to get current transaction.
Caused by:
org.neo4j.graphdb.TransactionFailureException: Failed to get current transaction.
at org.neo4j.kernel.impl.core.LockReleaser.getTransaction(LockReleaser.java:341)
at org.neo4j.kernel.impl.core.LockReleaser.getCowPropertyRemoveMap(LockReleaser.java:533)
@pboling
pboling / Procfile
Last active October 31, 2022 16:03
sidekiq initializer
web: bundle exec rails server puma -p $PORT -e $RACK_ENV
critical: env HEROKU_PROCESS=critical bundle exec sidekiq -c 2 -q critical,4
default: env HEROKU_PROCESS=default bundle exec sidekiq -c 4 -q default,2
low: env HEROKU_PROCESS=low bundle exec sidekiq -c 1 -q low,1
@pboling
pboling / Airbrake GirlFriday Error
Created February 4, 2013 23:18
Airbrake generator fails on "uninitialized constant GirlFriday".
script/rails generate airbrake --api-key key---derp
Configuration:
api_key: "key---derp"
js_api_key: "key---derp"
backtrace_filters: [#<Proc:0x007fa29d75c708@/Users/pboling/.rvm/gems/ruby-
development_environments: []
development_lookup: true
environment_name: "development"
host: "api.airbrake.io"
@pboling
pboling / Gemfile
Last active March 1, 2022 10:18
My latest project's Gemfile, implements bundle group pattern
source 'https://rubygems.org'
# Follows the bundler group pattern described here:
# http://iain.nl/getting-the-most-out-of-bundler-groups
# Gemfile.mine in root dir allows locally custom gems.
# NOTE: Doing this will change the Gemfile.lock - commit with care.
eval File.read(File.join(File.dirname(__FILE__), 'Gemfile.mine')) if File.exists? File.join(File.dirname(__FILE__), 'Gemfile.mine')
ruby '1.9.3'
@pboling
pboling / gist:3714897
Last active October 10, 2015 15:57
compare specs run by rake & autotest
rake_files = "#{list of files copied from console when rake command is run}"
autotest_files = "#{list of files copied from console when autotest command is run}"
r = rake_files.split(' ').map {|x| ar = x.split('/'); ar[(ar.length-2)..(ar.length-1)].join('/')}
a = autotest_files.split(' ').map {|x| ar = x.gsub(/'/,'').split('/'); ar[(ar.length-2)..(ar.length-1)].join('/')}
# autotest will generally be lacking some, as its config becomes out of date
diff = r - a