This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import "@openzeppelin/contracts/utils/math/SafeMath.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract BulkSender is Ownable { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG version=1.14.4 | |
ARG file=dogecoin-${version}-x86_64-linux-gnu.tar.gz | |
ARG folder=dogecoin-${version} | |
FROM debian:stable as stage1 | |
ARG version | |
ARG file | |
ARG folder | |
WORKDIR /the/workdir | |
RUN apt update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Usage: ./docker-build.sh </dir/to/dockerfile> <remote-registry-prefix> | |
# | |
# Example: ./docker-build.sh node-agent-service 10.0.1.16:5000/inaetics | |
# | |
# needs docker command (v1.3 or later) in order to work. | |
# | |
# (C) 2015 - jawi - licensed under Apache Public License v2. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
blockbook: | |
container_name: blockbook | |
restart: always | |
build: . | |
entrypoint: | |
- /go/src/blockbook/blockbook | |
- -sync | |
- -blockchaincfg=/home/blockbook/cfg/cfg.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
import random | |
import sys | |
import math | |
import hashlib | |
import hmac | |
import requests | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//solidity 6.12 | |
pragma solidity >=0.6.0 <0.8.0; | |
/* | |
* @dev Provides information about the current execution context, including the | |
* sender of the transaction and its data. While these are generally available | |
* via msg.sender and msg.data, they should not be accessed in such a direct | |
* manner, since when dealing with GSN meta-transactions the account sending and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python3 | |
import collections | |
import statistics | |
import sys | |
import requests | |
import base58 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*Submitted for verification at BscScan.com on 2021-05-18 | |
*/ | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.2; | |
abstract contract Context { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//sol Wallet | |
// Multi-sig, daily-limited account proxy/wallet. | |
// @authors: | |
// Gav Wood <[email protected]> | |
// inheritable "property" contract that enables methods to be protected by requiring the acquiescence of either a | |
// single, or, crucially, each of a number of, designated owners. | |
// usage: | |
// use modifiers onlyowner (just own owned) or onlymanyowners(hash), whereby the same hash must be provided by | |
// some number (specified in constructor) of the set of owners (specified in the constructor, modifiable) before the | |
// interior is executed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -d \ | |
--name watchtower \ | |
-e WATCHTOWER_NOTIFICATIONS_LEVEL=info \ | |
-e WATCHTOWER_NOTIFICATIONS=slack \ | |
-e WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL="hook-url" \ | |
-v ~/.docker/config.json:/config.json \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
containrrr/watchtower -i 60 |