virsh iface-bridge eth0 br0- If you had
NM_CONTROLLED=noin there, re-add it to both ifcfg files because virsh probably just removed it for you.
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
| " Don't try to be vi compatible | |
| set nocompatible | |
| " Helps force plugins to load correctly when it is turned back on below | |
| filetype off | |
| " TODO: Load plugins here (pathogen or vundle) | |
| " Turn on syntax highlighting | |
| syntax on |
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 | |
| file=$1 | |
| test -z $file && echo "file required." 1>&2 && exit 1 | |
| git filter-branch -f --index-filter "git rm -r --cached $file --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all | |
| git ignore $file | |
| git add .gitignore | |
| git commit -m "Add $file to .gitignore" |
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
| $runinterval = 30 #minutes | |
| $first_run = fqdn_rand($runinterval) | |
| $second_run = $first_run + $runinterval | |
| cron { 'cron.puppet': | |
| command => "/opt/puppetlabs/bin/puppet agent -t > /dev/null", | |
| user => "root", | |
| minute => [ $first_run, $second_run ], | |
| } |
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
| # Enable gzip. Highly recommending for best peformance | |
| gzip on; | |
| gzip_comp_level 6; | |
| gzip_types text/html text/css text/javascript application/json application/javascript application/x-javascript; | |
| # By default, do not set expire headers | |
| expires 0; | |
| # Set expires header for console CSS and JS. | |
| # These files are timestamped with each new release, so it is safe to cache them agressively. |
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
| # encoding: utf-8 | |
| import os | |
| import shelve | |
| import boto.glacier | |
| import boto | |
| from boto.glacier.exceptions import UnexpectedHTTPResponseError | |
| ACCESS_KEY_ID = "XXXXXXXXXXXXX" | |
| SECRET_ACCESS_KEY = "XXXXXXXXXXX" | |
| SHELVE_FILE = os.path.expanduser("~/.glaciervault.db") |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Go to Google Bookmarks: https://www.google.com/bookmarks/ | |
| On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en | |
| After downloading the html file, run this script on it to generate a KML. | |
| """ |
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 | |
| # | |
| # This is the script responsible for updating our Puppet master data, | |
| # which includes modules, manifests, hiera data, etc. All of this data is | |
| # managed in a git repository and upon "deploy" it is synced into the Puppet | |
| # master. | |
| # | |
| # This script mirrors the remote git repository, looking for branches that | |
| # match "env-*" (such as "env-production" or "env-test"). Each of these branches | |
| # is setup as an environment into the Puppet master's data files. The |
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 | |
| export AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY | |
| export AWS_SECRET_ACCESS_KEY=YOUR_SECRET_ACCESS_KEY | |
| export PASSPHRASE=YOU_PASSHRASE | |
| # directories, space separated | |
| SOURCE="/home/thomas/backup /home/thomas/bin /home/thomas/documents" | |
| BUCKET=s3+http://mybucket | |
| LOGFILE=/home/thomas/tmp/duplicity.log | |
| # set email to receive a backup report |
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 | |
| # Description: A Git pre-commit hook for Puppet manifests | |
| # Validates Puppet manifest syntax amd style | |
| # * Syntax validation: Using puppet parser as documented on Puppet wiki | |
| # - http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control | |
| # * Style validation: Using puppet lint | |
| # Requirements: | |
| # * Ruby 1.8.7 |