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 echoes EVERYTHING | |
set -x verbose | |
echo "THIS SCRIPT IS DANGEROUS do not be stupid" | |
apt-get install lvm2 mdadm | |
# $disks should be replaced with the last char on each disk you want to apply this to | |
#disks="a b c d e f" | |
disks="a b c d e f g h i" #EDIT THIS LINE |
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
[include] | |
path = .gitlocal | |
[alias] | |
lol = log --graph --decorate --pretty --oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
hlog = log --pretty=format:'The author of %h was %an, %ar%nThe title was >>%s<<%n' | |
unstage = reset HEAD -- | |
tree = log --graph --oneline --pretty=oneline --all | |
treeall = log --oneline --decorate --all --decorate --graph | |
lg = log --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' --abbrev-commit --date=relative |
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 | |
SYNCFILES=( ~/bin ~/.vim ~/.vimrc ~/.bashrc ~/.profile ) | |
VER=4 | |
DIR="$HOME/.tmp" | |
if [ ! -d $DIR ] | |
then | |
mkdir $DIR | |
fi | |
if [ -a $DIR/$1 ] |
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
dig +trace netregistry.com.au 12:15 PM | |
; <<>> DiG 9.8.1-P1 <<>> +trace netregistry.com.au | |
;; global options: +cmd | |
. 513673 IN NS a.root-servers.net. | |
. 513673 IN NS b.root-servers.net. | |
. 513673 IN NS c.root-servers.net. | |
. 513673 IN NS d.root-servers.net. | |
. 513673 IN NS e.root-servers.net. | |
. 513673 IN NS f.root-servers.net. |
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
exec {'apt-update': | |
command => 'apt-get update', | |
refreshonly => true; | |
} |
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
this |
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 | |
USER=`whoami` | |
DATE=`date --iso-8601=minute` | |
REPONAME= | |
PREFIX="$REPONAME_files_attempt" | |
PATCHFILE="${PREFIX}-${DATE}.patch" | |
REPODIR="/opt/$REPONAME" | |
MAINREPO="SOURCEGOESHERE" |
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
[include] | |
path = .gitlocal | |
[alias] | |
lol = log --graph --decorate --pretty --oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
hlog = log --pretty=format:'The author of %h was %an, %ar%nThe title was >>%s<<%n' | |
unstage = reset HEAD -- | |
tree = log --graph --oneline --pretty=oneline --all | |
treeall = log --oneline --decorate --all --decorate --graph | |
lg = log --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' --abbrev-commit --date=relative |
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
So 3JT asked about the use of ; in https://forge.puppetlabs.com/nodes/php/0.6.1 | |
it all comes down to making multiple resource declarations in a single block vs multiple blocks | |
With multiple declarations ; indicates the end of a resource | |
This | |
class { | |
'php::cli': | |
ensure => $php_version; | |
'php::apache': |
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
description "Starting a quick and dirty killingfloor server with upstart" | |
#put this file into /etc/init/ | |
#Start the service when the host has network and filesystems | |
start on (local-filesystems and net-device-up and runlevel [2345]) | |
stop on runlevel [016] | |
#the magic restart | |
respawn |