Skip to content

Instantly share code, notes, and snippets.

View bobbytables's full-sized avatar
🔥
Putting out fires

Robert Ross bobbytables

🔥
Putting out fires
View GitHub Profile
apiVersion: config.istio.io/v1alpha2
kind: prometheus
metadata:
clusterName: ""
creationTimestamp: 2018-09-21T16:32:54Z
name: handler
namespace: istio-system
resourceVersion: "98310577"
selfLink: /apis/config.istio.io/v1alpha2/namespaces/istio-system/prometheuses/handler
uid: fd9e637a-bdbb-11e8-bdcf-0ec5bee14916
config = Rails.application.config.x.gcloud
pubsub = Google::Cloud::Pubsub.new project_id: config["project_id"], credentials: config["pubsub"]["keyfile"]
topic = pubsub.topic "incident-events"
sub = topic.subscription "hello-world"
subscriber = sub.listen do |received_message|
puts "sub 1"
puts received_message.message.data
received_message.acknowledge!
alias ta="tmux attach-session -t"
alias tn="tmux new-session -s"
alias tl="tmux list-sessions"
alias tk="tmux kill-session -t"
export EDITOR=subl
source ~/.git-completion.sh
# Aliases!!
alias ls="ls -lsa"
@bobbytables
bobbytables / build.sh
Created February 18, 2017 15:49
Protocol Buffer build script for multiple folders
#!/usr/bin/env bash
# This script is meant to build and compile every protocolbuffer for each
# service declared in this repository (as defined by sub-directories).
# It compiles using docker containers based on Namely's protoc image
# seen here: https://github.com/namely/docker-protoc
set -e
REPOPATH=${REPOPATH-/opt/protolangs}
CURRENT_BRANCH=${CIRCLE_BRANCH-"branch-not-available"}