Skip to content

Instantly share code, notes, and snippets.

View niclashoyer's full-sized avatar

Niclas Hoyer niclashoyer

View GitHub Profile
@niclashoyer
niclashoyer / convert.py
Created October 19, 2022 22:06
Simple script to convert arduino music to music for the "sensor watch". Run this in apps/buzzer-test/!
#!/bin/env python3
# simple script to convert notes from https://github.com/robsoncouto/arduino-songs
# to note/durations for use in apps/buzzer-test/
# from https://github.com/joeycastillo/Sensor-Watch
tempo = int(input("tempo in bpm (e.g. 120): "))
print("melody string (e.g. \"NOTE_B4,2,NOTE_E5,2\")")
print("Ctrl-D or Ctrl-Z ( windows ) to continue")
melody_str = ""
@niclashoyer
niclashoyer / gen-webid-cert.sh
Created April 26, 2012 10:14 — forked from njh/_README.md
Shell script to create a WebID certificate using OpenSSL
#!/bin/sh
#
# gen-webid-cert.sh: WebID Self-signed Certificate Generator
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.