Skip to content

Instantly share code, notes, and snippets.

View gosuri's full-sized avatar

Greg Osuri gosuri

View GitHub Profile
@gosuri
gosuri / terraformer.go
Created September 4, 2015 18:28
Using terraform with go
package terraformer
import (
"bytes"
"errors"
"path"
"path/filepath"
"...runtime"
"...store"
- path: /etc/kubernetes/manifests/fluentd.yaml
owner: root
permissions: 0644
content: |
apiVersion: v1
kind: Pod
metadata:
name: fluentd-elasticsearch
namespace: sys
@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
@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 / redis-pv.yml
Created April 25, 2017 02:00
redis pv
---
kind: PersistentVolume
metadata:
name: redispv
spec:
capacity:
storage: 8Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
apiVersion: v1
kind: Pod
metadata:
name: redis
labels:
name: redis
spec:
volumes:
- name: redis-storage
persistentVolumeClaim:
@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
/**
* 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 / 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",
@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",