Skip to content

Instantly share code, notes, and snippets.

View justincaldwell's full-sized avatar

Justin Caldwell justincaldwell

View GitHub Profile
INFO: ContextListener: contextDestroyed()
Nov 10, 2012 5:45:27 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet SolrUpdate threw exception
java.lang.NullPointerException
at org.apache.solr.core.SolrCore.close(SolrCore.java:699)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:280)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
### Before
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 1115 | 854 | 22 | 94 | 4 | 7 |
| Helpers | 26 | 17 | 0 | 2 | 0 | 6 |
| Models | 2390 | 1494 | 49 | 142 | 2 | 8 |
| Libraries | 396 | 315 | 5 | 27 | 5 | 9 |
| Integration tests | 0 | 0 | 0 | 0 | 0 | 0 |
2013-03-19 15:46:11 [INFO] [Faye::Server] Processing messages: [{"channel":"/meta/handshake","version":"1.0","supportedConnectionTypes":["callback-polling"],"id":"1"}] (local: false)
2013-03-19 15:46:11 [DEBUG] [Faye::Server] Passing through incoming extensions: {"channel":"/meta/handshake","version":"1.0","supportedConnectionTypes":["callback-polling"],"id":"1"}
2013-03-19 15:46:11 [INFO] [Faye::Server] Handling message: {"channel":"/meta/handshake","version":"1.0","supportedConnectionTypes":["callback-polling"],"id":"1"} (local: false)
[ 2013-05-22 16:22:04.5860 768/7fa2c5132700 Pool2/Implementation.cpp:1156 ]: [App 10278 stderr] [ 2013-05-22 16:22:04.5858 10338/0x00000004166ee0(Worker 1) utils.rb:71 ]: *** Exception ThreadError in Rack application object (deadlock; recursive locking) (process 10338, thread 0x00000004166ee0(Worker 1)):
[ 2013-05-22 16:22:04.5860 768/7fa2c5132700 Pool2/Implementation.cpp:1156 ]: [App 10278 stderr] from /home/uber/current/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:14:in `lock'
[ 2013-05-22 16:22:04.5860 768/7fa2c5132700 Pool2/Implementation.cpp:1156 ]: [App 10278 stderr] from /home/uber/current/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:14:in `call'
[ 2013-05-22 16:22:04.5861 768/7fa2c5132700 Pool2/Implementation.cpp:1156 ]: [App 10278 stderr] from /home/uber/current/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/static.rb:63:in `call'
[ 2013-05-22 16:22:04.5861 768/7fa2c5132700 Pool2/Implementation.cpp:1156 ]: [App 10278 st
@justincaldwell
justincaldwell / default.rb
Created June 25, 2013 18:59
libharu chef recipe cookbook: libharu
package 'build-essential'
package 'libpng-dev'
package 'libtool'
package 'automake'
tar_file = "libharu.tar.gz"
remote_file "/opt/#{tar_file}" do
source "https://github.com/libharu/libharu/tarball/master/#{tar_file}"
end
def run
file = Dir["/data/content_instance_views/**/*"].select { |f| File.file? f }.sort_by { |f| File.mtime f }.first
if file
age = (Time.now.to_i - File.mtime(file).to_i).to_i
message "View count log is #{age} seconds old"
critical if age > 2400
warning if age > 1200
end
ok
end
> openssl s_client -connect api.yext.com:443 -CApath /etc/ssl/certs
CONNECTED(00000003)
depth=0 C = US, ST = New York, L = New York, O = "Yext, Inc.", OU = Technology, CN = *.yext.com
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = US, ST = New York, L = New York, O = "Yext, Inc.", OU = Technology, CN = *.yext.com
verify error:num=27:certificate not trusted
verify return:1
depth=0 C = US, ST = New York, L = New York, O = "Yext, Inc.", OU = Technology, CN = *.yext.com
verify error:num=21:unable to verify the first certificate
input {
stdin {
type => "stdin-type"
}
file {
type => "syslog"
path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog",
"/docker/log/sidekiq/*.log", "/docker/log/blackbox/*.log", "/docker/log/console/*.log",
"/docker/log/haproxy/*.log", "/docker/log/nginx/*.log", "/docker/log/assets/*.log"]
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
curl -sSL https://get.docker.io/ubuntu/ | sudo sh
usermod -a -G docker vagrant
echo "DOCKER_OPTS='-H unix:///var/run/docker.sock -H tcp://0.0.0.0:5555 --dns 172.17.42.1 --dns 8.8.8.8 --dns-search service.consul'" | sudo tee -a /etc/default/docker
Verifying that +justincaldwell is my blockchain ID. https://onename.com/justincaldwell