Skip to content

Instantly share code, notes, and snippets.

View aimxhaisse's full-sized avatar
🏠
Working from home

Sébastien Rannou aimxhaisse

🏠
Working from home
View GitHub Profile
@aimxhaisse
aimxhaisse / keybase.md
Created October 3, 2022 14:14
keybase.md

Keybase proof

I hereby claim:

  • I am aimxhaisse on github.
  • I am aimxhaisse (https://keybase.io/aimxhaisse) on keybase.
  • I have a public key whose fingerprint is 0415 66CF F1F7 9DE4 4936 30EF 999D ABE6 6D9B C76E

To claim this, I am signing this object:

@aimxhaisse
aimxhaisse / rated.bash
Created June 22, 2022 21:11
rated-cli's usage
$ bin/rated-cli --help
Beacon Chain validator ratings from the command line.
Usage:
rated-cli [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
@aimxhaisse
aimxhaisse / legacycodec.sh
Last active April 22, 2021 13:26
Shell script helper to compute the legacyCodec param for Pocket 0.6's protocol upgrade
#!/usr/bin/env bash
#
# Requirements: have JQ somehow installed.
FULL_NODE="url_to_your_full_node"
# Best-effort solution to get the status of the gov/upgrade parameter
# and infer whether or not we should use the legacy codec in Pocket
# CLI. If some error was found during the process (timeout on the full
# node, unexpected parsing error), assume we use the legacy codec.
@aimxhaisse
aimxhaisse / luigi_first_steps.md
Last active April 13, 2021 15:04 — forked from tomsing1/luigi_first_steps.md
First steps with the Luigi workflow manager

First steps with the Luigi workflow manager

As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.

The problems and solutions described in the examples below have led to the development of sciluigi,

@aimxhaisse
aimxhaisse / .rb
Last active February 12, 2021 12:48
Polynomial-C variation
# Based on Polynomial-C
use_bpm 138
chords = [
chord(:E4, :m, num_octaves: 2),
chord(:B4, :M, num_octaves: 2),
chord(:A4, :M, num_octaves: 2),
chord(:G4, :M, num_octaves: 2),
]
#!/usr/bin/env bash
echo CLEAR AU CACHE SCRIPT
if [ -f "$HOME/Library/Application Support/AU Lab/com.apple.audio.aulab_componentcache.plist" ]
then
echo deleting "$HOME/Library/Application Support/AU Lab/com.apple.audio.aulab_componentcache.plist"
rm "$HOME/Library/Application Support/AU Lab/com.apple.audio.aulab_componentcache.plist"
fi
if [ -f "$HOME/Library/Caches/AudioUnitCache/com.apple.audiounits.cache" ]
use_bpm 127
live_loop :wobble_loop do
4.times do |n|
with_fx :level, amp: 0.5 do
with_fx :wobble, phase: 0.65, cutoff_max: 129, cutoff_min: 60, res: 0, wave: 2, phase_offset: 0.8 do
use_synth :saw
play :C2, release: 0, sustain: 6
end
sleep 6
# s. rannou - mxs.sbrk.org - @aimxhaisse
#
# Bubbles with Sonic Pi.
use_bpm 123
note_base = :A2
note_offset = (ring 0, 0, 5, 7)
live_loop :beat do
@aimxhaisse
aimxhaisse / gist:fc20706e530d9d157f14
Last active July 10, 2017 15:25
Sonic-Pi Ubuntu build
sudo apt-get -q update
sudo apt-get install -q -y \
git \
supercollider \
ruby2.0 \
libqscintilla2-dev \
ruby-dev \
cmake \
pkg-config \
libffi-dev \
@aimxhaisse
aimxhaisse / pathwar-validate-coupon.bash
Last active August 29, 2015 14:20
How to validate a Pathwar coupon
#!/usr/bin/env bash
# This is a script shell that validates a Pathwar coupon
# It uses the pathwar cli tool, available at:
#
# - https://github.com/pathwar/node-pathwar
# this is the coupon you want to validate
coupon=$1