Skip to content

Instantly share code, notes, and snippets.

🏝
I'm still working on my masterpiece

Mahdi Perfect mahdi13

🏝
I'm still working on my masterpiece
Block or report user

Report or block mahdi13

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ViaBtcExchangeHttpClient.py
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
View perfect-token.bytecode
{
"linkReferences": {},
"object": "606060405234156200001057600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040805190810160405280600381526020017f5052460000000000000000000000000000000000000000000000000000000000815250600290805190602001906200009d929190620001f6565b506040805190810160405280600d81526020017f5065726665637420546f6b656e0000000000000000000000000000000000000081525060039080519060200190620000eb929190620001f6565b506012600460006101000a81548160ff021916908360ff1602179055506a52b7d2dcc80cd2e400000060058190555060055460066000736884b21c7823748481db007c7eed00054ba9f70773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550736884b21c7823748481db007c7eed00054ba9f70773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60055460405180828152602001915050604051809
@mahdi13
mahdi13 / gist:61729ac2e0236520dbc25ead7753cb98
Created Jan 23, 2018
open-ethereum-pool mining software commands
View gist:61729ac2e0236520dbc25ead7753cb98
# 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
View pptpd-ip-routs
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
@mahdi13
mahdi13 / object_proxy.py
Last active Dec 3, 2017
Some kind of transparent proxy to implement `singleton` beautifully
View object_proxy.py
"""
Some kind of transparent proxy to implement `singleton` beautifully.
Thanks to:
* @pylover
* https://github.com/pylover/pymlconf (again @pylover!)
Usage:
@mahdi13
mahdi13 / ssh-vpn.py
Created Aug 6, 2017 — forked from pylover/ssh-vpn.py
Python script to make layer 3 VPN using openssh
View ssh-vpn.py
#!/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
You can’t perform that action at this time.