Skip to content

Instantly share code, notes, and snippets.

View cobookman's full-sized avatar

Colin Bookman cobookman

  • LinkedIn (Ex AWS/GCP)
  • San Francisco, CA
View GitHub Profile
@cobookman
cobookman / Readme.md
Last active May 12, 2017 15:50
Translate API Examples

How to get an API Key.

  1. Head to API Manager
  2. Click on credentials
  3. Create new credential->Api Key
  4. Your api key is a string in the form of something like: BIzqTyzdDdg3fBqaouJI6z2nC3ygJNZ1qZsoYGc
### Keybase proof
I hereby claim:
* I am cobookman on github.
* I am cobookman (https://keybase.io/cobookman) on keybase.
* I have a public key whose fingerprint is E22F 161C 78BC C866 035A A959 301D 2FC3 9883 D638
To claim this, I am signing this object:
@cobookman
cobookman / gist:c1a9856a4588496b021a
Last active August 17, 2021 12:39
HTML5 Audio (mp3) and Video (webm) live transcoding streams

The following two functions will stream just about any audio or video file to any browsers supporting mp3 and/or webm. Due to the unknown number of bytes, a custom html5 audio/video player will have to be written (my next step) to allow seeking.

For w/e reason node.js didn't want to spawn a child process with a unix pipe in it. This could be so that they can keep support for windows computers. As such I've created the following bash script:

#!/bin/bash
START_TIME=${2:-0}
VARIABLE_BIT_RATE=${3:-4}
ABSOLUTE_PATH=$1