Skip to content

Instantly share code, notes, and snippets.

View sdorsett's full-sized avatar

Stan Dorsett sdorsett

View GitHub Profile
@ferrihydrite
ferrihydrite / morphagene_ableton3.py
Last active April 29, 2023 07:59 — forked from knandersen/morphagene_ableton.py
Allows you to use Ableton projects and exports as reels for the Make Noise Morphagene eurorack module.
# -*- coding: utf-8 -*-
"""
USAGE:
morphagene_ableton3.py -w <inputwavfile> -l <inputlabels> -o <outputfile>'
Instructions in Ableton:
Insert locators as splice markers in your project (Create > Add Locator)
Export Audio/Video with
Sample Rate: 48000 Hz
Encode PCM: enabled
@knandersen
knandersen / morphagene_directory.py
Last active May 12, 2021 03:16
Takes an input directory containing wave files and splices them together into a morphagene reel
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
USAGE:
morphagene_directory.py -d <inputdirectory> -o <outputfile>'
Script will go through <inputdirectory> and splice all wave-files
together in alphabetic order and place a marker in between.
Requires all wave-files in directory to have the same number of channels and bitrate!
@knandersen
knandersen / morphagene_ableton.py
Last active June 7, 2024 11:53 — forked from ferrihydrite/morphagene_audacity.py
Allows you to use Ableton projects and exports as reels for the Make Noise Morphagene eurorack module. Since a few people have found the script not working or difficulty getting python to work, I have created a web-based tool: https://knandersen.github.io/morphaweb/
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
USAGE:
morphagene_ableton.py -w <inputwavfile> -l <inputlabels> -o <outputfile>'
Instructions in Ableton:
Insert locators as splice markers in your project (Create > Add Locator)
Export Audio/Video with
Sample Rate: 48000 Hz
@8bitnz
8bitnz / gist:e4bfe4ed0a875f23cf7f9b26acf78ece
Created November 9, 2019 04:54
Nelson VMUG vsphere example
# The provider is the system we are connecting to or managing. In this case
# the provider is 'vsphere'. For the vSphere provider, we need to provide the
# vCenter server and credentials to connect. In this example, we are using variables for this
provider "vsphere" {
user = var.vsphere_user
password = var.vsphere_password
vsphere_server = var.vsphere_server
# If you have a self-signed cert
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
USAGE:
morphagene_audacity.py -w <inputwavfile> -l <inputlabels> -o <outputfile>'
Used to convert Audacity labels in .txt form on .WAV files into
single 32-bit float .WAV with CUE markers within the file, directly
compatible with the Make Noise Morphagene.
@yardensachs
yardensachs / README.md
Last active October 9, 2018 20:00
Terraform state moving script

Terraform state moving script

This script will use a mapping of old and new Terraform resources path to move from an exisiting state to a new state. This is handy when restructuring a Terraform project.

Steps before running this script:

  • In exisiting project:
    • Make sure you have intiiated with the correct state backend (if you are using different state backends)
    • Run terraform state list and grab the paths. you would need to filter between resource paths and other paths like data blocks
  • In new structure:
  • Run terraform init
@irvingpop
irvingpop / ssh_key.tf
Last active April 8, 2024 07:18
Terraform external data source example - dynamic SSH key generation
# ssh key generator data source expects the below 3 inputs, and produces 3 outputs for use:
# "${data.external.ssh_key_generator.result.public_key}" (contents)
# "${data.external.ssh_key_generator.result.private_key}" (contents)
# "${data.external.ssh_key_generator.result.private_key_file}" (path)
data "external" "ssh_key_generator" {
program = ["bash", "${path.root}/../ssh_key_generator.sh"]
query = {
customer_name = "${var.customer_name}"
customer_group = "${var.customer_group}"
@lamw
lamw / gist:f25820bccdd858033fa1f3bf0fcc5981
Created November 25, 2016 17:03
Installing OVFTool 4.2 within a Photon Docker Container
FROM photon
RUN tdnf -y install tar gzip sed gawk ncurses-compat
ADD VMware-ovftool-4.2.0-4586971-lin.x86_64.bundle /tmp/
RUN chmod +x /tmp/VMware-ovftool-4.2.0-4586971-lin.x86_64.bundle
RUN echo -e "/w00t\n" >> /tmp/answer
RUN /tmp/VMware-ovftool-4.2.0-4586971-lin.x86_64.bundle --eulas-agreed --required --console < /tmp/answer