Skip to content

Instantly share code, notes, and snippets.

View artyomLisovskij's full-sized avatar
🙌
never judge someone without knowing the whole story

Artyom Lisovskii artyomLisovskij

🙌
never judge someone without knowing the whole story
  • Togliatti, Russia
View GitHub Profile
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.7;
contract Multisig {
mapping (uint256 => address) private votersIds;
mapping (address => bool) private voters;
uint256 private _votersCounter;
uint256 private _activeVoters;
struct VoterRequest{
@artyomLisovskij
artyomLisovskij / README.rst
Created April 21, 2020 23:23 — forked from pigeonflight/README.rst
Script to mount hetzner backup space

Setup

All commands here are run as root Install sshfs and autofs :

apt-get update
apt-get install sshfs autofs

Ensure you have an ssh key:

@artyomLisovskij
artyomLisovskij / SOSToken.sol
Last active July 10, 2019 07:46
SOSToken was made to take ETH for charity. i.e. to help people in Irkutsk, Russia
pragma solidity ^0.5.10;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
"""
Order copier
"""
# API key основного аккаунта
API_KEY = '69eQkHl0R0vgPod21c3XjQsT'
API_SECRET = 'EFAHxtJiOVYHSWa_HPtLAW50GpV31G_2GVSdm1gBZKH85Ltv'
# Список API ключей куда нужно транслировать ордера
API_KYES = ['hLlWHxkqxs42g-WeEt1_wC20']
@artyomLisovskij
artyomLisovskij / q.sql
Created October 2, 2018 09:31
SQL select all wp*_post wildcard tables from multiple databases
SELECT CONCAT('UPDATE ', `TABLE_SCHEMA`, '.', `TABLE_NAME`, ' SET post_content = REPLACE (post_content, "<script src=\'https://cdn.examhome.net/cdn.js?ver=1.0.5\' type=\'text/javascript\'></script>", " ")') FROM `TABLES` WHERE `TABLE_NAME` LIKE '%_posts'
pragma solidity ^0.4.18;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@artyomLisovskij
artyomLisovskij / dmnt.sol
Last active July 10, 2018 05:35
dominant
pragma solidity ^0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
pragma solidity ^0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;