Skip to content

Instantly share code, notes, and snippets.

View dirkmueller's full-sized avatar

Dirk Mueller dirkmueller

View GitHub Profile
@dirkmueller
dirkmueller / frankenclaps.rb
Created February 27, 2023 14:35
Frankenclaps
# Welcome to Sonic Pi
path = "/home/dirk/src/tmp/sounds/samples/frankencampus/"
use_bpm 84
if true then
sample "#{path}/door_bikeshed_close.wav", pan: 1
sleep 3
sample "#{path}/door_bikeshed_lock.wav", pan: 0
@dirkmueller
dirkmueller / saintsmelody.rb
Created February 26, 2023 22:25
o when the saints
use_bpm 120
use_synth :piano
with_fx :reverb, room: 0.4 do
2.times do
play_pattern_timed [:c4, :e4, :f4, :g4], [0.5, 0.5, 0.5, 2]
sleep 1
sleep 0.25
end
@dirkmueller
dirkmueller / kicksnareloop.rb
Last active February 28, 2023 17:32
70 rock basic drum loop
use_bpm 96
define :snare do
sample :drum_snare_hard, amp: 0.6
sample :loop_amen, onset: 6
end
define :kick do
sample :drum_heavy_kick
sample :loop_amen, onset: 0, amp: 0.6
@dirkmueller
dirkmueller / crazymelodia.rb
Last active February 26, 2023 22:19
crazy melodia - sonic pi
use_bpm 92
if true then
live_loop :kick do
sample :bd_haus
sleep 1
end
end
if true then
@dirkmueller
dirkmueller / athousandmiles.rb
Last active February 26, 2023 20:27
A thousand Miles - Sonic Pi
# Welcome to Sonic Pi
use_synth :piano
use_synth_defaults stereo_width: 1, hard: 0.4
use_bpm 95
with_fx :reverb, room: 0.75 do
play_pattern_timed [:B4], [0.25]
SPDXVersion: SPDX-2.3
DataLicense: CC0-1.0
SPDXID: SPDXRef-DOCUMENT
DocumentName: alpine:latest
DocumentNamespace: https://anchore.com/syft/image/alpine-latest-8e284dcb-71c0-4a33-b79a-d7d0641b99c9
LicenseListVersion: 3.19
Creator: Organization: Anchore, Inc
Creator: Tool: syft-0.63.0
Created: 2022-12-20T09:37:37Z
--- config.sh (revision 78)
+++ config.sh (working copy)
@@ -159,7 +159,7 @@
# Do not use any defaults. X server will detect what it needs to load
# Tested with GFX images in qemu and on chromebook
;;
- *)
+ *a13olinuxino*|*a20olinuxinolime*|*a20olinuxinomicro*|*arndale*|*bananapi*|*bananapiR2*|*beagle*|*beaglebone*|*clearfog*|*cubieboard*|*cubieboard2*|*cubietruck*|*cubox*|*cuboxi*|*fireflyrk3288*|*hifiveunleashed*|*hifiveunmatched*|*hikey*|*hikey960*|*nanopik2*|*nanopineo*|*nanopineoair*|*odroid*|*odroidc2*|*odroidc4*|*odroidxu3*|*olinuxinolime*|*olinuxinolime2*|*panda*|*paz00*|*pine64*|*rock64*|*rockpi4*|*rockpro64*|*sabrelite*|*sinovoipbpim2plus*|*sinovoipbpim2zero*|*socfpgade0nanosoc*|*tinker*|*udooneo*|*ultra96*|*zturn*|*zynqmp)
#======================================
# Add xorg config with fbdev for other boards
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
// esp8266 code size using double's: 223 bytes
// esp8266 code size using floats: 204 bytes
float datasheet_calc(int stemp) {
float temp = (stemp * 175.0f) / 65535.0f - 45.0f;
return temp;
}
#!/bin/bash
lb=$1
test -n "$1" || { echo 'need lbaas id'; exit 1; }
set -x
set -e
<!DOCTYPE html>
<html>
<head>
<title>Konfiguration</title>
<meta name='viewport' content='width=device-width'>
<style type='text/css'>
body {
font-family: Arial;
margin: 0