Skip to content

Instantly share code, notes, and snippets.

View ArseniyShestakov's full-sized avatar

Arseniy Shestakov ArseniyShestakov

View GitHub Profile
@ArseniyShestakov
ArseniyShestakov / zhgun.txt
Last active July 17, 2023 21:14
Egor Zhgun - Егор Жгун - Serbia - Сербия
Egor Zhgun - Art. Lebedev Studio ... art director
Information from open company registry in Serbia:
https://poslovnabazasrbije.rs/
https://www.dnb.com/business-directory/company-profiles.egor_zhgun_pr_specijalizovane_dizajnerske_delatnosti_beograd.390c167cd9aaf2045a86ade1919e10e2.html
Егор Зхгун
пр Специјализоване дизајнерске делатности Београд 7410
@ArseniyShestakov
ArseniyShestakov / pipedream-gsheets-supabase.js
Created June 13, 2022 01:08
Pipedream: Google Sheets -> Supabase
import { axios } from "@pipedream/platform"
import { createClient } from '@supabase/supabase-js'
import qs from 'qs';
export default defineComponent({
props: {
supabase: {
type: "app",
app: "supabase",
}
},
@ArseniyShestakov
ArseniyShestakov / book-convert.py
Created September 1, 2021 17:18
Convert a book with glued pages into singular pages using PyPDF2 and MuPDF
# This script process PDF documents with inconsistent structure like this:
#
# [ PAGE 1 ] - 595x840
# [ PAGE 2 ] - 595x840
# [ PAGE 3 | PAGE 4 ] - 1191x840
# [ PAGE 5 ] - 595x840
# [ PAGE 6 | PAGE 7 ] - 1191x840
# [ PAGE 8 ] - 595x840
#
# I haven't find an easy way to trim and split single page using Python so used MuPDF instead
@ArseniyShestakov
ArseniyShestakov / README.txt
Last active May 30, 2024 10:29
Parse all emails from mail server without chaning state on server
# copy getmail config to ~/.getmail/getmailrc
# Create some temporary directories
mkdir -p /tmp/mail/cur
mkdir -p /tmp/mail/tmp
mkdir -p /tmp/mail/new
mkdir /tmp/mail/parsing
# Gather all emails
# They won't be removed from mail server and won't be marked as "read" on server since "peek" used
@ArseniyShestakov
ArseniyShestakov / variadic.cpp
Last active February 3, 2018 15:35
Variadic test v2 (shared_ptr)
// g++ variadic.cpp -std=c++11
#include <iostream>
#include <vector>
#include <memory>
struct sOne
{
void one(int i)
{
std::cout << "one " << i << "\n";
boost::optional<boost::system::error_code> read_result;
boost::asio::async_write(*socket, boost::asio::buffer(data, size), [&read_result](const boost::system::error_code& error, size_t) { read_result.reset(error); });
socket->get_io_service().reset();
while(socket->get_io_service().run_one())
{
}
@ArseniyShestakov
ArseniyShestakov / import.csv
Created September 29, 2017 13:20
Google Contacts Import test
Name Phone 1 - Type Phone 1 - Value Group Membership
Имяя Фамилия Mobile +71234567889 * My Contacts ::: TestGroup
ИмАААя ФамИИИИлия Mobile +61234567889 * My Contacts ::: TestGroup
ИмЯ Другаяфамилия Mobile +71444567889 * My Contacts ::: TestGroup
@ArseniyShestakov
ArseniyShestakov / vcmi.cfg
Last active July 12, 2017 22:44
VCMI uncrustify
# Uncrustify-0.65-86-9e66347a
#
# General options
#
# The type of line endings. Default=Auto
newlines = auto # auto/lf/crlf/cr
# The original size of tabs in the input. Default=8
@ArseniyShestakov
ArseniyShestakov / uncrustify.sh
Created July 9, 2017 08:02
Uncrustify testing script
#!/bin/bash
# Open vcmi.cfg in your favorite editor one one side and terminal on other side
# --color option only available in diffutils 3.4 (2016-08-08)
# for older version of diff use "colordiff" tool instead:
# diff -u source.cpp source.cpp.uncrustify | colordiff
VCMICFG="/home/i/UNTEST/vcmi.cfg"
SRC="/home/i/UNTEST/source.cpp"
SRCUN="/home/i/UNTEST/source.cpp.uncrustify"
SRCUNOLD="/home/i/UNTEST/source.cpp.uncrustify.old"
rm -f $SRCUN
THE 3DO COMPANY
End-User License Agreement
Software Product: Heroes of Might and Magic(R) III Demo
IMPORTANT--PLEASE READ CAREFULLY. This End-User License Agreement (the "EULA") is a legal agreement between The 3DO Company, a California corporation ("3DO") and you, the recipient of a demo copy of the 3DO software product identified above ("You"), which product includes computer software and the associated audiovisual works, and may include printed materials, and electronic or "online" documentation and/or related items (collectively, the "Software Product"). By downloading, installing, copying, or otherwise using the Software Product, You agree to be bound by the terms and conditions of this EULA. If You do not agree to all of the provisions of this EULA, do not install or copy or otherwise use the Software Product. IF YOU ARE UNDER THE AGE OF EIGHTEEN (18), PLEASE HAVE A PARENT OR GUARDIAN READ THE ENTIRE EULA PRIOR TO INSTALLING OR COPYING OR OTHERWISE USING THE SOFTWARE PRODUCT.
1. LICENSE GRANT. 3DO here