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 test ($test=bob) inherits parent { | |
| notify{$test:} | |
| } | |
| class child ($test=bob) inherits parent { | |
| notify{$test:} | |
| } | |
| class parent($test=bob) { | |
| # do something with $test as passed through to the paramaterized class, rather than having to do |
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
| # download your private calendar url as xml | |
| wget http://url/to/calendar | |
| grep -o 'When:.*12' basic | uniq | perl -ple 's/When://' | ruby -e 'require "date"; puts STDIN.readlines.sort_by!{|x| Date.parse x}' |
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
| # All udp on port 2000 | |
| tcpdump -i eth0 udp port 2000 | |
| # port 8080 traffic, ascii view | |
| tcpdump -vv -x -X -s 1500 -i eth1 'port 8080' |
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 sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
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
| du -a | sort -n -r | head -n 10 |
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
| <?php | |
| namespace Tim; | |
| class Test | |
| { | |
| } |
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
| find . -depth -empty -type d -exec touch \{\}/.gitignore \; | |
| git add . | |
| git commit -m 'Sort out all the empty directories, as git does not track them by default' | |
| git push origin master |
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
| <!DOCTYPE html> | |
| <html xmlns:pas="http://phpinfo.tmower.connect-dev-web-01.bfb1.sites.ipcdigital.co.uk/pluckTest.html" xml:lang="en" lang="en"> | |
| <head> | |
| <title>Client Flow Example</title> | |
| <script type="text/javascript" src="http://goodtoknow.pluck.ipcdigital.co.uk/ver1.0/Content/ua/scripts/pluckApps.js"></script> | |
| <script> | |
| window.fbAsyncInit = function() { | |
| FB.init({ | |
| appId : '152695124822835', // App ID |
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
| <!DOCTYPE html> | |
| <html xmlns:pas="http://phpinfo.tmower.connect-dev-web-01.bfb1.sites.ipcdigital.co.uk/pluckTest.html" xml:lang="en" lang="en"> | |
| <head> | |
| <title>Client Flow Example</title> | |
| <script type="text/javascript" src="http://goodtoknow.pluck.ipcdigital.co.uk/ver1.0/Content/ua/scripts/pluckApps.js"></script> | |
| <script> | |
| window.fbAsyncInit = function() { | |
| FB.init({ |
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
| # install git | |
| sudo apt-get install g++ curl libssl-dev apache2-utils | |
| sudo apt-get install git-core | |
| sudo apt-get install nodejs | |
| # install the Node package manager for later use | |
| curl http://npmjs.org/install.sh | sudo sh | |
| sudo npm install express | |
| # clone the statsd project | |
| git clone https://github.com/etsy/statsd.git | |
| # download everything for graphite |