Skip to content

Instantly share code, notes, and snippets.

Paul Berg PaulRBerg

View GitHub Profile
@PaulRBerg
PaulRBerg / TruffleV5Report.txt
Last active Dec 30, 2018
Console output after running migrations
View TruffleV5Report.txt
Starting migrations...
======================
> Network name: 'development'
> Network id: 7923
> Block gas limit: 6721975
1_initial_migration.js
======================
@PaulRBerg
PaulRBerg / CloudFrontStaticWebsiteConfig.json
Created Dec 26, 2018
CloudFront static website config
View CloudFrontStaticWebsiteConfig.json
{
"CallerReference": "CloudFrontStaticWebsitConfig",
"Aliases": {
"Quantity": 1,
"Items": [
"example.com"
]
},
"DefaultRootObject": "",
"Origins": {
@PaulRBerg
PaulRBerg / S3StaticWebsitePolicy.json
Created Dec 26, 2018
Sample policy for a static website hosted on S3
View S3StaticWebsitePolicy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "S3StaticWebsitePolicy",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
@PaulRBerg
PaulRBerg / PlasmaAnnotations.md
Created Nov 9, 2018
Annotations on the original Plasma white paper
View PlasmaAnnotations.md

Annotations

Preface

The Plasma white paper written by Joseph Poon and Vitalik Buterin spurred a large wave of innovation, but it equally created confusion on many topics. One year later, Plasma slightly departed from its original vision, having now a rather expansive definition, with several different proposed implementations.

Let's briefly describe the recent history of Plasma, as it rolled out over the last year! Minimum Viable Plasma was introduced as a model adhering to most of the procedures outlined in the white paper, but it turned out that some parts, such as the multi-step process of state transitions, could be dramatically improved. Shortly after, Plasma Cash did just that by the means of non-fungible tokens, enabling simple, reliable and low-cost transactions. It is in particular applicable to high throughput but low or medium-state applications, like micropayments and exchanges. Other notable examples include Plasma Debit, Plasma Xt and More Viable Plasma.

Due to this amalgam of implementa

View keybase.md

Keybase proof

I hereby claim:

  • I am paulrberg on github.
  • I am paulrberg (https://keybase.io/paulrberg) on keybase.
  • I have a public key ASDQV-6T8VNpMmufezWYrJaZBDNkhq2Wv9A9HBoWI_ZbSgo

To claim this, I am signing this object:

View blockstack.txt
Verifying my Blockstack ID is secured with the address 1N7LGfMV66d6khzpqZ5uM6PtZEsMK1L59V https://explorer.blockstack.org/address/1N7LGfMV66d6khzpqZ5uM6PtZEsMK1L59V
View DagHub Survey Prizes Distribution
Nano
https://www.nanode.co/block/2BB152E956158DA1CC79DF26652FD7C1F66E9559B7CCC0E3933ECA43CB75AACD
https://www.nanode.co/block/CA765C19A59A7CE80BAD65ED4C8762BA0A0C64C8C541DC910970472C78CDB7EC
https://www.nanode.co/block/E5190D92BBEE1E11C75A3F2DFDC7A5CA0A55317732319A263855415C7108B0D5
https://www.nanode.co/block/C9055086DF50A009CBDD9D2403684EAE159F5A4C23FFF73E0716C532DEBDB8C0
https://www.nanode.co/block/CE33C25D0DD72013DB262FAB28B00BE2004587DB416E48026ACC4CD9DA34B440
https://www.nanode.co/block/B1E2357EBEFBB529400E019B2B3D5EEF8BFC49275AF1C6FFFE7E2C3378597277
https://www.nanode.co/block/0B7C83F07ED6EE8CE4204D97304C0B272EBF4C18A0AFD35381081E456D17FE1A
https://www.nanode.co/block/79E28484199F19ADFE3F19BD0E3CD611F3953FAE145EFFF996A3BBC15741DC0C
https://www.nanode.co/block/33E84E4AC68BB495067D17E6318CB0D577F5D4153F168228EED6A57B591561A1
@PaulRBerg
PaulRBerg / netlify-dns.md
Created Jan 26, 2018 — forked from hhsnopek/netlify-dns.md
Netlify DNS setup
View netlify-dns.md

Netlify DNS Setup

Quick ref for Netlify custom domains

Records

CNAME

Host: www, Value: you-netlify-site.netlify.com, TTL: 30 min

A

Host: @, Value: 104.198.14.52, TTL: 30min

@PaulRBerg
PaulRBerg / blocktstack
Created Dec 22, 2017
Blockstack Verification
View blocktstack
Verifying my Blockstack ID is secured with the address 1GuvpSHLmrkNmZ2wsSpFrSLyyokSda91C3 https://explorer.blockstack.org/address/1GuvpSHLmrkNmZ2wsSpFrSLyyokSda91C3
@PaulRBerg
PaulRBerg / APLoginNetwork.swift
Last active Jul 14, 2017
AdPacer - APLoginNetwork
View APLoginNetwork.swift
import UIKit
import FirebaseAuth
import MBProgressHUD
extension APLoginViewController {
/**
* Simply logins the user using the classic email & password.
*/
func login() {
You can’t perform that action at this time.