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 |
| #!/bin/bash | |
| # chkconfig: 2345 10 90 | |
| # description: activemq .... | |
| prog=tomcat | |
| JAVA_HOME=/usr/local/java/jdk1.7.0_25 | |
| export JAVA_HOME | |
| CATALANA_HOME=/home/activemq | |
| export CATALINA_HOME | |
| case "$1" in | |
| start) |
| import wmi | |
| c = wmi.WMI() | |
| #获取主板序列号 | |
| print(hashlib.md5(c.Win32_BaseBoard()[0].SerialNumber.strip().encode(encoding='UTF-8')).hexdigest()) |
| #!/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: |
| from PyQt5.QtCore import QPropertyAnimation, QRectF, QSize, Qt, pyqtProperty | |
| from PyQt5.QtGui import QPainter | |
| from PyQt5.QtWidgets import ( | |
| QAbstractButton, | |
| QApplication, | |
| QHBoxLayout, | |
| QSizePolicy, | |
| QWidget, | |
| ) |