Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| require_recipe 'fog' | |
| route53_rr node[:ec2][:instance_id] do | |
| record_type "CNAME" | |
| fqdn "#{node[:ec2][:instance_id]}.#{node["route53"]["domain"]}" | |
| rdata(["#{node[:ec2][:public_hostname]}."]) | |
| accesskey node["route53"]["accesskey"] | |
| secretkey node["route53"]["secretkey"] | |
| zoneid node["route53"]["zoneid"] | |
| action :update |
| # First verify the version of Java being used is not SunJSK. | |
| java -version | |
| # Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html | |
| wget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm | |
| # Rename the file downloaded, just to be nice | |
| mv jdk-7u1-linux-i586.rpm\?e\=1320265424\&h\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm | |
| # Install Java |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| authors: | |
| hanzou: | |
| name: Hanzou Hattori | |
| display_name: Hanzou | |
| gravatar: c66919cb194f96c696c1da0c47354a6a | |
| email: [email protected] | |
| web: http://company.com | |
| twitter: company | |
| github: hhattori | |
| jorgen: |
WAL-E needs to be installed on all machines, masters and slaves.
Only one machine, the master, writes WAL segments via continuous archiving. The configuration for the master postgresql.conf is:
archive_mode = on
archive_command = 'envdir /etc/wal-e.d/env wal-e wal-push %p'
archive_timeout = 60
| gls -l --time-style="+%Y-%m-%d" | while read LINE; do | |
| fdate=`echo $LINE | awk -F" " {'print $6'}` | |
| fname=`echo $LINE | awk -F" " {'print $7'}` | |
| echo "mkdir $fdate"; echo "mv $fname $fdate" | |
| done | bash |
Note: total experiment and hack, looks nasty, could be awesome:
kitchen.local.yml into $HOME/.kitchen/config.ymlbrew install polipo, with Ubuntu: apt-get install polipo)polipo-start and polipo-console somewhere useful (perhaps $HOME/bin?)| { | |
| "title": "Apache and Tomcat Logs", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "apache !tomcat !static", | |
| "alias": "", | |
| "color": "#7EB26D", | |
| "id": 0, |
| #!/bin/bash | |
| ####################################################################### | |
| # This is a helper script that keeps snapraid parity info in sync with | |
| # your data and optionally verifies the parity info. Here's how it works: | |
| # 1) It first calls diff to figure out if the parity info is out of sync. | |
| # 2) If parity info is out of sync, AND the number of deleted files exceed | |
| # X (configurable), it triggers an alert email and stops. (In case of | |
| # accidental deletions, you have the opportunity to recover them from | |
| # the existing parity info) | |
| # 3) If partiy info is out of sync, AND the number of deleted files exceed X |
| language: groovy | |
| jdk: oraclejdk8 | |
| sudo: false # To use new Travis docker-based infrastructure | |
| env: | |
| global: | |
| # $AWS_ACCESS_KEY_ID | |
| - secure: "..." | |
| # $AWS_SECRET_ACCESS_KEY | |
| - secure: "..." |