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
| # Generated by iptables-save v1.4.0 on Mon Feb 16 20:47:39 2009 | |
| *filter | |
| :INPUT DROP [0:0] | |
| :FORWARD DROP [0:0] | |
| :OUTPUT ACCEPT [0:0] | |
| # Accept any traffic on loopback | |
| -A INPUT -i lo -j ACCEPT | |
| # Echo Request / Tracert | |
| -A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT | |
| -A INPUT -p icmp -m icmp --icmp-type 11 -j ACCEPT |
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 | |
| JAVA_FILE_SOURCE="jdk-7u5-linux-x64.tar.gz" | |
| REMOTE_JAVA_SDK="http://download.oracle.com/otn-pub/java/jdk/7u5-b05/${JAVA_FILE_SOURCE}" | |
| wget --header "Cookie:oraclelicensejdk-7u5-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com" $REMOTE_JAVA_SDK --no-check-certificate |
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 | |
| ############################################################################# | |
| # Program : rpmaudit | |
| # Purpose : Provide a date as input, and a report of installed/upgraded | |
| # : RPMs since the given date will be returned. | |
| # License : Artistic Perl 2.0 | |
| # (C) 2008 : Eric G. Wolfe <wolfe21@marshall.edu> | |
| use strict; | |
| use warnings; | |
| use POSIX qw(strftime); |
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 | |
| if [ "$#" -eq 0 ]; then | |
| echo "Usage: `basename $0` <cookbook directory>" | |
| elif [ "$#" -eq 1 ]; then | |
| find $1 -name "*[.md|.rb]" ! -name "*.git" ! -name "*.erb" | xargs perl -p -e 's!\[:([a-z0-9_]+)\]![\x27$1\x27]!gi' -i | |
| echo "Commit message:" | |
| echo "FC001: Use strings in preference to symbols to access node attributes" | |
| 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
| #!/bin/bash | |
| if [ ! -x /usr/bin/chef-solo ]; then | |
| echo "ERROR: chef-solo not found" | |
| echo "Try the chef-full package, http://opscode.com/chef/install" | |
| exit 1 | |
| fi | |
| BOOTSTRAP_TARBALL="http://osl.marshall.edu/chef/gitlab-bootstrap.tar.gz" |
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
| [ | |
| {bitcask, [ | |
| {data_root, "/var/lib/riak/bitcask"} | |
| ]}, | |
| {eleveldb, [ | |
| {data_root, "/var/lib/riak/leveldb"}, | |
| {max_open_files, 50} | |
| ]}, | |
| {kernel, [ | |
| {inet_dist_listen_max, 7999}, |
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
| name "role_a" | |
| default_attributes "mycookbook" => { | |
| "value" => [ "hi", "there" ] | |
| } | |
| run_list "recipe[mycookbook]" |
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
| ( node ['iptables']['rules'] - node['iptables']['default-rules-exclude'] ).each |rule| | |
| # Do something with 'rule' | |
| end |
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
| { | |
| "comment": "Han Solo", | |
| "groups": "rebelalliance", | |
| "ssh_keys": [ "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4CspS+FjUIJSqAT74hauvVSCym+CqgAlEn6crpGvT2b6vdEYADc5YvKeGoXJMi5pmnGxqCiMLZ9l6U5SMsC81hlP/1nsreTf3tJ53u06fdlPAma7k36bAhuFpLdUcAeccyIm2/TV8c+yKCAqzHIbvms62ElRDeW78f/tmzQ993iokpg3h/WZ8eenUUMzyRx4FDo4mVXUCpU5KQptJWEJp1zeW8OCOTo5jX3yHJac/PbjtZKCdQYNQnD6+bKjLzqmSGwv3o80gGl3zPfTZqd56912TfVj8x2f6Vz+1bzXMXMhHzvRuDPDbXY5Aze2+TzTOw9n+xXwTFTwLzS/P0pH5Q== hsolo", "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDzSfusRtOJixhn/WL0UkqDZ47WKQjBYcevpJ3UcwVLg9We+7vEJ6MWQFmTAI6023yIiBPgRrQDME8j6C0QkiPmH73DPm4MWdU3v2pza18lwOCRFmTAw1yQCQ8kyXnWMYvdBXqUJw7tU/sNL+rSoUoUq4tgysXOpIFBdzRyoBb1Zthd9rrAPcLbOEsjVniK6olt4T5Gmu/+27zzmTi/yiNaIwh29bJowq3tznL+YuBUHq2Ixy2W5TjkWiLB5C4XnlmUip2A5y6UhZKTI6T8OQyzrEcqHQaXHvaL1J4VJWgn6yD4schIWRpa+t67W0z/65ktpqLVcoWbKqw3BCrlgI7R hsolo@hsolo-ig88" ], | |
| "id": "hsolo", | |
| "uid": 2001, | |
| "gid": 2001, | |
| "shell": "/bin/bash" | |
| } |
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
| { | |
| "rvm": { | |
| "user_installs": [ | |
| { | |
| "user": "www", | |
| "rubies": [ "1.9.2" ] | |
| } | |
| { | |
| "user": "user2", | |
| "rubies": [ "1.9.1", "1.9.3" ] |