Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsl:output version="1.0" encoding="utf-8" indent="yes" name="xml" />
<xsl:template match="/">
<xsl:apply-templates />
<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsl:output version="1.0" encoding="utf-8" indent="yes" name="xml" />
<xsl:template match="/">
<xsl:apply-templates />
@staylorx
staylorx / gist:cbd1cdbf759781d91652
Created January 3, 2016 21:56
Install Git on RHEL4
cd ~
wget http://packages.sw.be/git/git-1.7.3-1.el4.rf.i386.rpm
wget http://packages.sw.be/git/perl-Git-1.7.3-1.el4.rf.i386.rpm
rpm -ivh --nodeps git-1.7.3-1.el4.rf.i386.rpm perl-Git-1.7.3-1.el4.rf.i386.rpm
git --version
#!/bin/bash
if [[ $# -eq 0 ]]; then
echo "Usage: tslooper.sh hostinput.txt"
exit 1
else
HOSTS="$1"
fi
rm -rf target
@staylorx
staylorx / gist:dbc137b7d020da2242dfacfe0c9a59c4
Last active August 22, 2016 14:53 — forked from tnolet/gist:7361441
Install collectd 5.4 on Centos 6.x and make it spit out cool metrics. Copied from http://linuxdrops.com/install-collectd-statistics-collecter-on-centos-rhel-ubuntu-debian/ and tweaked for your and my pleasure. For all other cool options, check the provided link.
#!/bin/bash
# install collectd with curl_json plugin for jolokia on RHEL6
# Perform installation as root
# Install prereqs
yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++ yajl yajl-devel
# Get Collectd, untar it, make it and install
@staylorx
staylorx / collectd.conf.rh5-32
Created August 22, 2016 14:56 — forked from ring-the-sysop/collectd.conf.rh5-32
A collectd spec file for 32 and 64-bit RHEL 5 and 64-bit RHEL 6.
#
# Config file for collectd(1).
# Please read collectd.conf(5) for a list of options.
# http://collectd.org/
#
##############################################################################
# Global #
#----------------------------------------------------------------------------#
# Global settings for the daemon. #
@staylorx
staylorx / gist:a3b47de948272344c441fd0d64922f3f
Created December 13, 2017 18:46
Example docker image builder with Clair test for jenkins
#!/usr/bin/env groovy
//Dockerfile including Clair check.
//Steve.Taylor@cu.edu DEC-2017
node('docker') {
def docker_registry="nexus.mydomain.err:5000"
def clair_endpoint="https://nexus.mydomain.err:6060"
def image_name="uis-cam/endpoint-heartbeat"
/*
* Aeon HEM Gen5(zwave plus)
*
* Copyright 2016 Dillon A. Miller
*
* v0.8 of Aeon HEM Gen5(zwave plus) code, released 04/15/2016 for Aeotec Model zw095-a
* This Gen5 device handler is not backward compatible with the Aeon V1 or V2 device. If your model number is not zw095-a, don't use it.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
@staylorx
staylorx / gist:070881b064ad1c8e9971697b9895f65f
Created March 25, 2020 14:21
Add to .bashrc to manage SSH private key
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent`
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l > /dev/null || ssh-add
@staylorx
staylorx / local-repos.repo
Last active April 10, 2020 22:55
Helpful local Nexus Yum repo
[base]
name=CentOS-$releasever - Base
baseurl=http://192.168.1.11:8081/repository/yum-centos/$releasever/os/$basearch/
enabled=1
gpgcheck=0
priority=1
[updates]
name=CentOS-$releasever - Updates
baseurl=http://192.168.1.11:8081/repository/yum-centos/$releasever/updates/$basearch/