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
0 0.5 | |
1 10 | |
2 20.5 | |
3 30 | |
4 40.5 | |
5 50 | |
6 60.5 | |
7 70 | |
8 80.5 | |
9 90 |
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
import pathlib | |
import numpy as np | |
from PIL import Image | |
from scipy import signal | |
def filterLowPass(): | |
return signal.butter(4, 50, 'lp', fs = 1000000, output = 'sos') |
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/bash | |
# Check we are running as root! | |
if [ $EUID -ne 0 ] | |
then | |
echo "Run me as root please :P" | |
exit -1 | |
fi | |
# Check we only received one argument! |
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
# Installing dnsmasq: | |
# On macOS we can just do: `brew install dnsmasq` | |
# I guess it's something like `apt | dnf | yum install dnsmasq` on Linux-based distros... | |
# Running the server: | |
# sudo dnsmasq --conf-file=/path/to/this/file.conf --no-daemon --log-queries | |
# Check dnsmasq(8) for more info! | |
# Only listen on our Ethernet interface | |
interface=en5 |