Skip to content

Instantly share code, notes, and snippets.

View Jeff-Bouchard's full-sized avatar

Jeff Bouchard Jeff-Bouchard

View GitHub Profile
@gusar1991
gusar1991 / emerRPCdriver.py
Created May 24, 2018 12:58
Emercoin json-rpc simple python driver
import json
import requests
class EmercoinClient(object):
def __init__(self,
user='rpcuser from emercoin.conf',
password='rpcpassword from emercoin.conf',
protocol='http',
host='hostname or IP where EMC is running',
@blizko
blizko / emercoin-raspberry.txt
Created May 10, 2018 16:44
Emercoin ARM Raspbery PI Build
# Get the latest Jessie Image (http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-07-05/2017-07-05-raspbian-jessie-lite.zip)
# Stretch images could fail and require additional magic. At time of writing Emercoind didn't like the default libboost and libssl-dev versions that come in Stretch.
# Check for more - http://downloads.raspberrypi.org/raspbian_lite/images/
# Install System to SD Card
# There could be issues with boot. Check link - https://www.raspberrypi.org/forums/viewtopic.php?t=138163
git clone https://github.com/raspberrypi/firmware --depth=1
# Replace all boot partition contents.
# On successfull boot on the RPI:
@blizko
blizko / emercoin-openwrt-cross.txt
Created May 10, 2018 16:33
Emercoin OpenWRT Cross-Compile Build
# Before Build - check Endianness of your target system. Haven't managed to get it working on Big-Endian with TP-Link TL1043-ND (Some notes in code have clues that it is not possible)
# As from https://github.com/corsis/PortFusion/wiki/MIPS-Builds
$ echo -n I | hexdump -o | awk '{ print substr($2,6,1); exit}'
# 0 = big-endian
# 1 = little-endian
apt-get install build-essential ncurses-dev unzip python zlib1g-dev autoconf libtool pkg-config libssl-dev subversion
# Idea Source - http://telecnatron.com/articles/Cross-Compiling-For-OpenWRT-On-Linux/index.html
@azhuravlov
azhuravlov / emercoin.js
Last active August 30, 2024 21:23
Emercoin + NodeJS
'use strict';
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
function Connection(username, password, hostname, port, protocol) {
let _this = this;
_this.username = username;
_this.password = password;
_this.hostname = hostname ? hostname : '127.0.0.1';