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/sh | |
MANAGMENTNODE=xcat | |
# passwords used in script | |
# root password for mysql | |
# ( if using user other than root modify below ) | |
SQL_ROOT_PASS=rootpw | |
# The password used by xcat | |
# ( you dont need to know this unless you decied to debug mysql ) | |
XCAT_PASS=xcat_user_passwd | |
# |
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/sh | |
# I typically run something like this after a fresh install | |
######################################## | |
# What DISTRO are we installing on | |
######################################## | |
release=rh6 | |
ARCH=x86_64 | |
DISTRO=centos6.4 | |
ISO_DISTRO=CentOS6.4 |
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 ruby | |
# | |
# The idea here is, tick is almost a linear function. We really want a | |
# tick_function and compare based on time of day, but this will do for now. | |
# | |
# We can almost determine the typical linear increase of errors | |
# based on time of day. So here we assume that the linear starts | |
# at 6am and increases until 6am the next day. | |
# | |
# NB: One flaw is that the values are less relevant before noon :} |
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/sh | |
pdf=*.pdf | |
gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=pdfmerged.pdf $pdf | |
# yeah!!!! |
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/sh | |
SERVER=logstash | |
################################################ | |
if [ ! -f "${SERVER}.crt" -o ! -f "${SERVER}.key" ] ; then | |
rm -f ${SERVER}.{crt,key,csr} | |
openssl genrsa -des3 -out ${SERVER}.key 1024 | |
openssl req -new -key ${SERVER}.key -out ${SERVER}.csr | |
cp ${SERVER}.key ${SERVER}.key.org | |
openssl rsa -in ${SERVER}.key.org -out ${SERVER}.key | |
openssl x509 -req -days 365 -in ${SERVER}.csr -signkey ${SERVER}.key -out ${SERVER}.crt |
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
debug client ${HEXSTUFF} | |
debug dhcp packet enable | |
debug dot11 mobile enable | |
debug dot11 state enable | |
debug dot1x events enable | |
debug pem events enable | |
debug pem state enable | |
debug cckm client debug enable |
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
################################## | |
## CISCO | |
NetFlow | |
################################## | |
enable | |
configure terminal | |
ip |
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
output { | |
file { | |
#gzip => true | |
path => "/var/log/testcases/failed_grok_%{type}" | |
tags => "_grokparsefailure" | |
} | |
# .... | |
} |
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
[originally posted in 2013] It seems that installing the latest version of Vagrant breaks the old config. | |
If there is something I hate, it is code that is not backward compatible AND breaks OLD configs at the same time. | |
...That is to say, I installed the NEW vagrant and was told my boxes were build for OLD vagrant. | |
So ( being in a rush) I reinstalled the old vagrant and that complained that I had a NEW vagrant config and refused to work. | |
Meaning once you install the NEW vagrant your old config is broken so you must fix it... | |
Well, this is the thing I did. Anyway, were would I be without vagrant! So thanks just the same |
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/sh | |
# | |
# To use logstash you need java | |
# To use kibana you need nodejs | |
# | |
# java and nodejs are on EPEL | |
# | |
rpm -Uvh http://fedora.mirror.nexicom.net/epel/6/i386/epel-release-6-8.noarch.rpm | |
yum -y install java-1.7.0-openjdk nodejs |