Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# If you buy the 24-bit wav version of the Aphex Twin Collapse EP
# copy this script into the directory where you've unpacked the WAV files
# and run it in that directory
p="$(ls *.jpg)" ; albumName="Collapse EP"; artistName="Aphex Twin"
for x in *.wav;do
trackTitle="$(echo $x | sed -e 's/^.*-//' -e 's/\.wav//')"
trackNumber="$(echo $x | sed -e 's/^.*EP-//' -e 's/-Aphex.*$//')"
flac --picture="3|image/jpeg|||${p}" \
@Chaircrusher
Chaircrusher / communityLint.sh
Created February 1, 2018 16:10
Script to parse VCV Rack community plugin JSON files
#!/bin/bash
# check for the community repo locally
if [ -d "community" ]; then
pushd community
# discard any changes
git reset HEAD --hard
# update the community repo if it exists
git pull
popd
@Chaircrusher
Chaircrusher / grabRackPlugins.sh
Last active March 29, 2018 20:31
Script To Grab VCVRack binary plugins
# check for the community repo locally
# USAGE grabPlugins.sh <target>
# Where <target> is one of win, lin, or mac
if [ $# -gt 0 ]
then
platform="${1}"
else
platform=lin
fi
@Chaircrusher
Chaircrusher / community-builds-from-source.sh
Last active July 26, 2018 22:12 — forked from jeremywen/community-builds-from-source.sh
This script pulls down the VCV Rack community repo, finds source urls, pulls down source repos, and builds plugins.
#!/bin/bash
#################################################################################################################################
# community-builds-from-source.sh
# by Jeremy Wentworth
#
# Modified by Kent Williams [email protected]
#
# This script pulls down the VCV Rack community repo, finds source urls, pulls down source repos, and builds plugins.
#
@Chaircrusher
Chaircrusher / v8CXXObjectExample.cpp
Last active January 9, 2017 21:38
cut down example of making a C++ 'object' for V8
// Example Class instantiation
// by Kent Williams [email protected]
//
#include <iostream>
#include <cstring>
#include <memory>
#include <v8.h>
#include <libplatform/libplatform.h>
// template for TestClass