Skip to content

Instantly share code, notes, and snippets.

View tfoldi's full-sized avatar

Földi Tamás tfoldi

View GitHub Profile
@tfoldi
tfoldi / Makefile
Created September 15, 2010 12:46
Greenplum MapReduce function written in C language
wordcount:
cc -g -ggdb -shared -o wordcount.so wordcount.c -I`pg_config --includedir-server` -I`pg_config --pkgincludedir`/internal -I`pg_config --pkgincludedir` -fPIC
%YAML 1.1
---
VERSION: 1.0.0.1
DEFINE:
- INPUT:
NAME: book
FILE:
# change seghostname and file_path to reflect your
# runtime file location
CREATE OR REPLACE PACKAGE BODY ISZMETL.etl_employee IS
PROCEDURE main( p_params param_list DEFAULT NULL ) IS
v_params obj_param := iszmk.obj_param( p_plist => p_params );
v_logger obj_logger;
v_stmt VARCHAR2( 100 );
BEGIN
/*** AUTOMATICALLY GENERATED PROCEDURE ***/
/*** DO NOT CHANGE IT ***/
v_start_date := sysdate;
@tfoldi
tfoldi / yxlan_cron.rb
Created May 18, 2010 10:49
smbclient based sync between windows and unix
#!/usr/bin/ruby
#
# Foldi Tamas <tfoldi@xsi.hu>, BSDL
require "yaml"
# read configuration
@yxlan_dir = File.dirname($0) + "/../"
@conf = YAML::load_file( @yxlan_dir + 'etc/yxlon.conf' )
@filename = @yxlan_dir + "log/yxlon_cron.log"
@tfoldi
tfoldi / t__keyspace.cpp
Created May 2, 2010 11:17
Test cases for memcached vs keyspaced comparsion
#include <codesloop/common/test_timer.h>
#include <codesloop/common/logger.hh>
#include <codesloop/common/common.h>
#include <keyspace_client.h>
#include <assert.h>
#include <vector>