This file contains 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
# Works with master branch | |
git subtree add --squash --prefix=circle git@github.com:avatarnewyork/circleci.git master |
This file contains 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
docker rm $(docker ps -a |grep -v RUNNING_CONTAINER_NAME | awk '{print $1}') |
This file contains 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
ssh-keygen -R [HOSTNAME] |
This file contains 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
# | |
# httpd.rb - facter to show apache version | |
# | |
output=`/usr/sbin/httpd -v | sed 's/[://]/ /g' |awk '/version/ {print $4}'` | |
if output | |
Facter.add("apache") do | |
setcode do | |
output | |
end |
This file contains 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
cat [LDIF_DIR]* | grep puppetVar | egrep -o ' .*=' |sort -u | sed 's/[= ]//g' |
This file contains 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
$ cd ~/projects/puppet/modules/mymodule/manifests | |
$ sudo puppet apply --modulepath=~/projects/puppet/modules/ -e "include client" |
This file contains 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
<!DOCTYPE> | |
<html> | |
<head><title>GA Dash Demo</title></head> | |
<body onload="chart1.render();" > | |
<!-- Add Google Analytics authorization button --> | |
<button id="authorize-button" style="visibility: hidden"> | |
Authorize Analytics</button> | |
<!-- Div element where the Line Chart will be placed --> |
This file contains 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
rspec --color --format documentation spec/classes/rule_spec.rb |
This file contains 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
# puppet-cloudbackup Example usage | |
class rackspace_backup { | |
class {'cloudbackup': | |
username => 'myusername', | |
api_key => 'xxxxxxxxxxxxxxxxxxxx', | |
} | |
} |
This file contains 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
[puppetlabs] | |
name=Puppet Labs Packages | |
baseurl=http://yum.puppetlabs.com/el/$releasever/products/$basearch/ | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs |