This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
default=172.20.10 | |
if [ -z $1 ] | |
then | |
prefix=$default | |
else | |
prefix=$1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
. /usr/tests/sys/common/vnet.subr | |
create_jail() | |
{ | |
addr=$1 | |
jailname=zeist-${addr} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
basedir=$1 | |
outdir=music | |
for track in $basedir/*m4a | |
do | |
#echo $track | |
info=`mp4info $track` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "allwinner,sun8i-h3"; | |
}; | |
&{/soc/i2c@1c2ac00} { | |
adc@48 { | |
compatible = "ti,ad1115"; |
NewerOlder