Skip to content

Instantly share code, notes, and snippets.

Jakub Román jakub-roman

Block or report user

Report or block jakub-roman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View python-redis
#!/usr/bin/env python
import redis
import time
import random, string
from os import getenv
r_host = getenv('HOST', 'localhost')
r_port = getenv('PORT', '6379')
r = redis.StrictRedis(host=r_host, port=r_port)
View express.js
var express = require('express')
var app = express()
var pug = require('pug')
var fs = require('fs')
var bp = require('body-parser')
const config = './config.json'
const timeout = 300 // 5mins
app.use(bp.urlencoded({ extended: false }))
View build_query.js
const format = require('pg-format')
var filter = [
{
c: "id",
o: "=",
v: "1"
},
{
c: "name",
View perl-redis
#!/usr/bin/env perl
use strict;
use warnings;
use Redis;
use Data::Dumper;
use Time::HiRes qw/time/;
my $r = Redis->new();
my $num = 10000;
You can’t perform that action at this time.