USERNAME=user:pass
OWNER=someguy
REPO=thing
curl -u $USERNAME -H "Accept: application/json" ${DEBUG} https://api.github.com/repos/${OWNER}/${REPO}/hooks -d '{"config": {
"nick": "ggl_bot",
"port": "6667",
"server": "chat.freenode.net",
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
place holder |
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 | |
IRSSI_VERSION=0.8.17 | |
OTR_VERSION=4.1.0 | |
PREFIX=/opt/irssi | |
cat <<EOF > /tmp/list.$$ | |
https://otr.cypherpunks.ca/libotr-${OTR_VERSION}.tar.gz | |
https://otr.cypherpunks.ca/libotr-${OTR_VERSION}.tar.gz.asc |
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 | |
for MACHINE in $* | |
do | |
sdc-vmapi /vms/$MACHINE | json -Ha uuid alias state | |
eval "sdc-vmapi /job_results -X POST --data '{\"vm_uuid\": \"$MACHINE\", \"execution\": \"failed\" }'" | |
sdc-vmapi /vms/$MACHINE | json -Ha uuid alias state | |
done | |
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 |
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
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
################################## | |
## 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
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
#!/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 |