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
(function (albumID, $) { | |
'use strict'; | |
$.extend({ | |
interpolate: function (s, data) { | |
var variable; | |
for (variable in data) { | |
if (data.hasOwnProperty(variable)) { | |
s = s.replace(new RegExp('{' + variable + '}', 'g'), data[variable]); | |
} |
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
TestCase('regex to find HTTP headers', { | |
headerFinderRegex: /^([-!#-'*+.0-9A-Z^-z|~]+:)/gm, | |
'test only valid headers are highlighted': function () { | |
var addValue = function(s) { return s + ' value\n';}, | |
addColon = function(s) { return s + ':';}, | |
wrapWithStrong = function(s) { return "<strong>" + s + "</strong>";}, | |
invalidCharacters = (function() { | |
var invalidCharacters = ["(", ")", "<", ">", "@", ",", ";", ":", "\\", '"', "/", "[", "]", "?", "=", "{", "}", ' ', '\t']; |
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 | |
# Run from the base directory of your Puppet module | |
echo =================== | |
echo Parser Validation | |
echo =================== | |
find . -name "*.pp" | xargs -n 1 -t puppet parser validate | |
echo =================== | |
echo Linting |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlueColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEB4w | |
IDAuMDAzNjEwNTAyODYzIDAuODQ0NzY5MDIxNwAQAYAC0hAREhNaJGNsYXNzbmFtZVgk | |
Y2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hpdmVy0RcYVHJv |
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
NCState Linux kickstart -> http://www.linux.ncsu.edu/realm_linux/usersguide-EL4/ch07.php | |
FermiLab's Anaconda Wiki -> http://fermilinux.fnal.gov/distribution/slf-5/installation/kickstart | |
Bootstrapping Puppet Agent on CentOS6 -> https://github.com/ahamilton55/Blog-Scripts/blob/master/puppet_agent_install/centos6_setup.sh | |
Custom Kickstart Process -> http://smorgasbork.com/component/content/article/35-linux/128-building-a-custom-centos-6-kickstart-disc-part-1 | |
VMWare Template MAC Addresses -> https://peterpap.net/index.php/Creating_a_CentOS%5CRed_Hat_VMware_template | |
creating a minimal centos vm -> http://lsimons.wordpress.com/2011/06/03/creating-a-minimal-centos-vm/ | |
Unit Testing in Puppet -> http://www.jedi.be/blog/2011/12/05/puppet-unit-testing-like-a-pro/ |
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
#!/usr/bin/env bash | |
PROXY_AUTH=user:password | |
PROXY_HOST=proxy.example.com | |
PROXY_PORT=:80 | |
PROXY_EXCLUDE=".example.com,localhost,127.0.0.1/32,10.0.0.0/8" | |
# First, remove any existing proxy definitions in /etc/yum.conf | |
if [ -w /etc/yum.conf ]; then | |
sed -i "/^proxy=.*/d" /etc/yum.conf |
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
npm config set proxy http://server:port | |
npm config set registry "http://registry.npmjs.org/" |
NewerOlder