I hereby claim:
- I am gozali on github.
- I am gozali (https://keybase.io/gozali) on keybase.
- I have a public key whose fingerprint is 94BA E3F1 CBEA F50C 5FE6 51FB 2CF1 B2B0 AEA6 C6A9
To claim this, I am signing this object:
#!/bin/sh | |
TABLE_SCHEMA=$1 | |
TABLE_NAME=$2 | |
mytime=`date '+%y%m%d%H%M'` | |
hostname=`hostname | tr 'A-Z' 'a-z'` | |
file_prefix="trimax$TABLE_NAME$mytime$TABLE_SCHEMA" | |
bucket_name=$file_prefix | |
splitat="4000000000" | |
bulkfiles=200 |
I hereby claim:
To claim this, I am signing this object:
namespace :docker do | |
desc "Run tasks in parallel using docker" | |
task :test do | |
forks = 4 | |
begin | |
# Start docker containers (serially, docker seems to have problems with concurrency) | |
ports = {} | |
forks.times do |i| | |
# Start redis and get the mapped port | |
`docker run -d -p 6379 -name redis#{i} yourdockeruser/redis` |
var express = require('express') | |
, mongoskin = require('mongoskin') | |
var app = express() | |
app.use(express.bodyParser()) | |
var db = mongoskin.db('localhost:27017/test', {safe:true}); | |
app.param('collectionName', function(req, res, next, collectionName){ | |
req.collection = db.collection(collectionName) |
require 'net/http' | |
require 'net/https' | |
require 'uri' | |
require 'rubygems' | |
require 'restclient' | |
DELIVERY_METHOD = 'unconfirmed' | |
BOUNDARY = 'fghjkklllmnggddcvjjkkm' | |
def push_message(pin, content, app_id, app_password, app_port) |
class Array | |
def remove(*args) | |
string_params = "" | |
args.each do |arg_item| | |
string_params += arg_item | |
end | |
flatten.collect { |k| k.delete string_params} | |
end | |
def repeat(int) |
<?php foreach(range('A','Z') as $i) echo $i; ?> |