Skip to content

Instantly share code, notes, and snippets.

View ghetzel's full-sized avatar

Gary Hetzel ghetzel

View GitHub Profile
(function(g,p,n){function v(a){if(g.event&&g.event.contentOverflow!==n)return{x:g.event.offsetX,y:g.event.offsetY};if(a.offsetX!==n&&a.offsetY!==n)return{x:a.offsetX,y:a.offsetY};var b=a.target.parentNode.parentNode;return{x:a.layerX-b.offsetLeft,y:a.layerY-b.offsetTop}}function e(a,b,c){a=p.createElementNS(z,a);for(var d in b)a.setAttribute(d,b[d]);"[object Array]"!=Object.prototype.toString.call(c)&&(c=[c]);b=0;for(d=c[0]&&c.length||0;b<d;b++)a.appendChild(c[b]);return a}function h(a){var b,c,d,
j,e=a.h%360/60;j=a.v*a.s;d=j*(1-Math.abs(e%2-1));b=c=a=a.v-j;e=~~e;b+=[j,d,0,0,d,j][e];c+=[d,j,j,d,0,0][e];a+=[0,0,d,j,j,d][e];d=Math.floor(255*b);c=Math.floor(255*c);a=Math.floor(255*a);return{r:d,g:c,b:a,hex:"#"+(16777216|a|c<<8|d<<16).toString(16).slice(1)}}function q(a){var b=a.r,c=a.g,d=a.b;if(1<a.r||1<a.g||1<a.b)b/=255,c/=255,d/=255;var e;a=Math.max(b,c,d);e=a-Math.min(b,c,d);b=60*((0==e?0:a==b?(c-d)/e+(c<d?6:0):a==c?(d-b)/e+2:(b-c)/e+4)%6);return{h:b,s:0==e?0:e/a,v:a}}function w(a,b,c){return function(d){d=
d
package main
import (
"bufio"
"bytes"
)
type SubsequenceHandlerFunc func(seq []byte)
type ScanInterceptor struct {
#!/bin/bash
apt-get install -y libxml2-dev libgnutls-dev libyajl-dev libnl-dev pkg-config libdevmapper-dev libcurl4-gnutls-dev python-dev lxc-dev libxen-dev
[ -d pkg ] && rm -rf pkg
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-esx=yes --with-lxc=yes --with-xen=yes
make
make install DESTDIR=$PWD/pkg
[ -f libvirt_0.9.10_amd64.deb ] && rm -f libvirt_0.9.10_amd64.deb
fpm -s dir \
-t deb \
@ghetzel
ghetzel / gist:0e250ff0ff304c3a01b9
Last active August 29, 2015 14:08
SSL Command Cheat Sheet
# SSL Command Cheat Sheet
# PK ---------------------------------------------------------
# Generate a Private Key (4096 bits)
openssl genrsa -out ca.key 4096
# ...with passphrase
openssl genrsa -des3 -out ca.key 4096