Skip to content

Instantly share code, notes, and snippets.

@myklll
myklll / firebase_dynamic_links.go
Last active April 3, 2020 22:33
Create a short firebase dynamic link
@myklll
myklll / proto-install.txt
Created March 9, 2019 17:40
Set up Protobuf Compiler on a Mac
Get the latest release here: https://github.com/protocolbuffers/protobuf/releases
$ wget https://github.com/protocolbuffers/protobuf/archive/v3.7.0.tar.gz
$ tar -zxvf protobuf-3.7.0.tar.gz
$ sudo mv protobuf-3.7.0 /usr/local/bin
$ cd /usr/local/bin/protobuf-3.7.0
$ ./autogen.sh && ./configure && make
$ sudo make install
$ which protoc
$ protoc --version
@myklll
myklll / queue.go
Last active February 28, 2019 12:35 — forked from harrisonturton/queue.go
RabbitMQ client that automatically reconnects when the connection fails, and has a confirmed push method (i.e. the server is guaranteed to recieve the message)
package main
import (
"errors"
"github.com/streadway/amqp"
"log"
"os"
"time"
)