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
#!/usr/bin/env python
import sys
import boto3
import time
import re
import json
backup_time = time.strftime('%Y%m%d%M%H%S')
backup_bucket = 'iflix-backup-acl'
#!/usr/bin/env python
import sys
import boto3
import random
from colorama import Fore, init
s3 = boto3.client('s3')
View Check TI connection to
#!/bin/bash -x
# 1. run as `$0 get-nodes a`
# 2. pick one node and `kubectl describe node ...`
# 3. pick a pod and run `$0 connection <namespace> <pod_name>`
case $1 in
# second param is AV zone = a/b/c
kubectl get node -l${2},nodetype=interactive
View build_query.js
const format = require('pg-format')
var filter = [
c: "id",
o: "=",
v: "1"
c: "name",
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 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;
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)
You can’t perform that action at this time.