Skip to content

Instantly share code, notes, and snippets.

View batdevis's full-sized avatar

Devis Battisti batdevis

View GitHub Profile
@cyriltovena
cyriltovena / demo.md
Created April 21, 2020 19:48
Loki Webinar Demo

First deploy the demo app.

kubectl apply -f tns.yaml

Make sure tiller is installed in your cluster.

Add our chart repository

helm repo add loki https://grafana.github.io/loki/charts

@sandyjmacdonald
sandyjmacdonald / install.sh
Created February 5, 2020 11:12
Temporary Pimoroni Pirate Audio installer fix
#!/bin/bash
DATESTAMP=`date "+%Y-%m-%d-%H-%M-%S"`
MOPIDY_CONFIG="/etc/mopidy/mopidy.conf"
MOPIDY_SUDOERS="/etc/sudoers.d/010_mopidy-nopasswd"
EXISTING_CONFIG=false
PYTHON_MAJOR_VERSION=3
PIP_BIN=pip3
function add_to_config_text {
// Restify Server CheatSheet.
// More about the API: http://mcavage.me/node-restify/#server-api
// Install restify with npm install restify
// 1.1. Creating a Server.
// http://mcavage.me/node-restify/#Creating-a-Server
var restify = require('restify');

SunVox Cheatsheet

inputting notes

a track is made up of this

note

@mbarzeev
mbarzeev / app.js
Last active November 18, 2016 16:20
A Metronome Directive. Taken after Chris Wilson's article (http://www.html5rocks.com/en/tutorials/audio/scheduling/).
// This is the "run" block of your main module
.run(['$window', function (window) {
// First, let's shim the requestAnimationFrame API,
// with a setTimeout fallback
window.requestAnimFrame = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function (callback) {
@bjhess
bjhess / st_cheat.txt
Created January 11, 2012 21:39
Sublime Text Cheatsheet
Navigation:
cmd-p Goto Anything ('@' for functions, ':' for line number)
cmd-r Function finder
ctl-g Goto line number
cmd-sft-p Command palette
cmd-sft-f Find in Files
cmd-opt-r Toggle regex when finding
cmd-opt-# Columns
ctr-# Switch columns