Skip to content

Instantly share code, notes, and snippets.

View ArseniyShestakov's full-sized avatar

Arseniy Shestakov ArseniyShestakov

View GitHub Profile
@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
@ArseniyShestakov
ArseniyShestakov / 0_reuse_code.js
Created May 12, 2017 20:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ArseniyShestakov
ArseniyShestakov / test.go
Last active March 20, 2017 02:22
VCMI automated testing PoC
package main
import (
"fmt"
_"flag"
_"time"
"strings"
"compress/gzip"
"io/ioutil"
"path/filepath"
@ArseniyShestakov
ArseniyShestakov / gist:bdd6ca7436ecc2c99b102ae723c36453
Created March 19, 2017 20:02
Just random website price parser
<?php
define('TAB', ' ');
$pizz = array(
"30cm" => "http://www.pizzmaster.ru/shop/pizza-30sm",
"40cm" => "http://www.pizzmaster.ru/shop/pizza-40sm",
"12" => "http://www.pizzmaster.ru/shop/polovinka-pizz",
"to" => "http://www.pizzmaster.ru/shop/picca-40sm-na-tonkom-korzhe",
"it" => "http://www.pizzmaster.ru/shop/picca-40sm-na-italjanskom-teste"
);
@ArseniyShestakov
ArseniyShestakov / knigi.php
Created November 27, 2016 23:44
Some crappy parser in php
<meta name="referrer" content="no-referrer" />
<form action="mAx-knigi.php" method="post">
URL: <input type="text" name="url"><br>
<input type="submit" value="Submit">
</form><br><br>
<?php
if(isset($_POST['url']) && strlen($_POST['url']) > 10)
{
$url = parse_url($_POST['url'], PHP_URL_PATH);
$page = file_get_contents('https://domain/'.$url);
@ArseniyShestakov
ArseniyShestakov / 0_README.txt
Created September 29, 2016 22:02
VCMI Deploy scripts
# as root
sudo -i
mkdir /opt/vcmi/
# Then copy files and set execution permissions
chmod +x /opt/vcmi/switchFiles.sh
chmod +x /opt/vcmi/changeLinks.sh
# Run this one as root:
/opt/vcmi/switchFiles.sh
@ArseniyShestakov
ArseniyShestakov / add.sh
Last active August 25, 2023 14:14
My compiler alternatives
# Cleanup old alternatives
update-alternatives --remove-all cc
update-alternatives --remove-all c++
update-alternatives --remove-all gcc
update-alternatives --remove-all g++
update-alternatives --remove-all clang
update-alternatives --remove-all clang++
update-alternatives --remove-all icc
update-alternatives --remove-all icc++
@ArseniyShestakov
ArseniyShestakov / README.txt
Created September 12, 2016 00:45
VCMI Duel mode minimal config
Source:
http://wiki.vcmi.eu/index.php?title=Opis_zadania_%E2%80%94_bitewne_AI_dla_VCMI
@ArseniyShestakov
ArseniyShestakov / FOOTER.html
Last active June 14, 2022 03:29
VCMI daily builds Nginx config