Skip to content

Instantly share code, notes, and snippets.

View gosuri's full-sized avatar

Greg Osuri gosuri

View GitHub Profile
@gosuri
gosuri / birdik.md
Last active October 27, 2019 22:17
Messenger Pigeons Whitepaper

Messenger Pigeons

A privacy-preserving, censorship-resistant and a peer-to-peer mechanism for long-distance messaging

In the era of surveillance capitalism, the inalienable human right to privacy is under threat from unstoppable forces. We need a decentralized system that guarantees privacy by ensuring sovereignty over one's messages and its transit.

Our solutional was to look towards nature. For the longest time in our history, pigeons were used to carry messages as "messenger pigeons" for their exceptional homing ability -- the ability to find its way home over extremely long distances (1,100 miles). Our solution is to breed an army of pigeons, nested over a decentralized network of messaging hubs.The team has released a prototype, codenamed "Birdik"

@gosuri
gosuri / grafana-kube.json
Last active October 10, 2019 03:00
grafana-kube.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@gosuri
gosuri / grafana-node-exporter.json
Last active October 10, 2019 03:03
grafana-node-exporter.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@gosuri
gosuri / eosnodemacos.md
Last active July 9, 2018 04:10
Running EOS on OSX Darwin (MacOS)

Instructions to setup EOS node on a Mac

Install EOS Binaries

I was unable to find EOS binaries online so I built them on my workstation. This process take a little over 15 minutes. To begin, download the source from github and build using the script.

$ mkdir -p ~/EOSIO
$ git clone https://github.com/EOSIO/eos --recursive
$ cd ~/EOSIO/eos
apiVersion: v1
kind: Pod
metadata:
name: redis
labels:
name: redis
spec:
volumes:
- name: redis-storage
persistentVolumeClaim:
@gosuri
gosuri / redis-pv.yml
Created April 25, 2017 02:00
redis pv
---
kind: PersistentVolume
metadata:
name: redispv
spec:
capacity:
storage: 8Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
@gosuri
gosuri / gonotes.md
Last active December 21, 2015 03:54
gonotes: enumerate annotations in a go source tree

Spec for a tool to enumerate annotations in Go source tree.

$ gonotes -markdown

TODO
----
1. Add acceptance testing to vagrant builder
   21: go.ovrclk.com/walker/agency/builder/builder_test.go
@gosuri
gosuri / git-submodule-notes.md
Created December 17, 2015 02:25
My notes i've taken while familiarizing git-submodule

git-submodule

My notes i've taken while familiarizing git-submodule. Create a public and private directory and add 4 public submodules

$ rootdir=~/code/submod
$ pubdir=$rootdir/public
$ pridir=$roodir/private
$ mkdir -p $pubdir $pridir
- path: /etc/kubernetes/manifests/fluentd.yaml
owner: root
permissions: 0644
content: |
apiVersion: v1
kind: Pod
metadata:
name: fluentd-elasticsearch
namespace: sys