Instantly share code, notes, and snippets.

Filip Stanis fstanis

View GitHub Profile
View audio2waveform.html
Copyright 2018 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
# Copyright 2018 Google LLC.
# SPDX-License-Identifier: Apache-2.0
# Sends a multipart/alternative email containing 3 parts: text/plain, text/html and text/x-other.
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
# Based on:
# Command line arguments:
# -i <input file> (required)
# -o <output file> (required)
# -s <start time>
# -t <duration in seconds>
# -f <output FPS>

Keybase proof

I hereby claim:

  • I am fstanis on github.
  • I am fstanis ( on keybase.
  • I have a public key whose fingerprint is F7FA 3DE1 71A3 478D AD6A 3C13 7750 9C4A 238E 5BA4

To claim this, I am signing this object:


Setting up Speaker pHAT or pHAT DAC with pulseaudio


The purpose of this document if to provide a simple method of getting pulseaudio to work on Raspberry Pi with either Speaker pHAT or pHAT DAC.

Please see Software installer for Speaker pHAT or Setting up pHAT DAC for the more official guide / installer. The idea behind this guide is to provide you with a more manual alternative that lets you have a minimal setup.



Set up an Upspin server backed by Google Drive


The purpose of this document is to explain how to deploy an Upspin server on a Debian or Ubuntu based machine - which can be a Raspberry Pi - and, optionally, use Google Drive to back the data.

Effectively, this will give you all the nifty advantages Upspin gives you in terms of file sharing without requiring a costly server.


View bitset.go
package bitset
import "errors"
// BitSet represents a set of booleans.
type BitSet struct {
buckets map[int]byte
// New creates a new BitSet.
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<link rel="stylesheet" href="./style.css">
View app.js