This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"os/exec" |