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
git clone https://github.com/ustulation/p2p.git | |
cd p2p | |
RUST_LOG=p2p=trace cargo run --example tcp_rendezvous_connect -- --relay=104.238.181.214:20445 --traversal-server=104.238.181.214:20444 --traversal-server-key='{"sign":[38,31,210,213,23,70,235,152,27,52,173,110,168,154,2,231,79,98,56,132,188,50,18,23,133,239,161,29,151,53,9,242],"encrypt":[46,187,107,223,180,184,89,175,25,132,66,215,35,80,48,201,22,163,10,236,226,125,210,228,238,209,140,29,182,108,45,82]}' this-is-20445 |
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
brew install zeromq libsodium gperftools | |
sudo pip install ethereum==2.2.0 pysodium toml | |
wget https://github.com/ethereum/solidity/releases/download/v0.4.19/solc-static-linux | |
chmod +x solc-static-linux | |
sudo mv solc-static-linux /usr/local/bin/solc | |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2017-12-05 |
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/env python | |
# coding: utf-8 | |
""" | |
A simple argparse helper. | |
Features: | |
========= | |
* Make nesting commands more elegant and easy to write. | |
* Without lose argparse's ability (means you can refactor current code) |
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
//Rextester.Program.Main is the entry point for your code. Don't change it. | |
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; |
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
######################################## | |
# $ tree $HOME/local/etc/TLS | |
# . | |
# |-- CA | |
# | |-- index.txt | |
# | |-- index.txt.attr | |
# | |-- newcerts | |
# | | |-- 01.pem | |
# | | `-- 02.pem | |
# | |-- private |
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
extern crate threadpool; | |
extern crate futures; | |
extern crate tokio_core; | |
use std::env; | |
use std::thread; | |
use std::net::SocketAddr; | |
use futures::Sink; | |
use futures::sync::mpsc::{channel, Receiver}; |
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
extern crate libc; | |
extern crate threadpool; | |
extern crate futures; | |
extern crate tokio_core; | |
use std::env; | |
use std::net::SocketAddr; | |
// use std::sync::mpsc::{channel, Receiver}; |
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
{ | |
"id": 29, | |
"title": "Prometheus - Demo Dashboard", | |
"tags": [ | |
"prometheus", | |
"node", | |
"misc" | |
], | |
"style": "dark", | |
"timezone": "browser", |
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/env python | |
# coding: utf-8 | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
import os | |
import time |
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
# Example YAML to get you started quickly. | |
# Be aware that YAML has indentation based scoping. | |
# Code completion support is available so start typing for available options. | |
swagger: '2.0' | |
# This is your document metadata | |
info: | |
version: "0.0.0" | |
title: <enter your title> |