Skip to content

Instantly share code, notes, and snippets.

View epleterte's full-sized avatar

Christian Bryn epleterte

  • I am on the Internet
View GitHub Profile
@epleterte
epleterte / catalina.logrotate
Created October 12, 2012 13:54
Logrotate, catalina.out
# logrotate suggestion for catalina
/apps/tomcat/*/logs/catalina.out {
copytruncate
daily
rotate 5
compress
notifempty
missingok
size 100M
}
@epleterte
epleterte / rackup.sh
Created October 4, 2012 16:51
Better, untested rackup
#!/bin/bash -ue
/usr/bin/curl -s -k -F userfile=@<( /usr/bin/facter ) -u user:pass "https://racktables/index.php?page=depot&tab=facter&op=Update" > /dev/null 2>&1
@epleterte
epleterte / role.rb
Created September 17, 2012 23:07 — forked from tommybotten/role.rb
Example fact to determine the role of a server
# Fact: role
#
# Purpose:
# Return the installed and running applications on the system.
#
# FIXME: Add amq, varnish,
# FIXME: As of now, interpreting/matching text and not return codes :(
Facter.add(:role) do
setcode do
@epleterte
epleterte / .tmux.conf
Created May 25, 2012 07:51 — forked from aaronjensen/.tmux.conf
robust tmux zoom toggle
# zoom
unbind ^M
bind ^M new-window -d -n zoom 'tmux-zoom'