Skip to content

Instantly share code, notes, and snippets.

View adventureloop's full-sized avatar

Tom Jones adventureloop

View GitHub Profile
@adventureloop
adventureloop / gist:88b983848813766b58474cffba309550
Created April 19, 2024 20:45
Create an opml file from a plain text file of urls
with open("urls.txt") as f:
print('<opml version="2.0">')
print('<head>')
print('</head>')
print('<body>')
for l in f.readlines():
l = l.strip()
print('<outline text="{}" type="rss" xmlUrl="{}" />'.format(l,l))
#!/bin/sh
default=172.20.10
if [ -z $1 ]
then
prefix=$default
else
prefix=$1
fi
#!/bin/sh
set -e
. /usr/tests/sys/common/vnet.subr
create_jail()
{
addr=$1
jailname=zeist-${addr}
//This minimalistic program shows how to play udio with OSS. It outputs 1000 Hz sinewave signal (based on a 48 step lookup table).
//This is pretty much the simpliest possible audio playback program one can imagine. It could be possible to make it even simplier by removing all error checking but that is in no way recommended.
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/soundcard.h>
int fd_out;
#SCOTTISHCONSULATEBANDPLANTHERM
136kHz
136 kHz BW UK
135.7-137.8 kHz 200 Hz CW,QRSS
LICENCE NOTES: Amateur Service
- Secondary User.
1 Watt (0 dBW) erp
#!/bin/zsh
basedir=$1
outdir=music
for track in $basedir/*m4a
do
#echo $track
info=`mp4info $track`
#!/usr/bin/env python
import time
import random
import colorsys
import numpy as np
import rainbowhat as rainbow
rainbow.set_layout(rainbow.AUTO)
rainbow.rotation(0)
#!/usr/bin/env python
import time
import random
import colorsys
import numpy as np
import rainbowhat as rainbow
rainbow.rotation(0)
rainbow.brightness(1.0)
#!/usr/bin/env python
import colorsys
import time
from sys import exit
try:
import numpy as np
except ImportError:
exit('This script requires the numpy module\nInstall with: sudo pip install numpy')
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun8i-h3";
};
&{/soc/i2c@1c2ac00} {
adc@48 {
compatible = "ti,ad1115";