Skip to content

Instantly share code, notes, and snippets.

View cbeckr's full-sized avatar

Christian Becker cbeckr

  • MediaEvent Services
  • Berlin
View GitHub Profile
@cbeckr
cbeckr / find-private-keys
Last active July 12, 2018 11:09 — forked from DmZ/pre-commit
Search a linux file system for AWS and SSH keys
#!/bin/sh
# Look for AWS Access Key ID / private SSH keys.
# Ignores AWS Secret Access Keys since they return lots of false positives and are usually found next to AWS Access Key IDs.
grep -I -r --exclude-dir=dev --exclude-dir=sys --exclude-dir=proc -E '[^A-Z0-9]AK[A-Z0-9]{18}[^A-Z0-9]|PRIVATE KEY' /
@cbeckr
cbeckr / backtrace.txt
Created January 20, 2016 21:04
passenger 5.0.23 High CPU Freeze
App 14514 stderr: [ 2016-01-06 16:16:08.6846 14532/0x00000000c53320(Main thread) request_handler.rb:362 ]: ========== Process 14532: backtrace dump ==========
App 14514 stderr: ------------------------------------------------------------
App 14514 stderr: # Thread: #<Thread:0x00000000c53320 run>(Main thread), [main thread], [current thread], alive = true
App 14514 stderr: ------------------------------------------------------------
App 14514 stderr: /usr/src/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/utils.rb:207:in `backtrace'
App 14514 stderr: /usr/src/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/utils.rb:207:in `block in global_backtrace_report'
App 14514 stderr: /usr/src/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/utils.rb:206:in `each'
App 14514 stderr: /usr/src/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/utils.rb:206:in `global_backtrace_report'
App 14514 stderr: /usr/src/passenger-5.0.23/src/ruby_supportlib/phusion_passenger/request_handle