Skip to content

Instantly share code, notes, and snippets.

#! /bin/bash
# HEADS UP! Make sure to use '*' or a valid hostname for the FDQN prompt
echo 01 > ca.srl
openssl genrsa -des3 -out ca-key.pem
openssl req -new -x509 -days 3650 -key ca-key.pem -out ca.pem
openssl genrsa -des3 -out server-key.pem
openssl req -new -key server-key.pem -out server.csr
@nkabir
nkabir / buildout.cfg
Created June 30, 2014 14:01
minimal-buildout
[buildout]
extends = http://dist.plone.org/release/4.3-latest/versions.cfg
find-links +=
http://effbot.org/downloads/
parts =
instance
zopeskel
newest = false
{
"type": "jdbc",
"jdbc": {
// provide connection parameters for your JDBC
"driver": "com.mysql.jdbc.Driver",
"url": "jdbc:mysql://localhost:3306/yourDb",
"user": "login",
"password": "pass",
// define stragety to load your data (simple strategy makes periodical polls from JDBC)
"strategy": "simple",
@nkabir
nkabir / rdelta.py
Last active December 27, 2015 04:39
relative delta
#!/usr/bin/env python
import datetime
from dateutil.relativedelta import relativedelta
beg = datetime.datetime(2010,10,30)
rd = relativedelta(months=2)
end = beg + rd
print beg, end, rd
# -*- coding: utf-8 -*-
"""
LICENSE: BSD (same as pandas)
example use of pandas with oracle mysql postgresql sqlite
- updated 9/18/2012 with better column name handling; couple of bug fixes.
- used ~20 times for various ETL jobs. Mostly MySQL, but some Oracle.
to do:
save/restore index (how to check table existence? just do select count(*)?),
finish odbc,
@nkabir
nkabir / gist:7200160
Created October 28, 2013 16:34
Sample ersatz for tx7
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<settings>
<setting key="rnd-drift">0.0001</setting>
<setting key="rnd-init-value">100</setting>
<setting key="count">5000</setting>
<setting key="facets">1</setting>
<setting key="deal-event-type">1</setting>
<setting key="refq">0</setting>
Vagrant::Config.run do |config|
# debug default is :headless
config.vm.boot_mode = "gui"
# the .box file
config.vm.box = "afa-chef-server"
config.vm.box_url = "/V3/base_debian/with-apt.box"
# ssh config
config.ssh.private_key_path = "afa_private_key"
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
#
# Please use absolute path, DO NOT use relative path !
#
# po4a (>= 0.36.1): Only for PO based translation !
# po4A_HOME=/usr/bin
# PO4A_LIB=/usr/share/perl5
PO4A_HOME=/usr/bin
PO4A_LIB=/usr/bin

Backend Architectures

ARCHITECTURES

ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats