Skip to content

Instantly share code, notes, and snippets.

View pcolladosoto's full-sized avatar
👹
Hello there!

Pablo Collado pcolladosoto

👹
Hello there!
View GitHub Profile
@pcolladosoto
pcolladosoto / vector.txt
Created April 4, 2023 08:50
Procesador de vectores separados por espacios
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
@pcolladosoto
pcolladosoto / img_filter.py
Last active March 14, 2023 16:48
An image filter based on the Fourier transform
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')
@pcolladosoto
pcolladosoto / rpi_img_mod.sh
Created August 2, 2022 14:12
A script automating RPi image modifications
#!/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!
@pcolladosoto
pcolladosoto / dhcp.conf
Created July 4, 2022 08:47
Configuration for a local Dnsmasq DHCP server
# 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