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
#!/usr/bin/env python
import argparse
import os
import MySQLdb
import re
import sys
import unicodedata
import yaml
$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,
@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
"""
@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
#!/usr/bin/env python
import os
import re
import string
import traceback
import urllib
import webob
import clusto
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use NFS installation media
$ 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
{
'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',
1: 0
2: 14178431955039102644307275309657008810
3: 28356863910078205288614550619314017620
4: 42535295865117307932921825928971026430
5: 56713727820156410577229101238628035240
6: 70892159775195513221536376548285044050
7: 85070591730234615865843651857942052860
8: 99249023685273718510150927167599061670
9: 113427455640312821154458202477256070480
10: 127605887595351923798765477786913079290
@thekad
thekad / -
Created November 4, 2013 22:22
pulp-admin content list --repoid mapr-ecosystem-all-x86_64
mapr-hbase-internal-0.94.3.17136-1.noarch.rpm,be3eef798483d588124cb3823a8e6eff796748f0c381cbe8babc8148806f6bcd
mapr-hbase-master-0.94.3.17136-1.noarch.rpm,aae9f00a4563fa6f3f3a3c72f6e8dcea7761c920b9918fee8f60c25dafebc798
mapr-hbase-regionserver-0.94.3.17136-1.noarch.rpm,3caadc311461e2f324813b6db48bf865bd0522e80464aabd2446f6fa400d679f
mapr-patch-2.1.1.17042EMC-sp16.x86_64.rpm,14d31eea481a6703178f7d07f14298149f95a5318b97197eacfc19603b7be67f
mapr-patch-2.1.3.20987.GA1-4.x86_64.rpm,77c52333c67891ec91ae6f11ed80ac40c12f2a87a28be48f89dd7f173ef733fd
mapr-hbase-0.94.12.22578.GA-1.noarch.rpm,6bb0aaa4faa879901c4978d7dffa0ca572cdb53aa6e886b44556908812ce6780
mapr-hbase-internal-0.94.12.22578.GA-1.noarch.rpm,3daa3a49879a4a167b6a4139fe0a360d6757c7c4cf88f13aeacb218db12837ef
mapr-hbase-master-0.94.12.22578.GA-1.noarch.rpm,f77016ed513d2edaaf7532931c889cf52790f2be374ed5d2caa2517819710033
mapr-hbase-regionserver-0.94.12.22578.GA-1.noarch.rpm,9a368707dddaedb69b068fb8d4527d