Skip to content

Instantly share code, notes, and snippets.

View walkeran's full-sized avatar

Andy Walker walkeran

View GitHub Profile
@walkeran
walkeran / gist:c469e92a52875614013a
Created September 18, 2014 19:40
Verizon traceroutes to firewall
============ 71.184.157.194 =============
G0-6-0-6.BSTNMA-LCR-21.verizon-gni.net.
ae3-0.BOS-BB-RTR1.verizon-gni.net.
0.ae11.XL3.NYC1.ALTER.NET.
0.ae1.XL3.CHI13.ALTER.NET.
TenGigE0-6-0-3.GW6.CHI13.ALTER.NET.
twtelecom-gw.customer.alter.net.
207-67-46-198.static.twtelecom.net.
h1-p2-po-32-edc.enventis.net.
andy ~ # echo "walkeran soft nofile 2048" >> /etc/security/limits.conf
andy ~ # echo "walkeran hard nofile 2048" >> /etc/security/limits.conf
andy ~ # su -i - walkeran
walkeran@andy ~ $ ulimit -n
2048
walkeran@andy ~ $
@walkeran
walkeran / collect.conf
Created May 30, 2014 20:56
Logstash + JSON Codec + StatsD
input {
redis {
key => 'logstash:collect'
data_type => 'list'
codec => json
type => 'collect'
}
}
output {
statsd {
@walkeran
walkeran / rubyweb.pp
Created October 4, 2012 18:49
Rubyweb wrapper for ruby class
class rubyweb ($rubyver, $passengerver, $gemsver, $bundlerver) {
class { 'ruby':
version => $rubyver,
}
class { 'apache::mod_passenger':
version => $passengerver,
}
ruby::gem::install { 'bundler':
version => $bundlerver,
}
@walkeran
walkeran / gist:3722248
Created September 14, 2012 14:29
Yum localupdate facter ... or not
[root@api1 download]# yum localupdate facter-1.6.12-2.el6.x86_64.rpm
Loaded plugins: fastestmirror
Setting up Local Package Process
Examining facter-1.6.12-2.el6.x86_64.rpm: 1:facter-1.6.12-2.el6.x86_64
Marking facter-1.6.12-2.el6.x86_64.rpm as an update to facter-1.6.3-1.el6.noarch
Loading mirror speeds from cached hostfile
inhouse | 951 B 00:00
Nothing to do
[root@api1 download]#
@walkeran
walkeran / gist:3713826
Created September 13, 2012 11:51
Exec resource with environment
[root@puppet ~]# cd /tmp/puppet/test6
[root@puppet test6]# puppet apply test.pp
notice: /Stage[main]//Exec[test2]/returns: executed successfully
notice: Finished catalog run in 0.30 seconds
[root@puppet test6]# ls
output2 test.pp
[root@puppet test6]# cat test.pp
@walkeran
walkeran / gist:3532457
Created August 30, 2012 16:30
Dell asset service output
<!-- Ideal output snippet -->
<EntitlementData>
<ServiceLevelCode>GD</ServiceLevelCode>
<ServiceLevelDescription>P, Gold or ProMCritical</ServiceLevelDescription>
<Provider>DELL</Provider>
<StartDate>2010-01-27T00:00:00</StartDate>
<EndDate>2014-01-27T00:00:00</EndDate>
<DaysLeft>516</DaysLeft>
<EntitlementType>Active</EntitlementType>
</EntitlementData>
@walkeran
walkeran / memcached_build_error.out
Created April 30, 2012 12:03
I hate you, memcached gem!
configure:22468: error: possibly undefined macro: AC_LIB_HAVE_LINKFLAGS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1