Skip to content

Instantly share code, notes, and snippets.

View ITCMD's full-sized avatar

Lucas Elliott ITCMD

View GitHub Profile
<!DOCTYPE html>
<html>
<head><title>SOUND</title></head>
<body>
<div>Frequence: <span id="frequency"></span></div>
<script type="text/javascript">
var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
var oscillatorNode = audioCtx.createOscillator();
var gainNode = audioCtx.createGain();
@andysc
andysc / cpu.pl
Last active April 6, 2022 03:03
Blink(1) CPU monitor for linux. A little perl app which uses vmstat to see how busy the CPU is, and turn the Blink(1) blue through magenta through red, accordingly, using the command-line blink1-tool
# cpu.pl
# Andy Stanford-Clark
# Feb-13
# seconds between readings from vmstat
$sample_interval = 30;
# drive a blink(1) to represent the CPU usage
# blue is low, red is high