This file contains 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
# awesome-rest | |
#https://github.com/marmelab/awesome-rest |
This file contains 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
SSH VPN using pure python and openssh-client/server | |
Server configurations: | |
* Enable ip forwarding. (linux: /etc/sysctl.conf) | |
* Enable tunnel in openssh server config file: $ echo "PermitTunnel yes" >> /etc/ssh/sshd_config |
This file contains 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
""" | |
Some kind of transparent proxy to implement `singleton` beautifully. | |
Thanks to: | |
* @pylover | |
* https://github.com/pylover/pymlconf (again @pylover!) | |
Usage: |
This file contains 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 iptables -I INPUT -p tcp --dport 1723 -m state --state NEW -j ACCEPT | |
sudo iptables -I INPUT -p gre -j ACCEPT | |
sudo iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE | |
sudo iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -s 172.20.1.0/24 -j TCPMSS --clamp-mss-to-pmtu | |
sudo iptables-save |
This file contains 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
# Claymore | |
./ethdcrminer64 -epool 1.2.3.4:8008 -ewal 0xb9bb0781f80132c08f5bcf933d8d9c7cb9c37d69 -eworker zeusGPU -epsw x -mode 1 -ftime 10 -allpools 1 -esm 0 | |
# Ethminer | |
./ethminer -F http://185.105.186.125:8888/0xD69af2A796A737A103F12d2f0BCC563a13900E6F/salam -G |
This file contains 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
{ | |
"linkReferences": {}, | |
"object": "606060405234156200001057600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040805190810160405280600381526020017f5052460000000000000000000000000000000000000000000000000000000000815250600290805190602001906200009d929190620001f6565b506040805190810160405280600d81526020017f5065726665637420546f6b656e0000000000000000000000000000000000000081525060039080519060200190620000eb929190620001f6565b506012600460006101000a81548160ff021916908360ff1602179055506a52b7d2dcc80cd2e400000060058190555060055460066000736884b21c7823748481db007c7eed00054ba9f70773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550736884b21c7823748481db007c7eed00054ba9f70773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60055460405180828152602001915050604051809 |
This file contains 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
import json | |
import requests | |
""" | |
Created by @mahdi13 | |
The RPC HTTP API client of viabtc exchange server (https://github.com/viabtc/viabtc_exchange_server) | |
Reference: https://github.com/viabtc/viabtc_exchange_server/wiki/HTTP-Protocol |
This file contains 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
import random | |
import time | |
class Market: | |
def __init__(self): | |
self.time = 0 | |
self.change = 0.0 | |
self.market_price = 10000.0 |
This file contains 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.6' | |
services: | |
btrader_usdt: | |
image: gabrielmilan/btrader:latest | |
container_name: btrader_usdt | |
volumes: | |
- ./config_usdt.json:/config.json:ro | |
network_mode: "host" | |
command: /bin/sh -c "sleep 0 && btrader /config.json" |
This file contains 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
import hashlib | |
import json | |
import os | |
import requests | |
import urllib3 | |
class CafeBazaarClient: |
OlderNewer