This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| #use strict; | |
| $flood = 0; | |
| use Irssi; | |
| use DBI; | |
| use warnings; | |
| use vars qw($flood $VERSION %IRSSI); | |
| use WebService::EveOnline; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ips=$(nmap -sP 192.168.1.0/24 2>/dev/null | grep 'scan report' | awk '{print $NF}' |sed 's/(//;s/)//') | |
| for ip in $ips | |
| do | |
| mac=$(arp $ip | cut -f 4 -d' ') | |
| ptr=$(dig -x $ip| grep PTR |tail -n 1|awk '{ print $NF}') | |
| if [ $ptr == 'PTR' ] | |
| then | |
| ptr="none" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Fetching http://github.com/seyhunak/twitter-bootstrap-rails.git | |
| Git error: command `git clone 'http://github.com/seyhunak/twitter-bootstrap-rails.git' "/var/data/arkham/releases/20121031195725/vendor/bundle/ruby/1.9.1/cache/bundler/git/twitter-bootstrap-rails-8f29c1fbdcb3b4ce0a576f6b5ec783bc3a7826da" --bare --no-hardlinks` in directory /var/data/arkham/releases/20121031195725 has failed. | |
| STDERR: /usr/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout/unix.rb:115: warning: conflicting chdir during another chdir block | |
| fatal: http://github.com/seyhunak/twitter-bootstrap-rails.git/info/refs not valid: is this a git repository? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| watchfor /Error|ERROR|fail|FAIL|Fail|Fatal|fatal|FATAL|WARN|Warn|warn/ | |
| exec echo '$_' | swatchout.sh backend_daily 34560 1 20000 | |
| watchfor /Error|ERROR|fail|FAIL|Fail|error/ | |
| exec echo '$_' | swatchout.sh backend_error 600 20 25 | |
| watchfor /Fatal|FATAL|fatal/ | |
| exec echo '$_' | swatchout.sh backend_fatal 5 1 1 | |
| watchfor /warn|Warn|WARN/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ### USAGE: | |
| # execute from swatch and only swatch | |
| # exec echo '$_' | swatchout.sh <NAME> <SECONDS> <WARNING_EVENTS> <CRITICAL_EVENTS> | |
| EMAIL="foo@bar.com" | |
| NAME=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ 12.063460] blkfront: barrier: empty write xvda op failed | |
| [ 12.063475] blkfront: xvda: barrier or flush: disabled | |
| [ 12.063495] end_request: I/O error, dev xvda, sector 13145 | |
| [ 12.063529] end_request: I/O error, dev xvda, sector 13145 | |
| [ 12.063554] Buffer I/O error on device xvda1, logical block 1643 | |
| [ 12.063575] lost page write due to I/O error on xvda1 | |
| [ 12.063615] Aborting journal on device xvda1. | |
| [ 12.064315] EXT3-fs (xvda1): error: ext3_journal_start_sb: Detected aborted journal | |
| [ 12.064362] EXT3-fs (xvda1): error: remounting filesystem read-only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SLD="<%= @domain %>" | |
| AWSID="<%= @awsid %>" | |
| AWSKEY="<%= @awskey %>" | |
| SHORTHOST=`echo <%= node[:this_server] %> | sed 's/_/-/g' | sed "s/.${SLD}//"` | |
| HOSTNAME="${SHORTHOST}.${SLD}" | |
| cat > ~/.aws-secrets << EOF | |
| %awsSecretAccessKeys = ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # Utility server | |
| - name: utility | |
| env: production | |
| retention: 3 | |
| volumes: | |
| - device: sda1 | |
| id: vol-1c99ae73 | |
| - device: sdf | |
| id: vol-a087b5cf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # Do not edit this script from the host, it is generated by chef | |
| require 'rubygems' | |
| require 'aws' | |
| $aws_id = "REDACTED" | |
| $aws_key = "REDACTED" | |
| AWS.config(:access_key_id => $aws_id, :secret_access_key => $aws_key, :ec2_endpoint => "ec2.amazonaws.com") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| $flood = 0; | |
| use Irssi; | |
| use Image::Magick; | |
| use warnings; | |
| use vars qw($flood $VERSION %IRSSI); | |
| $VERSION = '1.00'; |