Exmaple of a page break
another page
Exmaple of a page break
another page
This Gist MOVED to a public repository: P2P Index
version: 0.0 | |
os: linux | |
files: | |
- source: / | |
destination: /home/ec2-user/node | |
permissions: | |
- object: /home/ec2-user | |
owner: ec2-user | |
group: ec2-user | |
type: |
var ecdh = crypto.createECDH('secp256k1'); | |
ecdh.generateKeys(); | |
var publicKey = ecdh.getPublicKey(null, 'compressed'); | |
var privateKey = ecdh.getPrivateKey(null, 'compressed'); | |
console.log('Private1:', privateKey.length, privateKey.toString('hex')); | |
console.log('Public1: ', publicKey.length, publicKey.toString('hex')); | |
import { Schema, Optional, Or, Type } from 'funval'; | |
const UserSchema = { | |
name: Optional(String), | |
status: Or('active' as 'active', 'suspended' as 'suspended'), | |
}; | |
const validator = Schema(UserSchema); | |
let user: Type<typeof UserSchema>; | |
try { |
#!/usr/bin/env bash | |
# usage: wget -N https://gist.githubusercontent.com/moshest/e4c73efc8d6a35971f6e/raw/setup-mongodb.sh && sh ./setup-mongodb.sh | |
set -e | |
# configs | |
read -e -p "Replica set name: " -i "rep1" replSet | |
read -e -p "Hostname: " -i $(curl -s http://169.254.169.254/latest/meta-data/public-hostname) hostname | |
read -e -p "Swap size: " -i "8G" swapsize |
Link: https://medium.com/@keyuno/constructing-universal-map-of-knowledge-7fcd03a084d9 | |
Key Uno, https://keyuno.github.io/masterkey/ | |
Aug 29, 2017 | |
Constructing Universal Map Of Knowledge | |
By designing a system of economic incentives that will provide access to reliable information to anyone with an internet connection. | |
Structure: | |
The universal map of knowledge consists of two parts: |
# MacBook Pro (Mid 2015) - 2.5 GHz Intel Core i7 | |
# Node.js v9.2.0 | |
block size: 8192 | |
hashing sha512 x 300000 times: 4447ms | |
hashing sha256 x 300000 times: 6105ms | |
difference: 27.158067158067155 % | |
block size: 4096 | |
hashing sha512 x 300000 times: 2601ms |
#!/bin/bash | |
# usage: `curl --silent --location https://gist.githubusercontent.com/moshest/32b19e146bc5e1665708c885e535a631/raw/install.sh | bash -` | |
set -e | |
yum -y update | |
AWS_REGION=`curl http://169.254.169.254/latest/dynamic/instance-identity/document|grep region|awk -F\" '{print $4}'` | |
echo AWS Region: $AWS_REGION | |
# install CodeDeploy |