This file contains 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
# An example Puppet manifest for installing AppDmg and Pkg files on Mac OS X. | |
# | |
# Great for installing all required Applications for new developers. | |
# | |
# Requirments: | |
# Install Puppet/Hiera/Facter | |
# | |
# Running the Provisioner: | |
# sudo puppet apply mac-developer.pp | |
# |
This file contains 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 | |
# Perform installation as root | |
# Install prereqs | |
yum -y install libcurl libcurl-devel rrdtool rrdtool-devel perl-devel libgcrypt-devel gcc make gcc-c++ yajl-devel | |
# Get Collectd, untar it, make it and install | |
wget http://collectd.org/files/collectd-5.4.1.tar.gz | |
tar zxvf collectd-5.4.1.tar.gz |
This file contains 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 | |
wget https://credis.googlecode.com/files/credis-0.2.3.tar.gz | |
tar -zxvf credis-0.2.3.tar.gz | |
cd credis-0.2.3 | |
make |
This file contains 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 | |
# Can be obtained from RepoForge | |
yum install -y yasm | |
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg | |
cd ffmpeg | |
git checkout n1.2.4 |
This file contains 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 | |
# Install build dependencies | |
yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel | |
# Get GraphicsMagick source | |
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz | |
tar zxvf GraphicsMagick-1.3.9.tar.gz | |
# Configure and compile |
This file contains 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
# Beware! This file is rewritten by htop when settings are changed in the interface. | |
# The parser is also very primitive, and not human-friendly. | |
fields=0 48 17 18 38 39 40 2 46 47 49 1 | |
sort_key=0 | |
sort_direction=1 | |
hide_threads=0 | |
hide_kernel_threads=1 | |
hide_userland_threads=0 | |
shadow_other_users=0 | |
show_thread_names=0 |
This file contains 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
# Strace an Apache request | |
ps auxw | grep httpd | awk '{print"-p " $2}' | xargs strace |
This file contains 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 | |
# How to install PHP memcached on CentOS 6.5 | |
# Install dependencies | |
yum install cyrus-sasl-devel zlib-devel gcc-c++ | |
# Get the latest libmemcached | |
wget https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz | |
tar -xvf libmemcached-1.0.16.tar.gz |
This file contains 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/perl -w | |
use strict; | |
use Socket; | |
use IO::Handle; | |
if($#ARGV+1 != 2){ | |
print "$#ARGV $0 Remote_IP Remote_Port \n"; | |
exit 1; | |
} |
This file contains 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 thanks goes to: http://stackoverflow.com/a/25733922 | |
var ProtoBuf = require("protobufjs"); | |
var http = require('http'); | |
// MTA Realtime endpoint http://datamine.mta.info/mta_esi.php?key=xxxx | |
var feedUrl = "..."; | |
// Initialize from .proto file | |
// Requires nyct-subway.proto and gtfs-realtime.proto |
OlderNewer