Skip to content

Instantly share code, notes, and snippets.

View naoko's full-sized avatar

Naoko Reeves naoko

View GitHub Profile
@naoko
naoko / google_pub_sub.py
Last active March 9, 2017 23:09
Example of how to use Google Pub/Sub
import logging
from google.cloud import pubsub
logger = logging.getLogger(__name__)
def create_topic(topic_name):
client = pubsub.Client()
topic = client.topic(topic_name)
@naoko
naoko / Install OpenFst with Python Binding on OSX
Last active October 23, 2021 19:38
How to install OpenFst with Python Biding on OSX
# download
curl -O http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.2.tar.gz
tar -xvzf openfst-1.6.2.tar.gz
rm openfst-1.6.2.tar.gz
cd openfst-1.6.2
./configure --enable-python
make
make install
# Test installtion
@naoko
naoko / gist:66b042235604702d924ac2b8f3f523ee
Created October 28, 2018 01:46
Minikube without vm-driver
$ sudo minikube - vm-driver none start
[sudo] password for naoko: 
Starting local Kubernetes v1.10.0 cluster…
Starting VM…
Getting VM IP address…
Moving files into cluster…
Setting up certs…
Connecting to cluster…
Setting up kubeconfig…
Starting cluster components…