Skip to content

Instantly share code, notes, and snippets.

View fforbeck's full-sized avatar

Felipe Forbeck fforbeck

View GitHub Profile
openapi: 3.0.3
info:
title: Tribute KYC API
version: '1.0'
x-logo:
url: ''
description: A minimal API spec to provide KYC certificates for Tribute DAO UI project.
paths:
/kyc-certificate/{{daoRegistryContractAddress}}/{{ethereumAddress}}:
description: >-
import * as sigUtil from 'eth-sig-util';
type CouponType = 'coupon-kyc';
type PrimaryType = 'Message' | 'EIP712Domain';
type CouponData = {
type: CouponType;
kycedMember: string;
};
@fforbeck
fforbeck / JProfiler-with-Docker.md
Created August 14, 2020 16:08 — forked from kevin-lee/JProfiler-with-Docker.md
JVM Profiler with Docker

JProfiler with Docker

Docker

DockerFile

DockerFile should have JProfiler installation.

RUN wget <JProfiler file location> -P /tmp/ && \
  tar -xzf /tmp/<JProfiler file> -C /usr/local && \
  rm /tmp/<JProfiler file>
@fforbeck
fforbeck / latency.txt
Created June 17, 2020 14:30 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@fforbeck
fforbeck / links.md
Created December 12, 2019 13:48 — forked from akitaonrails/links.md
Links de referência pro Episódio 66 do Canal Akitando
@fforbeck
fforbeck / k8s-svc-annotations.md
Created December 5, 2019 19:16 — forked from mgoodness/k8s-svc-annotations.md
AWS ELB-related annotations for Kubernetes Services (as of v1.12.0)
  • service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval (in minutes)
  • service.beta.kubernetes.io/aws-load-balancer-access-log-enabled (true|false)
  • service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-name
  • service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefix
  • service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags (comma-separated list of key=value)
  • service.beta.kubernetes.io/aws-load-balancer-backend-protocol (http|https|ssl|tcp)
  • service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled (true|false)
@fforbeck
fforbeck / yourkit-sbt.md
Created February 26, 2019 22:13
Yourkit linux-x86-64 + SBT

sbt -J-agentpath:'/home/user/YourKit-JavaProfiler-2019.1/bin/linux-x86-64/libyjpagent.so'

0xe1f02fCc48c1C686a777C02C2df6A841226dBF71
@fforbeck
fforbeck / clean-up-boot-partition-ubuntu.md
Created September 6, 2018 01:06 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@fforbeck
fforbeck / PLEDGE AGREEMENT.txt
Last active May 4, 2018 21:45
- Fixed \centered tag using additional line break - Fixed signature form - Fixed apostrophe issue
\centered **PLEDGE AGREEMENT**
This PLEDGE AGREEMENT (this "**Agreement**") is made as of July 14, 2010, by and between DESERT HAWK GOLD CORP., a Nevada corporation (the "**Pledgor**"), and DMRJ GROUP I, LLC, a Delaware limited liability company, or its successors and assigns (the "**Secured Party**").
\centered **RECITALS**
^A. Contemporaneously with the execution and delivery hereof, the Pledgor and the Secured Party entered into that certain Investment Agreement, dated as of the date hereof, pursuant to which the Secured Party agreed to make available to the Pledgor a senior secured term loan credit facility of up to $6,500,000 for the purpose of, among other things, providing capital to the Secured Party for the conduct of certain mining activities (as the same may be amended, modified, supplemented, renewed, restated, extended or replaced, the "**Investment Agreement**").
^B. Pledgor is the owner of 2,713,636 shares of common stock, par value $0.001 per share, of Blue Fin Capital, Inc., a Utah corp