Skip to content

Instantly share code, notes, and snippets.

diff --git a/descriptor/BUILD.bazel b/descriptor/BUILD.bazel
new file mode 100644
index 0000000..eb76723
--- /dev/null
+++ b/descriptor/BUILD.bazel
@@ -0,0 +1,26 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+go_library(
+ name = "go_default_library",
@wozz
wozz / envoy-crash.log
Created January 25, 2020 06:31
envoy eds crash
[2020-01-25 06:25:40.510][1][debug][config] [external/envoy/source/common/config/grpc_mux_impl.cc:132] Received gRPC message for type.googleapis.com/envoy.api.v2.ClusterLoadAssignment at version 1579933540
[2020-01-25 06:25:40.511][1][debug][upstream] [external/envoy/source/common/upstream/upstream_impl.cc:250] transport socket match, socket default selected for host with address 172.17.0.21:9001
[2020-01-25 06:25:40.511][1][debug][upstream] [external/envoy/source/common/upstream/upstream_impl.cc:250] transport socket match, socket default selected for host with address 172.17.0.10:9001
[2020-01-25 06:25:40.511][1][debug][upstream] [external/envoy/source/common/upstream/upstream_impl.cc:250] transport socket match, socket default selected for host with address 172.17.0.14:9001
[2020-01-25 06:25:40.511][1][debug][upstream] [external/envoy/source/common/upstream/upstream_impl.cc:250] transport socket match, socket default selected for host with address 172.17.0.8:9001
[2020-01-25 06:25:40.511][1][debug][upstrea
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_MODULES=y
#
# Paths and misc options
#
@wozz
wozz / gdax-dca.go
Created September 4, 2017 04:51
Script to buy small amounts every hour over a week
package main
import (
"encoding/json"
"fmt"
"math"
"os"
"time"
gdax "github.com/preichenberger/go-coinbase-exchange"
#!/usr/bin/env python
import sys
import json
import requests
from decimal import Decimal
import logging
from logging.handlers import RotatingFileHandler
worklog = logging.getLogger('sweep_funds')
#shandler = logging.handlers.RotatingFileHandler('sweep_funds.log', maxBytes=1024*1024*10, backupCount=1000)
@wozz
wozz / bcash-tool.py
Created August 31, 2017 16:14
joinmarket bitcoin cash tool
# this tool can be used to create sweep transactions for bitcoin cash
# it's designed to send all coins from one mixdepth at a time to a single
# address with a small fee.
# bitcoin cash donations: 128Q5Ro2c9Enb5DhG7wSBmws8nCtC7e5x8
# sample run command:
# python bcash-tool.py -m 1 -g 10 -a 128Q5Ro2c9Enb5DhG7wSBmws8nCtC7e5x8 -f 3000 wallet.json
# this tool does not broadcast the signed transaction, it only prints it to the terminal
import (
"encoding/json"
"strings"
)
type S struct {
Id int `json:"id"`
}
func (s *S) FromJsonString(in_string string) {
---
- name: Determine if Home
hosts: localhost
gather_facts: false
tasks:
- shell: dig +short myip.opendns.com @resolver1.opendns.com
register: myip
changed_when: false
- shell: dig +short <home dns> @resolver1.opendns.com
register: homeip
---
- name: Determine if Home
hosts: localhost
gather_facts: false
tasks:
- shell: dig +short myip.opendns.com @resolver1.opendns.com
register: myip
- shell: dig +short <my home dns> @resolver1.opendns.com
register: homeip
- set_fact: home="{{ myip.stdout == homeip.stdout }}"
---
- name: Update servers
hosts: servers
user: root
tasks:
apt: upgrade=yes update_cache=yes
- name: Update aws
hosts: aws
user: ubuntu