Skip to content

Instantly share code, notes, and snippets.

View thekad's full-sized avatar
🏠
Working from home

Jorge Gallegos thekad

🏠
Working from home
View GitHub Profile
{
'theo': '1976-01-17',
'pat': '1968-04-28',
'noah': '1985-01-01',
'megan': '1983-10-03',
'paul': '1970-11-11',
'brian': '1982-09-04',
'michael': '1985-11-05',
'kevin': '1981-09-06',
'jeremy': '1979-04-28',
$ dpkg -l | grep -i tls
ii libcurl3-gnutls 7.19.7-1ubuntu1 Multi-protocol file transfer library (GnuTLS
ii libgnutls26 2.8.5-2 the GNU TLS library - runtime library
ii libneon27-gnutls 0.29.0-1 An HTTP and WebDAV client library (GnuTLS en
$ dpkg -l | grep -i ssl
ii libopenssl-ruby 4.2 OpenSSL interface for Ruby
ii libopenssl-ruby1.8 1.8.7.249-2 OpenSSL interface for Ruby 1.8
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use NFS installation media
#!/usr/bin/env python
import os
import re
import string
import traceback
import urllib
import webob
import clusto
@thekad
thekad / gist:1103466
Created July 25, 2011 02:52
s3fs.spec
Name: s3fs
Version: 1.58
Release: 1%{?dist}
Summary: FUSE-based file system backed by Amazon S3
License: GPLv2
URL: http://code.google.com/p/s3fs
Source0: http://s3fs.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: passwd-s3fs
@thekad
thekad / nagii.py
Created April 25, 2011 18:24
Nagios modelling in python
#!/usr/bin/env python
#
# -*- mode: python; sh-basic-offset: 4; indent-tabs-mode: nil; coding: utf-8 -*-
# vim: tabstop=4 softtabstop=4 expandtab shiftwidth=4 fileencoding=utf-8
class NagiosTemplate(object):
"""
A simple nagios template, it is more flexible than an object
"""
$x = "/tmp/kad/is/playing/nice"
$full = ""
define mkdir_p($owner, $group, $mode) {
if $name {
$full += "/${name}"
notice("The value is: '${full}'")
file {
"$full":
ensure => directory,
#!/usr/bin/env python
import argparse
import os
import MySQLdb
import re
import sys
import unicodedata
import yaml