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 / gourbot.go
Created January 18, 2016 02:49
small telegram bot example for golang
// test new bot api
// start it as:
// gourbot "token:forBot"
// or
// BOT_TOKEN="token:forBot" gourbot
//
package main
import (
@gourytch
gourytch / kalaha.cxx
Created March 26, 2023 16:27
a quick-n-dirty implementation of game kalaha (mancala)
#include <cstdio>
#include <cstdint>
#include <cstdlib>
#include <ctime>
#include <array>
#include <algorithm>
#include <string>
#include <sstream>
#include <vector>
#include <cassert>
// ==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==
@gourytch
gourytch / Dockerfile
Last active January 22, 2021 23:13
build pgmodeller to the /opt/pgmodeler directory
ARG CODENAME=focal
ARG INSTALLATION_ROOT="/opt/pgmodeler"
FROM ubuntu:${CODENAME} as build
ARG CODENAME
ARG INSTALLATION_ROOT
ENV CODENAME="${CODENAME}"
ENV INSTALLATION_ROOT="/opt/pgmodeler"
#! /bin/sh
set -e
set -x
name='Bitradio'
branch='master'
with_incompatible_bdb=0
patch_atomic_pointer=0 #1
DEBIAN_FRONTEND=noninteractive apt-get install -y \
@gourytch
gourytch / start-tg-instance.sh
Created April 15, 2019 18:42
launch separate Telegram instance from /snap
#! /bin/sh
set -e
set -x
ulimit -v 4000000
ulimit -c 2000000
export BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/telegram-desktop_telegramdesktop.desktop
telegram="/snap/bin/telegram-desktop"
@gourytch
gourytch / wotlk_macros.txt
Last active April 1, 2019 21:22
My WotLK macroses
#
# Druid
####################################################################
# shift shape to bear and start attack
#showtooltip
/cast [nostance:1] !Облик медведя
/stopmacro [noexists][noharm][dead]
/cast Рык
@gourytch
gourytch / sirus_create.cmd
Created January 16, 2019 16:55
Create WoW Linked Environment for new sirus account
@echo off
SET "name_uc=%1"
SET "name_lc=%1"
setlocal EnableDelayedExpansion
for %%b in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do set "name_uc=!name_uc:%%b=%%b!"
for %%b in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do set "name_lc=!name_lc:%%b=%%b!"
SET REF=c:\toys\wow-sirus
SET DST=c:\toys\sirus-%name_lc%
@gourytch
gourytch / coinbrawl.user.js
Last active September 12, 2018 00:02
simple automation for https://www.coinbrawl.com/
// ==UserScript==
// @name CoinBrawlAutomaton
// @description Вкачиваем натыренное золото по статам
// @author Gourytch
// @license WTFPL
// @version 1.1
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// @include https://coinbrawl.com/*
// @include https://www.coinbrawl.com/*
// @grant GM_getValue
# 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