Skip to content

Instantly share code, notes, and snippets.

View rredkovich's full-sized avatar

rredkovich

  • Shoeboxsolutions AB
  • Bratislava, Slovakia
View GitHub Profile
@rredkovich
rredkovich / mongo_queue.py
Created May 27, 2018 14:33
python tornado queue task consuming in parallel
import time
import logging
from tornado import queues, gen, ioloop
from tornado.options import parse_command_line
QUEUE_SIZE = 4
CONCURRENT = 2
@rredkovich
rredkovich / runSaga-example.js
Last active January 6, 2018 22:12
redx-saga runSaga example
import { downloadFile } from '../sagas';
// strore should be created at this point
const forceLoadFile = (url) => {
runSaga({'dispatch': store.dispatch,
// 'subscribe': null,
'getState': store.getState,
'context': null,
// 'sagaMonitor': null,
// 'logger': null,
@rredkovich
rredkovich / .emacs
Last active June 14, 2016 07:33
with elpy and OsX 10.11 El Capitan fix
(setq inhibit-startup-message t)
(tool-bar-mode -1)
(hl-line-mode )
(require 'package)
(push '("marmalade" . "http://marmalade-repo.org/packages/")
package-archives )
(push '("melpa" . "http://melpa.milkbox.net/packages/")
package-archives)
(package-initialize)
(elpy-enable)
@rredkovich
rredkovich / .emacs
Created July 25, 2015 11:06
emacs config with python tools (anaconda, company)
(setq inhibit-startup-message t)
(tool-bar-mode -1)
(hl-line-mode )
(require 'package)
(push '("marmalade" . "http://marmalade-repo.org/packages/")
package-archives )
(push '("melpa" . "http://melpa.milkbox.net/packages/")
package-archives)
(package-initialize)
(require 'evil)
#! /bin/bash
#
# backup_redmine.sh
# modified by redkovich@gmail.com
# from https://gist.github.com/ronanguilloux/6497272
#
# Distributed under terms of the MIT license.
# /var/backups/redmine should exist
# $REDMINE_HOME/backups should also exist