Skip to content

Instantly share code, notes, and snippets.

View arioch's full-sized avatar

Tom De Vylder arioch

View GitHub Profile
@LadyNamedLaura
LadyNamedLaura / coloring.awk
Last active January 10, 2017 10:12
squid coloring
{c="1;1"}
/TCP_MISS/ { c="1" }
/TCP_MEM_HIT/ { c="2;1" }
/TCP_HIT/ { c="2" }
/_UNMODIFIED/ { c="4" }
/_ABORTED/ {c="4;1"}
{print "\033[3"c"m"$0 "\033[0m"}
@vinzent
vinzent / puppet-agent-create-gem-rpm
Created June 5, 2015 07:18
Howto: easily create rpms from ruby gems for use with puppet-agent AIO
#!/bin/bash
# Author: Thomas Mueller <thomas@chaschperli.ch>
# Date: 2015-06-05
# enable to exit on first error
# set -e
# list gem's to create rpm's seperated by space
# example for 2 gems: gem_list="r10k trocla"
@rashidkpc
rashidkpc / gist:3794465
Created September 27, 2012 14:55
Kibana on Passenger
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11
PassengerRuby /usr/bin/ruby
<VirtualHost *:80>
ServerName logs.example.com
ServerAlias logs.example.com
DocumentRoot /home/httpd/Kibana/static
@zipkid
zipkid / gist:3496753
Created August 28, 2012 09:56
presign puppet cert
1. Generate a pre-signed certificate for client1.example.com with the following command:
puppet cert --generate client1.example.com
Puppet will now generate and sign a client certificate in the name of client1. example.com.
2. Transfer the three required files; the private key, the client certificate, and the CA certificate, to the new client. These are found in the following locations:
/etc/puppet/ssl/private_keys/client1.example.com.pem
/etc/puppet/ssl/certs/client1.example.com.pem
/etc/puppet/ssl/certs/ca.pem
Transfer these to the corresponding directories on the client, and it will then be authenticated without the certificate request step. Note that the location of Puppet's SSL certs varies according to the ssldir setting in puppet.conf.
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@jeffmccune
jeffmccune / ruby_toolchain_10_8.markdown
Created July 30, 2012 20:56
Ruby Toolchain on Mac OS X Mountain Lion (10.8)

Overview

The intention is to get a clean build of MRI 1.8.7 and 1.9.3.

MRI 1.8.7 doesn't play nicely with LLVM based GCC compilers. In Mountain Lion, the only way to get a non-LLVM gcc is to build one yourself. The command line tools package in Xcode 4.4 does not contain a non-llvm based GCC.

Checklist

  1. Upgrade to Mountain Lion
  2. Remove all previous copies of Xcode
@aussielunix
aussielunix / gist:1445258
Created December 7, 2011 23:23 — forked from jedi4ever/gist:1216529
Quick gist on getting vsphere and vcenter and fog/vsphere going
Quick gist on getting vsphere and vcenter and fog/vsphere going
# Things to download
- Download free evaluation version of window 2008
- Download free evaluation of esxi v5
- Download free evaluation of esxi vsphere (control center) iso
# Install esxi in vmware fusion
1)Install esxi in vmware (select vmware/esx as host)
create a user root/pipopopo
@jordansissel
jordansissel / Makefile
Created November 19, 2010 22:58
activemq .deb building
VERSION=5.4.1
DOWNLOAD=http://apache.cs.utah.edu/activemq/apache-activemq/$(VERSION)/apache-activemq-$(VERSION)-bin.tar.gz
NAME=apache-activemq
TARBALL=$(NAME)-$(VERSION)-bin.tar.gz
BUILDDEPS=
RUNDEPS=java-runtime
#CFLAGS=-g
.PHONY: default