- https://github.com/UNOMP/unified-node-open-mining-portal
- Platform:
- Main: NodeJS
- Stratum: NodeJS (node-merged-pool)
- Web: NodeJS
- Database: Redis
- Pros:
- A lot of focus on security and attack guard features are implemented by default.
- Scalable and efficient pool manager.
This file contains hidden or 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
GCDWebServer *_webServer = [[GCDWebServer alloc] init]; | |
[_webServer addDefaultHandlerForMethod:@"GET" | |
requestClass:[GCDWebServerRequest class] | |
processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) { | |
GCDWebServerDataResponse *response = [GCDWebServerDataResponse responseWithHTML:@"true"]; | |
[response setValue:@"*" forAdditionalHeader:@"Access-Control-Allow-Origin"]; | |
[response setValue:@"X-Requested-With, Content-Type" forAdditionalHeader:@"Access-Control-Allow-Headers"]; | |
[response setValue:@"GET, POST, OPTIONS" forAdditionalHeader:@"Access-Control-Allow-Methods"]; |
These instructions are based on this article: https://www.alexruf.net/2016/05/23/setup-gogs-git-service.html.
Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:
sudo raspi-config
There you need to enable the SSH server and you should change the hostname.
This file contains hidden or 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 android.os.Build; | |
import java.lang.reflect.Method; | |
public class Device { | |
/** | |
* @return The device's serial number, visible to the user in {@code Settings > About phone/tablet/device > Status | |
* > Serial number}, or {@code null} if the serial number couldn't be found | |
*/ | |
public static String getSerialNumber() { |
This file contains hidden or 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
# ARN - arn:aws:lambda:us-east-2:750303481583:function:DoverCodeCommitLambdaFunction_allEvents | |
import json | |
import boto3 | |
from datetime import datetime as dt | |
from string import split | |
codecommit = boto3.client('codecommit') | |
sns = boto3.client('sns') |
This file contains hidden or 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
Select the whole column | |
Data > Filter > Standard Filter | |
Change 'Field Name' to -none- , click on 'More options' and check on 'No duplication' box | |
Source: http://superuser.com/questions/238656/openoffice-get-distinct-values-from-column |
This file contains hidden or 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
""" | |
a simple stop loss bot. | |
adjust STOP_PRICE and STOP_VOLUME to your needs. | |
The file can be reloaded after editing without | |
restarting goxtool by simply pressing the l key. | |
""" | |
import strategy | |
import goxapi | |
# pylint: disable=C0301 |
This file contains hidden or 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/python | |
"""Module for pulling contacts out of Google and storing them to disk | |
(or something). | |
See the official guide for a more in-depth look at GData Python | |
http://code.google.com/apis/contacts/docs/1.0/developers_guide_python.html | |
""" | |
import atom |
NewerOlder