Skip to content

Instantly share code, notes, and snippets.

const username = await this.wallet.sign('GoodDollarUser', 'gundb')
const password = await this.wallet.sign('GoodDollarPass', 'gundb')
this.gunuser = gun.user()
return new Promise((res, rej) => {
this.gunuser.create(username, password, async userCreated => {
logger.debug('gundb user created', userCreated)
//auth.then - doesnt seem to work server side in tests
this.gunuser.auth(username, password, user => {
{
"ApplicationConfiguration": {
"Paths": {
"Chain": "Chain_{0}",
"CertCache": "Certs"
},
"P2P": {
"Port": 20333,
"WsPort": 20334
},
#!/usr/bin/expect -f
set wallet "wallet1.json"
set password "****"
set timeout -1
cd neo-cli
spawn dotnet neo-cli.dll --rpc
expect "neo>"
send "open wallet $wallet\n"
expect "password:"
send "$password\n"
{
"ProtocolConfiguration": {
"Magic": 7630401, <--- you can/should modify this number
"AddressVersion": 23,
"SecondsPerBlock": 15,
"StandbyValidators": [
"yourkey1here",
"yourkey2here",
"yourkey3here",
"yourkey4here",
{
"ApplicationConfiguration": {
"Paths": {
"Chain": "Chain_{0}",
"ApplicationLogs": "ApplicationLogs_{0}"
},
"P2P": {
"Port": 10333,
"WsPort": 10334
},
<?xml version='1.0' encoding='UTF-8'?><MPD xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" profiles="urn:mpeg:dash:profile:full:2011" type="static" mediaPresentationDuration="PT30.364S" minBufferTime="PT1.5S" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<BaseURL>https://video.twimg.com</BaseURL>
<Period start="PT0S">
<AdaptationSet segmentAlignment="true">
<ContentComponent contentType="video" id="1"/> <Representation id="1" mimeType="video/mp4" codecs="avc1.42001f" bandwidth="256000" width="320" height="180">
<SegmentList timescale="1000" duration="3000">
<Initialization sourceURL="https://video.twimg.com/amplify_video/805498772188962816/vid/320x180/i/hmhwIL0BRtE-0PgJ.m4s"/> <SegmentURL media="https://video.twimg.com/amplify_video/805498772188962816/vid/0/3000/320x180/RRG1V0ppABwdRnNs.m4s"/><SegmentURL media="https:
@sirpy
sirpy / akka-mapasync-test.scala
Created September 26, 2016 18:29
mapasyncunordered doesnt cap parallelism
package sknil.flow.extract
import akka.actor.ActorSystem
import akka.stream.ActorMaterializer
import akka.stream.ActorMaterializerSettings
import akka.stream.scaladsl.Source
import scala.concurrent.Future
import java.util.concurrent.atomic.AtomicInteger
import akka.stream.scaladsl.Sink
import akka.stream.scaladsl.Flow