Skip to content

Instantly share code, notes, and snippets.

View virtualtam's full-sized avatar

Aurélien Tamisier virtualtam

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
#
# Backup, compress and normalize audio files from a BOSS RC-30 Loop Station
#
# Sequence:
# - dump audio content from the RC-30
# - encode and normalize audio
#
# Dependencies:
# - your favourite external storage mounting tool,
@vixus0
vixus0 / 0002-sigc-namespace.patch
Created June 5, 2016 01:37
Make sure sooperlooper uses sigc::bind and not std::bind
diff --git a/sooperlooper-1.7.3/src/engine.cpp b/sooperlooper-1.7.3/src/engine.cpp
--- a/sooperlooper-1.7.3/src/engine.cpp
+++ b/sooperlooper-1.7.3/src/engine.cpp
@@ -313,7 +313,7 @@ void Engine::set_midi_bridge (MidiBridge * bridge)
_midi_bridge->MidiControlEvent.connect (mem_fun(*this, &Engine::push_midi_control_event));
_midi_bridge->MidiSyncEvent.connect (mem_fun(*this, &Engine::push_sync_event));
- ParamChanged.connect(bind (mem_fun(*_midi_bridge, &MidiBridge::parameter_changed), this));
+ ParamChanged.connect(sigc::bind(mem_fun(*_midi_bridge, &MidiBridge::parameter_changed), this));
@genericpenguin
genericpenguin / addGroovyPostBuild.groovy
Created January 10, 2016 21:48
Jenkins Groovy script to add Groovy postbuild script to many projects
import hudson.model.FreeStyleProject
import hudson.model.Hudson
import hudson.tasks.Publisher
import org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder
import org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript;
import org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry;
// Exclusion list for job names. Job names listed here will NOT have the groovy postbuild entry added.
def exclusion_list = ["some_job_that_doesnt_need_groovy_postbuild"]
@wchargin
wchargin / Vex.jsx
Created December 10, 2015 07:15
proof-of-concept: rendering musical notes in React
import Vex from 'vexflow';
import React, {Component} from 'react';
const {
Accidental,
Formatter,
Stave,
StaveNote,
Renderer,
@wallentx
wallentx / node-exporter
Created October 14, 2015 07:26
node-exporter init script for Amazon AMI/RHEL to be used with systemv. Place in /etc/init.d/ and ensure that line 12 matches your path
#!/bin/bash
#
#
#
# Start on runlevels 3, 4 and 5. Start late, kill early.
# chkconfig: 345 95 05
#
#
#!/bin/bash
@lckarssen
lckarssen / git-log-to-tikz.rb
Last active December 17, 2022 22:08 — forked from hauspie/git-log-to-tikz.rb
Extract git history to tikz picture
#!/usr/bin/env ruby
# A small ruby script to extract a git history to a tikz picture
# Author: Michael Hauspie <Michael.Hauspie@lifl.fr>
# Author: Lennart C. Karssen <lennart@karssen.org>
#
# Not clean code, not always working well, but does its job in most of
# the cases I needed :)
#
# LCK: Added some ideas from this tex.stackexchange answer:
@jarutis
jarutis / ubuntu.sh
Last active November 9, 2020 09:01
Theano and Keras setup on ubuntu with OpenCL on AMD card
## install Catalyst proprietary
sudo ntfsfix /dev/sda2
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK
sudo apt-get remove --purge fglrx*
sudo apt-get install linux-headers-generic
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo
sudo amdconfig --initial
## install build essentials
sudo apt-get install cmake
@jgarber623
jgarber623 / delicious.html
Created December 2, 2014 06:07
A sample of the Netscape Bookmark File Format as exported from Delicious.
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<!-- This is an automatically generated file.
It will be read and overwritten.
Do Not Edit! -->
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><A HREF="https://developer.apple.com/library/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html#//apple_ref/doc/-%20uid/TP40014508" ADD_DATE="1414706885" PRIVATE="0" TAGS="javascript,mac,osx,yosemite">JavaScript for Automation Release Notes</A>
<DD>This article describes JavaScript for Automation, a new feature in OS X Yosemite.
@upa
upa / LICENSE
Last active August 23, 2022 16:42
Ansible Module for Linux Bridge and VLAN
MIT License
Copyright (c) 2021 Ryo Nakamura
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: