Skip to content

Instantly share code, notes, and snippets.

View NaanProphet's full-sized avatar

Krishna Bhamidipati NaanProphet

View GitHub Profile
@llimllib
llimllib / padcolors.py
Last active February 10, 2023 23:45
Setting pad colors on the Novation LaunchKey Mini MK3
# This file demonstrates how to use midi codes to control the color of the
# keypads on a Novation LaunchKey mini; There is no official documentation of
# it as far as I can tell
#
# the LaunchKey MK2 Programmer's guide is useful, though not accurate to
# details on the MK3 mini:
# https://customer.novationmusic.com/sites/customer/files/novation/downloads/10535/launchkey-mk2-programmers-reference-guide.pdf
import random
import time
@yig
yig / zoom-defang.sh
Last active September 11, 2023 11:54
Defang the macOS Zoom Installer. Extracts a .app that can be dragged to /Applications.
#!/bin/sh
## Author: Yotam Gingold
## License: CC0 (public domain) https://creativecommons.org/share-your-work/public-domain/cc0/
## URL: https://gist.github.com/yig/af5bbb054bb9c4de39abc9156e6863e1/
## Download the latest Zoom installer.
echo "==> Downloading the latest Zoom installer."
cd ~/Downloads
## Intel:
@jamieweavis
jamieweavis / macos-app-icon.md
Last active May 13, 2024 10:06
How to create an .icns macOS app icon
@josephernest
josephernest / wavfile.py
Last active March 17, 2024 02:54
wavfile.py (enhanced)
# wavfile.py (Enhanced)
# Date: 20190213_2328 Joseph Ernest
#
# URL: https://gist.github.com/josephernest/3f22c5ed5dabf1815f16efa8fa53d476
# Source: scipy/io/wavfile.py
#
# Added:
# * read: also returns bitrate, cue markers + cue marker labels (sorted), loops, pitch
# See https://web.archive.org/web/20141226210234/http://www.sonicspot.com/guide/wavefiles.html#labl
# * read: 24 bit & 32 bit IEEE files support (inspired from wavio_weckesser.py from Warren Weckesser)
@HokieGeek
HokieGeek / ifttt.sh
Last active December 1, 2017 16:24
IFTTT Maker Channel Bash Script
#!/bin/bash
(( $# <= 0 )) && exit 1
key=REPLACE_ME
read event values <<<$(echo -n "$@" | awk 'NR > 1 { $0=sprintf("\"value%d\":\"%s\",", NR-1, $0) } 1' RS=' ' ORS=' ' | sed 's/, $//')
curl --request POST \
--header 'Content-Type: application/json' \
--data '{'"${values}"'}' \
@albertomm
albertomm / install_patched_rsync.sh
Last active May 12, 2017 02:32
Install rsync 3.1.2 with detect-renamed patch from source
wget https://download.samba.org/pub/rsync/rsync-3.1.2.tar.gz
wget https://download.samba.org/pub/rsync/rsync-patches-3.1.2.tar.gz
tar xzvf rsync-3.1.2.tar.gz
tar xzvf rsync-patches-3.1.2.tar.gz
cd rsync-3.1.2/
patch -p1 <patches/detect-renamed.diff
@kylev
kylev / MIDI_Visual_Metronome.ino
Last active October 29, 2020 15:38
This is the code for an Arduino MIDI "visual metronome". I wrote it using a Sunfounder Uno R3 and a Sparkfun MIDI shield (with only the MIDI In connector installed).
/**
* MIDI Visual Metronome
*
* Developed on Sparkfun Uno R3 and Sparkfun MIDI Shield.
*
* Reqires the popular FortySevenEffects MIDI library:
* https://github.com/FortySevenEffects/arduino_midi_library
*
* The intended application is with MIDI and electronic music in
* a situation where proper stage or in-ear monitors are not
@bsweger
bsweger / markdown-table-to-html.py
Last active April 25, 2021 04:23
Convert markdown table rows to html (we converted some markdown tables to html so we could use the "scope" attribute in the header rows for accessibility).
#tabedata.txt is a file that contains the piped markdown table rows
with open ('markdownrows.txt') as f:
content = f.readlines()
rows = []
for c in content:
cells = c.split('|')
cells = ['<td>{}</td>'.format(cell.strip()) for cell in cells]
rows.append(cells)
@sebsto
sebsto / gist:19b99f1fa1f32cae5d00
Created August 8, 2014 15:53
Install Maven with Yum on Amazon Linux
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
mvn --version
@xdamman
xdamman / install_ffmpeg_ubuntu.sh
Created July 2, 2014 21:03
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update