- Create your bot with botfather
- Make you bot an admin of your channel
Go to Telegram web and open a channel, get the ID from -[channel id] from hash in the path
https://web.telegram.org/k/#-9999999999999
key = Eth::Key.new(priv: YOUR_PRIVATE_KEY) | |
client = Ethereum::HttpClient.new(...) | |
client.default_account = key.address | |
contract = Ethereum::Contract.create(...) | |
contract.key = key |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetBucketLocation", | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": "arn:aws:s3:::*" |
# veoCL pool failover script by Overcooked Panda | |
# | |
# Enter your default pool at the bottom, enter secondary pool on Line 39 | |
# Set the value for 'timeout' to kill the miner and check default pool. | |
# | |
# Use at your own risk, and good luck! | |
######################################################################### | |
# Original snippet from phs on stackoverflow. | |
# | |
# Retries a command a configurable number of times with backoff. |
#!/usr/bin/ruby | |
# wol.rb: sends out a magic packet to wake up your PC | |
# | |
# Copyright (c) 2004 zunda <zunda at freeshell.org> | |
# Modified by scharfie <scharfie at gmail dot com> | |
# | |
# This program is free software. You can re-distribute and/or | |
# modify this program under the same terms of ruby itself --- | |
# Ruby Distribution License or GNU General Public License. | |
# |
#!/bin/bash | |
# INSTALL DOCKER | |
### Update the apt package index: | |
sudo apt-get update | |
### Install packages to allow apt to use a repository over HTTPS: | |
sudo apt-get install \ | |
apt-transport-https \ |
# build stage | |
FROM golang:alpine AS build-env | |
ADD . /src | |
RUN cd /src && go build -o goapp | |
# final stage | |
FROM alpine | |
WORKDIR /app | |
COPY --from=build-env /src/goapp /app/ | |
ENTRYPOINT ./goapp |
#!/bin/bash | |
# Example for the Docker Hub V2 API | |
# Returns all imagas and tags associated with a Docker Hub user account. | |
# Requires 'jq': https://stedolan.github.io/jq/ | |
# set username and password | |
UNAME="" | |
UPASS="" |
EthMan uses raw TCP/IP connections (not HTTP) for remote management and statistics. Optionally, "psw" field is added to requests is the password for remote management is set for miner. The following commands are available (JSON format):
REQUEST:
{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}
RESPONSE: