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
cache = Chef::Config[:file_cache_path] | |
rpm = redis-2.8.7-1.el6.remi.x86_64.rpm | |
remote_file "#{cache}/#{rpm}" do | |
source "http://rpms.famillecollet.com/enterprise/6/remi/x86_64/#{rpm}" | |
end | |
rname = File.basename("#{rpm}", '.*') | |
if `rpm -qa | grep #{rname}`.empty? |
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
#!/bin/sh | |
# | |
# Pre-commit hook that verifies if all files containing 'vault' in the name | |
# are encrypted. | |
# If not, commit will fail with an error message | |
# | |
# File should be .git/hooks/pre-commit and executable | |
FILES_PATTERN='.*vault.*\.yml$' | |
REQUIRED='ANSIBLE_VAULT' |
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
--- | |
# This has been tested with ansible 1.3 with these commands: | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
# NB: The type of the variable is crucial! | |
- name: Ansible Conditionals Examples | |
hosts: $hosts | |
vars_files: |
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
<a href="https://www.linkedin.com/shareArticle?mini=true&url=http://hitch.waveapps.com&title=Hitch%20by%20Wave&summary=Find%20your%20match%20with%20Wave's%20new%20online%20dating%20service!&source=">Share on LinkedIn</a> |
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
echo "+------------------------------+" | |
echo "| Running VMTools Install |" | |
echo "+------------------------------+" | |
#!/usr/bin/env bash | |
mkdir /mnt/cdrom | |
# Check which Packer builder type is being used | |
if [ $PACKER_BUILDER_TYPE = "virtualbox-iso" ]; then | |
# Required for the VirtualBox Guest Additions for Linux |
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
#TODO: replace with: tar xvz < <(curl -L https://github.com/stevepereira/macbook-ansible/archive/master.tar.gz) && ansible-playbook macbook-ansible-master/install.yml -K | |
#https://github.com/revans/bash-it | |
#https://github.com/mathiasbynens/dotfiles | |
# nopasswd sudo: add 'stevepereira ALL=(ALL) NOPASSWD: ALL' to /etc/sudoers | |
# disable smart quotes and smart dashes | |
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false | |
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false | |
# textEdit |
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
<section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'> | |
<h2>Broadcasting Your</h3> | |
<h1>Reveal.js</h1> | |
<h2>Slideshow Presentations</h2> | |
<img style="disply:block;border:none;background:none;box-shadow:none;width:35%;" alt='Docker-logo' src='https://gist.githubusercontent.com/ryanj/7ebf56442930b4c2188b/raw/6a6e03247efb03a0eee24a12f7beaf1ab4634563/Docker-whale.png'/> | |
<p class='fragment'><small><a href='http://gist-reveal.it/'>gist-reveal.it</a><br/> | |
<a class='fragment' href='http://github.com/ryanj/gist-reveal.it'>github.com/ryanj/gist-reveal.it</a> | |
<br/> <a class='fragment' href='https://registry.hub.docker.com/u/ryanj/gist-reveal.it/'>registry.hub.docker.com/u/ryanj/gist-reveal.it</a></small></p> | |
</section> | |
<section data-background-transition='zoom' data-transition='linear'> |
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
### Keybase proof | |
I hereby claim: | |
* I am stevepereira on github. | |
* I am stevepereira (https://keybase.io/stevepereira) on keybase. | |
* I have a public key whose fingerprint is 9188 D2A7 E7E2 9D1A 0895 588A 9F63 1DD5 0AD2 1480 | |
To claim this, I am signing this object: |
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
# prevent the creation of .DS_Store files on network drives | |
# http://hints.macworld.com/article.php?story=2005070300463515 | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true | |
#--------------------------------------------------------------------- | |
# Disable/enable Dashboard: | |
# http://hints.macworld.com/article.php?story=20050723123302403 | |
defaults write com.apple.dashboard mcx-disabled -boolean YES |
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
app: | |
build: . | |
command: python manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- .:/app | |
ports: | |
- "8000:8000" | |
links: | |
- db | |
- redis |
OlderNewer