Skip to content

Instantly share code, notes, and snippets.

Avatar

Naoko Reeves naoko

View GitHub Profile
View gist:66b042235604702d924ac2b8f3f523ee
$ 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…
@naoko
naoko / Install OpenFst with Python Binding on OSX
Last active Oct 23, 2021
How to install OpenFst with Python Biding on OSX
View Install OpenFst with Python Binding 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 / google_pub_sub.py
Last active Mar 9, 2017
Example of how to use Google Pub/Sub
View google_pub_sub.py
import logging
from google.cloud import pubsub
logger = logging.getLogger(__name__)
def create_topic(topic_name):
client = pubsub.Client()
topic = client.topic(topic_name)