Stratum挖矿协议: 该协议是由SlushPool制定的,请参阅其官方文档:https://slushpool.com/help/manual/stratum-protocol
以下所有报文均使用\n做为行结束符。
矿机订阅:
{"id": 1, "method": "mining.subscribe", "params": []}Stratum挖矿协议: 该协议是由SlushPool制定的,请参阅其官方文档:https://slushpool.com/help/manual/stratum-protocol
以下所有报文均使用\n做为行结束符。
矿机订阅:
{"id": 1, "method": "mining.subscribe", "params": []}| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| import datetime | |
| import subprocess | |
| import time | |
| import gevent.pool | |
| import gevent.monkey |
| import asyncio | |
| import random | |
| class Hub(): | |
| def __init__(self): | |
| self.subscriptions = set() | |
| def publish(self, message): |
| import PyQt4.QtCore as q | |
| import PyQt4.QtGui as qt | |
| class BindingEndpoint(object): | |
| """ | |
| Data object that contains the triplet of: getter, setter and change notification signal, | |
| as well as the object instance and it's memory id to which the binding triplet belongs. | |
| Parameters: | |
| instance -- the object instance to which the getter, setter and changedSignal belong |
| #!/usr/bin/env python | |
| import os, time, httplib | |
| from termcolor import colored | |
| SITES = [ | |
| "www.meesters-id.nl", | |
| "www.carolsingers.nl", | |
| ] | |
| while 1: |
| from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel, QVBoxLayout, QPushButton, QWidget | |
| from PyQt5.QtCore import QObject, QRunnable, QThreadPool,pyqtSlot, pyqtSignal | |
| import time | |
| import traceback, sys | |
| class WorkerSignals(QObject): | |
| ''' | |
| Defines the signals available from a running worker thread. | |
| Supported signals are: |
| /*布隆过滤器(Bloom Filter)是1970年由Burton Howard Bloom提出的。 | |
| *它实际上是一个很长的二进制向量和一系列随机映射函数。 | |
| *布隆过滤器可以用于检索一个元素是否在一个集合中。 | |
| *它的优点是空间效率和查询时间都远远超过一般的算法,缺点是有一定的误识别率和删除困难。 | |
| */ | |
| import java.util.BitSet; | |
| public class SimpleBloomFilter { |
| package com.empireminecraft.util; | |
| import org.bukkit.Bukkit; | |
| import java.util.concurrent.ConcurrentLinkedQueue; | |
| public class TaskChain { | |
| // Tells a task it will perform call back later. | |
| public static final Object WAIT = new Object(); |