Skip to content

Instantly share code, notes, and snippets.

View takeyourhatoff's full-sized avatar

Paddy Steed takeyourhatoff

View GitHub Profile
package main
import (
"context"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
ubuntu@ip-10-145-0-4:/var/tempest/workspaces/default/deployments$ date
Tue Oct 24 11:21:47 UTC 2017
ubuntu@ip-10-145-0-4:/var/tempest/workspaces/default/deployments$ bosh2 -e local tasks
Using environment '10.145.1.10' as user 'director' (bosh.*.read, openid, bosh.*.admin, bosh.read, bosh.admin)
ID State Started At Last Activity At User Deployment Description Result
4567 processing Tue Oct 24 09:39:08 UTC 2017 Tue Oct 24 09:39:08 UTC 2017 ops_manager cf-4b53f07534e941b0b665 create deployment -
1 tasks
#!/bin/bash
set -e
# spectro.sh: creates forum code with spectrograms of a directory's flac files
# Deps: sox, optipng and curl
# Usage: spectro.sh location/of/album/
APIKEY="6bf8cf819aff12a"
SOXARGS=(
"remix 1 spectrogram -x 3000 -y 513 -w Kaiser"