Skip to content

Instantly share code, notes, and snippets.

View Netherdrake's full-sized avatar
🚀
Trying not to waste too many epochs

furion Netherdrake

🚀
Trying not to waste too many epochs
  • 127.0.0.1
View GitHub Profile
# updates
sudo apt update
sudo apt upgrade -y
sudo apt install ufw vim tmux htop curl wget -y
# setup fw
sudo ufw allow 22/tcp
sudo ufw allow 30333/tcp
sudo ufw enable
[Unit]
Description=Reef Validator
[Service]
ExecStart=/bin/reef-node --base-path /reef/validator --validator --chain mainnet --execution=wasm --port 30333 --no-private-ipv4 --no-mdns --no-prometheus --no-telemetry --name MyValidatorNode
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target
@Netherdrake
Netherdrake / lowess.py
Created April 3, 2019 06:56 — forked from agramfort/lowess.py
LOWESS : Locally weighted regression
"""
This module implements the Lowess function for nonparametric regression.
Functions:
lowess Fit a smooth nonparametric regression curve to a scatterplot.
For more information, see
William S. Cleveland: "Robust locally weighted regression and smoothing
scatterplots", Journal of the American Statistical Association, December 1979,
import pandas as pd
import numpy as np
from scipy.stats.mstats import gmean, hmean
def cv_store(desc, kaggle, tcv, kcv, valid, filename='cvhist.csv'):
"""
Takes the latest CV and LB results and stores them into a csv file.
Args:
desc: Submission description
import os, pickle, gc, json
import datetime as dt
from pprint import pprint
from tqdm import tqdm_notebook as tqdm
from funcy import *
import numpy as np
import pandas as pd
import pandas_profiling
@Netherdrake
Netherdrake / Model01-Firmware.ino
Last active August 23, 2018 11:43
My keyboardio setup
// -*- mode: c++ -*-
// Copyright 2016 Keyboardio, inc. <jesse@keyboard.io>
// See "LICENSE" for license details
#ifndef BUILD_INFORMATION
#define BUILD_INFORMATION "locally built"
#endif
/**
"""
Adopted from:
https://github.com/raiden-network/microraiden/blob/436562a60521c0b321edec822980807c3ac6bca4/microraiden/utils/crypto.py
MIT License
Copyright (c) 2017
Permission is hereby granted, free of charge, to any person obtaining a copy
trezorctl ethereum_sign_tx \
-a "https://kovan.infura.io/ozjwZqhs7RoSCF4vXPt7", \
-c 42 \
-n "m/44'/60'/0'/0/0" \
-v "0.1 ether" \
-g 21000 \
-i 0 \
-p \
"0x7c1df549561f7fb1bc6eeac311facd051daf277f"
@Netherdrake
Netherdrake / trezor_bulk.py
Last active January 29, 2018 22:52
Generate a bunch of ETH and BTC addresses in bulk
import sys
import json
import binascii
from trezorlib.client import TrezorClient, CallException
from trezorlib import messages as proto
def get_transport_class_by_name(name):
if name == 'usb':
@Netherdrake
Netherdrake / go.py
Created December 4, 2017 20:49
a little async helper
import queue
import threading
from box import Box
q = queue.Queue()
def get_queue_items(limit = 10):
results = []
for _ in range(limit):
try: