Skip to content

Instantly share code, notes, and snippets.

@Mistobaan
Mistobaan / build.sh
Created May 2, 2020 04:38 — forked from stefanondisponibile/build.sh
Build TensorFlow Serving with Sentencepiece custom ops.
#!/bin/bash
CWD=$(pwd)
GPROTOBUF_URL=https://github.com/protocolbuffers/protobuf/releases/download/v3.7.0/protobuf-cpp-3.7.0.tar.gz
compile_gprotobuf () {
sudo apt-get install autoconf automake libtool curl make g++ unzip &&
wget $GPROTOBUF_URL &&
fname=protobuf-cpp-3.7.0.tar.gz &&
tar xvzf $fname && rm $fname &&
from graphviz import Digraph
import torch
from torch.autograd import Variable, Function
def iter_graph(root, callback):
queue = [root]
seen = set()
while queue:
fn = queue.pop()
if fn in seen:
@Mistobaan
Mistobaan / README.md
Last active February 19, 2023 17:21
How to fix the AMAG Installation on MacOS Catalina

I Purchased this mini keyboard to extend my editor with combinations of keys that I will never remember. Sadly installing the App was problematic as it does not work right away.

  1. The App is written in Adobe air (!). Download and install their library
  2. Install and run this command to overcome Catalina problems (Steve we miss you) (from this thread)[https://community.adobe.com/t5/air/adobe-air-error-message-macosx-catalina/td-p/10683302?page=1]:
sudo xattr -r -d com.apple.quarantine /Library/Frameworks/Adobe\ AIR.framework
  1. Downloaded the online software from Koolertron as of today (2020 June 20) is this link
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mistobaan
Mistobaan / aws_mfa_login.py
Created August 11, 2021 23:17
Configure AWS default profile to use the MFA token enabled credentials
#!/bin/env python
import sys
import os
import shlex
import subprocess
import json
import configparser
import argparse
@Mistobaan
Mistobaan / decomposepromptsimple.ipynb
Created August 13, 2020 07:05 — forked from brockmanmatt/decomposepromptsimple.ipynb
DecomposePromptSimple.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mistobaan
Mistobaan / introtologprobs.ipynb
Created August 13, 2020 07:03 — forked from brockmanmatt/introtologprobs.ipynb
introToLogProbs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mistobaan
Mistobaan / defaultapinotebook.ipynb
Created August 13, 2020 07:01 — forked from brockmanmatt/defaultapinotebook.ipynb
defaultapinotebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
with models.DAG() as dag:
dataset = 'BREATHE'
# create a task for each table in the BREATHE dataset
for table_name in list_breathe_tables():
destination_uri = 'gs://' + '/'.join((dest_bucket,
'{{ ds_nodash }}', # one day is enough for the full snapshot
table_name,
table_name + '-{{ ds_nodash }}-*.jsonl'))