Skip to content

Instantly share code, notes, and snippets.

Roman Mirr romiras

  • Israel
Block or report user

Report or block romiras

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
romiras / Gemfile
Created May 8, 2019
EventMachine async URL fetcher
View Gemfile
source ""
gem 'eventmachine'
gem 'em-http-request'
romiras / dictionary-gnu-sort-bd.txt
Last active Jan 1, 2020 — forked from klauspost/dictionary-sorted.txt
Brotli dictionary - printed escaped - sorted with "sort -bd" (with dictionary order, ignoring blanks), a tool from GNU coreutils
View dictionary-gnu-sort-bd.txt
romiras / ebk_decrypter.rb
Last active Sep 16, 2019
EBK backup extraction scripts
View ebk_decrypter.rb
# Note: KIES_KEY and KIES_IV must be passed as environment variables for work.
require 'openssl'
cipher =
cipher.key = ENV['KIES_KEY']
romiras /
Created Jan 14, 2017
ReZip - tool for recompression Zip files, used to efficiently store in SCM
#!/usr/bin/env python3
"""Read zip format file from stdin and write new zip to stdout.
With the --store option the output will be an uncompressed zip.
Uncompressed files are stored more efficiently in VCS.
python --store < file.docx > file.flat.docx
Based on
romiras / simple_fuzzy_match.rb
Created Dec 30, 2016
Simple function for fuzzy string match
View simple_fuzzy_match.rb
require 'active_support/all' # mb_chars
def simple_fuzzy_match(s1, s2)
levenshtein_distance( normalize_str(s1), normalize_str(s2) ) < 2
def normalize_str(s)
mb_chars. # convert to multibyte string (ActiveSupport::Multibyte::Chars) - required in Ruby version below 2.4
downcase. # lower case for all characters
romiras /
Created Jan 13, 2016
TestDLL.exe - console program for testing DLL dependencies. Usage: testdll.exe libcairo-2.dll
# Project: TestDLL
# Makefile created by Dev-C++ 5.5.1
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
OBJ = main.o
LINKOBJ = main.o
LIBS = -L"C:/Program Files/Development/Dev-Cpp/MinGW32/lib" -L"C:/Program Files/Development/Dev-Cpp/MinGW32/mingw32/lib" -static-libstdc++ -static-libgcc
INCS = -I"C:/Program Files/Development/Dev-Cpp/MinGW32/include"
romiras / my.conf
Created Oct 20, 2015
Redmine, DokuWiki, ownCloud - powered by NGINX with PHP5-FPM & Passenger
View my.conf
upstream php-handler {
# server unix:/var/run/php5-fpm.sock;
server {
listen 80;
server_name localhost;
root /var/www;
romiras /
Created Jul 16, 2015
Full system backup with dar
# Full system backup with dar. Refer to
## Configuration
# path to store dar backup files
# name of system
SysName=Ubuntu_`. /etc/os-release; echo ${VERSION_ID/*, /}`
romiras / gpipeview.c
Created May 11, 2015
GTK+ pipe viewer
View gpipeview.c
Simple GTK+ pipe viewer
Contributors: Romiras
Based on paned.c
#include <stdio.h>
#include <unistd.h>
#include <gtk/gtk.h>
romiras / backup.rake
Last active Aug 29, 2015 — forked from stevebartholomew/gist:50180
MySQL backup rake task for Rails 2.3.x
View backup.rake
# put this file into directory <RAILS_ROOT>/lib/tasks
namespace :db do
desc "Backup database"
task :backup do
RAILS_ENV = "development" if !defined?(RAILS_ENV)
settings = YAML.load(, "config", "database.yml")))[RAILS_ENV]
bak_dir = ENV['BAK_DIR']
raise(RuntimeError, "==> Error: environment variable BAK_DIR not set.") if bak_dir.blank?
extra_parameters = ["--default-character-set=utf8"]
You can’t perform that action at this time.