Skip to content

Instantly share code, notes, and snippets.


Arseniy Shestakov ArseniyShestakov

View GitHub Profile
ArseniyShestakov / README.txt
Last active Mar 10, 2020
Parse all emails from mail server without chaning state on server
View README.txt
# 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 / variadic.cpp
Last active Feb 3, 2018
Variadic test v2 (shared_ptr)
View variadic.cpp
// g++ variadic.cpp -std=c++11
#include <iostream>
#include <vector>
#include <memory>
struct sOne
void one(int i)
std::cout << "one " << i << "\n";
View newcode.cpp
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); });
ArseniyShestakov / import.csv
Created Sep 29, 2017
Google Contacts Import test
View import.csv
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 / vcmi.cfg
Last active Jul 12, 2017
VCMI uncrustify
View vcmi.cfg
# 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 /
Created Jul 9, 2017
Uncrustify testing script
# 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
rm -f $SRCUN
View H3_RoE_demo_EULA.txt
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.
ArseniyShestakov / 0_reuse_code.js
Created May 12, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
ArseniyShestakov / test.go
Last active Mar 20, 2017
VCMI automated testing PoC
View test.go
package main
import (
View gist:bdd6ca7436ecc2c99b102ae723c36453
define('TAB', ' ');
$pizz = array(
"30cm" => "",
"40cm" => "",
"12" => "",
"to" => "",
"it" => ""