Skip to content

Instantly share code, notes, and snippets.

@johnh
johnh / logentriesBeanstalk.config
Last active March 1, 2016 22:10
LogEntries Elastic Beanstalk configuration using an environment variable
files:
"/home/ec2-user/setup.sh":
mode: "000755"
owner: root
group: root
content: |
#!/bin/bash
echo "\$template LogentriesFormat,\"${PS_LOGENTRIES_TOKEN} %HOSTNAME% %syslogtag%%msg%\n\"" > /etc/rsyslog.d/logger.conf
echo '*.* @@data.logentries.com:80;LogentriesFormat' >> /etc/rsyslog.d/logger.conf
@johnh
johnh / .bashrc
Last active November 4, 2015 06:13
Fixed the f@#$% wrapping prompt after all these years...
export COLOR_NC='\033[0m' # No Color
export COLOR_WHITE='\033[1;37m'
export COLOR_BLACK='\033[0;30m'
export COLOR_BLUE='\033[0;34m'
export COLOR_LIGHT_BLUE='\033[1;34m'
export COLOR_GREEN='\033[0;32m'
export COLOR_LIGHT_GREEN='\033[1;32m'
export COLOR_CYAN='\033[0;36m'
export COLOR_LIGHT_CYAN='\033[1;36m'
export COLOR_RED='\033[0;31m'

Keybase proof

I hereby claim:

  • I am johnh on github.
  • I am haro (https://keybase.io/haro) on keybase.
  • I have a public key whose fingerprint is D961 F6C2 BECE 3DB4 4627 7DCB B025 B2E2 F9EB 0781

To claim this, I am signing this object:

@johnh
johnh / .bashrc
Created January 13, 2012 17:27
my .bashrc
# See following for more information: http://www.infinitered.com/blog/?p=19
# Colors ----------------------------------------------------------
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1