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
| class phr_test ( | |
| $vertex_dir = '/usr/vertex', | |
| ) | |
| { | |
| } | |
| class phr_unidata ( | |
| $vertex2_dir = $phr_test::vertex_dir, | |
| ) | |
| { | |
| } |
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
| Vagrant.require_version ">= 1.5.0" | |
| require 'vagrant-hosts' | |
| require 'vagrant-auto_network' | |
| Vagrant.configure('2') do |config| | |
| config.vm.define :puppetmaster do |node| | |
| # An index of pre-built boxes can be found at: | |
| # | |
| # https://vagrantcloud.com/puppetlabs |
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() { | |
| cat << EOF | |
| Usage: $0 [OPTION]... COMMAND | |
| Execute the given command in a way that works safely with cron. This should | |
| typically be used inside of a cron job definition like so: | |
| * * * * * $(which "$0") [OPTION]... COMMAND | |
| Arguments: |
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/sh | |
| # | |
| set -ex | |
| TEMP_DIR="$(mktemp -d -t XXXX)" | |
| # cleanup | |
| trap 'RESULT=$?; rm -rf "$TEMP_DIR" ; exit $RESULT' INT TERM EXIT QUIT | |
| OLD_PWD="$PWD" | |
| cd "$TEMP_DIR" |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
NewerOlder