Skip to content

Instantly share code, notes, and snippets.

View vyorkin's full-sized avatar
❤️‍🔥

Vasiliy Yorkin vyorkin

❤️‍🔥
View GitHub Profile
* https://habrahabr.ru/post/212323/
* http://eax.me/burnout/
* http://blogerator.ru/page/pochemu-vsjo-taki-ne-stoit-programmirovat-po-nocham-zdorovie-melatonin-rabota-nochju-rak-bolezni-programmista
* https://megamozg.ru/post/3692/
* https://megamozg.ru/post/3694/
* https://habrahabr.ru/post/239793/
* https://habrahabr.ru/company/edison/blog/268977/
* https://geektimes.ru/post/262344/
burnout prevention: https://gist.github.com/ypetya/7a9f4ed3621c3c20a762
@vyorkin
vyorkin / zathurarc
Created March 6, 2022 09:32
zathurarc
set selection-clipboard clipboard
set statusbar-h-padding 0
set statusbar-v-padding 0
set smooth-scroll true
set statusbar-home-tilde true
set page-padding 1
map u scroll half-up
map d scroll half-down
map D toggle_page_mode
@vyorkin
vyorkin / crates.md
Created July 12, 2021 10:32
Substrate & Cumulus crates cheat sheet
  • sp - Substrate Primitives

  • sc - Substrate Client

  • sp-api - Substrate runtime API

  • sp-consensus - Common utilities for building and using consensus engines in Substrate

  • sp-consensus-aura - Primitives for Aura PoA consensus engine

  • sc-consensus-aura - Client primitives for Aura PoA consensus engine

  • sp-core - Shareable Substrate types

  • sp-finality-grandpa - Primitives for GRANDPA integration, suitable for WASM compilation

  • sp-runtime - Runtime Modules shared primitive types

sequenceDiagram
    actor A as Attacker
    participant E as Exploit
    participant F as FlashLoaner
    participant R as TheRewarder
    participant rTKN
    participant DVT
    participant RWT
    Note left of E: wait 5 days for the next round
@vyorkin
vyorkin / contracts...Bank.sol
Created March 9, 2022 16:12
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.12+commit.f00d7308.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
contract Bank {
mapping(address => uint) public balances;
Logger logger;
constructor(Logger _logger) {
logger = Logger(_logger);
}
@vyorkin
vyorkin / contracts...Mal.sol
Created March 9, 2022 12:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.12+commit.f00d7308.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
contract Foo {
Bar bar;
constructor(address _bar) {
bar = Bar(_bar);
}
@vyorkin
vyorkin / contracts...Wallet.sol
Created March 9, 2022 11:11
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.12+commit.f00d7308.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
contract Wallet {
address public owner;
constructor() payable {
owner = msg.sender;
}
@vyorkin
vyorkin / contracts...Wallet.sol
Created March 9, 2022 11:08
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.12+commit.f00d7308.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
contract Wallet {
address public owner;
constructor() payable {
owner = msg.sender;
}
@vyorkin
vyorkin / .deps...remix-tests...remix_accounts.sol
Created March 9, 2022 10:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.12+commit.f00d7308.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;
@vyorkin
vyorkin / .deps...remix-tests...remix_accounts.sol
Created March 9, 2022 10:20
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.12+commit.f00d7308.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;