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,
| # alias git pour les francophones | |
| [alias] | |
| pousse = push | |
| aspire = pull | |
| tige = branch | |
| rajoute = add | |
| bouge = mv | |
| montre = show | |
| fusionne = merge |
| #!/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 |
| sudo apt-get -q update | |
| sudo apt-get install -q -y \ | |
| git \ | |
| supercollider \ | |
| ruby2.0 \ | |
| libqscintilla2-dev \ | |
| ruby-dev \ | |
| cmake \ | |
| pkg-config \ | |
| libffi-dev \ |
| # 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 |
| 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 |
| #!/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" ] |
| # 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), | |
| ] |
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,
| #!/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. |
| $ 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 |