Skip to content

Instantly share code, notes, and snippets.

@jasco
jasco / SPPachabelCanon.rb
Last active June 12, 2020 08:24 — forked from rbnpi/SPPachabelCanon.rb
Sonic Pi Pachabel's Canon for Flute, Clarinet and Trombone sample based voices. This version runs on RPi
# Pachebel Canon for Sonic Pi, played by Flute, Clarinet and Trombone sample based voices
# coded by Robin Newman, March 2015
# modified to work with SonicPi 3.2.2 (min unknown)
# score from www.freegigmusic.com (version for flute oboe and clarinet)
# samples download at http://r.newman.ch/rpi/Pachabel.zip
use_debug false
samples_dir='/home/pi/samples/Pachabel' #adjust location as necessary
# first deal with selecting and setting up the samples
inst0=samples_dir + '/flute_ds5.wav'
@jasco
jasco / migrator.sh
Last active July 14, 2017 08:24 — forked from vigneshwaranr/migrator.sh
Script to convert SQLITE dumps into PostgreSQL compatible dumps
#! /bin/sh
usage_error () {
echo 'Usage: sh migrator.sh <path to sqlite_to_postgres.py> <path to sqlite db file> <an empty dir to output dump files>'
echo
echo 'Example:'
echo '>sh migrator.sh sqlite_to_postgres.py ~/reviewboard.db /tmp/dumps'
echo
echo 'Tested on:'
echo 'Python 2.7.3'
@jasco
jasco / five_minutes.yml
Last active June 3, 2019 04:18 — forked from ryane/five_minutes.yml
[Ansible Ubuntu First Boot Security Tighening] five_minutes.yml #ubuntu #ansible
---
# Ansible script for first-boot tightening up Ubuntu security
# Reference blog https://ryaneschinger.com/blog/securing-a-server-with-ansible/
- hosts: all
vars:
UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx'
UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx'
UBUNTU_COMMON_LOGWATCH_EMAIL: user@example.com
ubuntu_common_deploy_user_name: deploy