Skip to content

Instantly share code, notes, and snippets.

View bonnee's full-sized avatar
🏎️

Matteo Bonora bonnee

🏎️
View GitHub Profile
@bonnee
bonnee / Dockerfile
Created November 7, 2022 17:05
Dockerized gem5 19 for ALPHA
FROM gcr.io/gem5-test/ubuntu-18.04_all-dependencies:v21-0
COPY ./opt /opt
RUN apt-get -y update && apt-get install -y vim
RUN apt-get -y clean
ENV PATH="/opt/gem5/build/ALPHA:/opt/alphaev67-unknown-linux-gnu/bin:${PATH}"
@bonnee
bonnee / sip_keypad.svg
Created August 3, 2021 17:31
SIP phone keypad matrix
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bonnee
bonnee / RAIDiator 4 config backup
Created October 1, 2020 14:09
Netgear ReadyNAS config backup script. Tested on a ReadyNAS Duo v1 with RAIDiator 4.1
curl --insecure --request POST --user username:password "https://address/get_handler" --data "command=ConfigBackupBackup&PAGE=System&OPERATION=set&everything=on" --output "READYNAS_$(date +%F-%R).zip"
@bonnee
bonnee / dnsbench.sh
Created August 22, 2020 13:11
dnsbench.sh: DNS resolver benchmark utility
#!/bin/zsh
RANK_URL="https://moz.com/top-500/download/?table=top500Domains"
echo "Downloading domain list..."
list=$(curl -fsSL "$RANK_URL" | awk -F, '{if (NR!=1) print $2}')
sum=0
while read line;
do
@bonnee
bonnee / autossh.service
Last active January 29, 2022 10:44
Systemd service file to keep an ssh reverse tunnel open
[Unit]
Description=Keeps a tunnel to home open
After=network.target
[Service]
User=<username>
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
@bonnee
bonnee / stm32vscode.md
Last active June 14, 2024 02:19
STM32 developement on Visual Studio Code

STM32 developement on Visual Studio Code

This guide will help you install and setup Visual Studio Code for programming and debugging STM32 boards.

I tested this guide under Arch Linux and Ubuntu 18.04. If you get it to work under other setups, please let me know so I will update the steps with more info.

Warning

If you were using STM32CubeIDE or SystemWorkbench before, you need to convert your projects in order for them to work. The conversion procedure is fully reversible.
Up until the time of writing this guide, it is not possible to use STM32CubeIDE and Visual Studio Code on the same project unless some configuration changes are made on CubeIDE. Besides that, it is reccomended that every person that works on a project runs the same working environment.