Skip to content

Instantly share code, notes, and snippets.

View gourytch's full-sized avatar

Lev V. Babchenko gourytch

  • Teracloud ApS
  • Copenhagen, Denmark
View GitHub Profile
@gourytch
gourytch / hfcalc.user.js
Last active March 2, 2017 02:45
tampermonkey script for hashflare history log parsing
// ==UserScript==
// @name HFCalc
// @description Подсчёт текущей профитности майнинга по истории
// @author Gourytch
// @license WTFPL
// @version 1.1
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// @include https://hashflare.io/panel/history
// ==/UserScript==
(function (window, undefined) {
@gourytch
gourytch / freqs.cpp
Created February 22, 2017 18:58
test work for UNIGINE class
//
// lazy quick-and-dirty solution for UNIGINE class
// made as an object for procrastination.
// about 4..5 hours of holiday was spent
// tested on g++
// usage:
// freqs infile1 [...] outfile
// # build dictionary
// # from words in all input files
// # and write result to output file
# file: /etc/apt/sources.list
# note: for Debian 8 Jessie
###############################
deb http://deb.debian.org/debian jessie main contrib non-free
deb-src http://deb.debian.org/debian jessie main contrib non-free
deb http://deb.debian.org/debian jessie-updates main contrib non-free
deb-src http://deb.debian.org/debian jessie-updates main contrib non-free
deb http://deb.debian.org/debian jessie-backports main contrib non-free
deb-src http://deb.debian.org/debian jessie-backports main contrib non-free
deb http://deb.debian.org/debian jessie-backports-sloppy main contrib non-free
#! /usr/bin/env python2.7
import subprocess
import threading
import re
import tempfile
import os
tmpdir = tempfile.mkdtemp()
luafile = tmpdir + "/dump.lua"
@gourytch
gourytch / livemap_reformatted.js
Last active July 5, 2016 05:01
livemap.js, переформатированный для удобочитаемости
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// LIVEMAP_REFORMATTED.JS
// SOURCE: http://map.playrust.io/js/rustio/livemap.js
// FORMAT: http://jsbeautifier.org/
//
/////////////////////////////////////////////////////////////////////////////////////////////////////////
function initLiveMap() {
$('#signin').click(function() {
// ==UserScript==
// @name FBCBot
// @namespace https://localhost/fbcbot
// @description freebitco.in bot
// @include https://freebitco.in/*
// @version 1
// @grant none
// @noframes
// @run-at document-idle
// ==/UserScript==
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<meta name="description" content="80x24 screen editor" />
<title>80x24 screen editor</title>
<style type="text/css">
@font-face {
font-family: "webfix";
#! /bin/bash
master_container="$HOME/Dropbox/.safe"
master_mountpoint="$HOME/safe"
keyfile="$HOME/.keys/encfs-safe"
mount_master() {
echo "* mounting master cryptocontainer..."
if [ ! -d "$master_container" ]
@gourytch
gourytch / calenserv.go
Created March 10, 2016 15:27
Simple Calenar
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"time"
)
#! /bin/bash
# prepumdu.sh -- # prepare usermodded debootstapped ubuntu
# using debootstrap, fakeroot, fakechroot
#
# usage:
# arch=amd64 \
# suite="trusty" \
# mirror="http://ru.archive.ubuntu.com/ubuntu" \
# proxy="http://proxy.mine:3128/" \