Skip to content

Instantly share code, notes, and snippets.

View aadm's full-sized avatar

Alessandro Amato del Monte aadm

View GitHub Profile
@aadm
aadm / 2019-04-08_imola_aprilia.md
Last active April 11, 2019 08:25
Racconto del trackday Aprilia ad Imola, 8 Aprile 2019

LA MOTO

Quattro cilindri a V di 65 gradi, duecentodiciassette cavalli all'albero, cambio elettronico con doppietta gasante in scalata, freni Brembo che sembrano quelli da MotoGP, sospensioni Ohlins, scarico Akrapovic in carbonio, alette aerodinamiche e prese d'aria sul piedino forcella per raffreddare le pinze freno. Solo a scrivere tutti questi dettagli uno appassionato di moto non puo' far altro che provare un piacere viscerale.

Poi le senti sul rettilineo di Imola (che tanto rettilineo non e') e anche guidate da mezzeseghe qualsiasi sembrano dei prototipi con un sound pazzesco, travolgente, terrificante quando poi ti ci metti su la prima volta e apri il gas.

Quando poi ci monti su, senti una moto rigida, corta, leggera, compatta (il plexiglass fin troppo piccolino! sarebbe buono avere una doppia bolla come quelle che usava Bayliss sulle 998/999 SBK, adesso pare che non vadano piu' di moda ma io ne avrei giovato).

Apri il gas in seconda e terza e la moto non ne vuole sapere di stare giu'! Tanto che

@aadm
aadm / resolve-transcode.sh
Created November 16, 2020 10:24
Bash script to transcode video and audio clips to Davinci Resolve accepted codec.
#!/bin/bash
#-------------------------------------------------------------------------------------
# Convert all clips in a directory to Davinci Resolve compatible format.
# Will work on both audio and video files.
# Creates two subdirectories in current directory:
# - ORIGINAL (where the input files will be moved after conversion)
# - TRANSCODED (where the converted files will be created)
#
# Originally I used as output format prores which made the script much
# simpler but the output files were massive. I then switched to DNxHD/DNxHR format
@aadm
aadm / sportlog.md
Last active April 29, 2021 14:29
Script to analyse sport activity log created with jrnl

This Python script is meant to be run on a journal file created with jrnl.sh where I log all my sports activities.

For example, if today I've run 7km in 40 minutes:

$ jrnl 40m 7km @CORSA

If I forgot to add last Sunday's bike ride and yesterday's run:

@aadm
aadm / seismic_viewer_app_demo.py
Created May 10, 2024 09:44
Simple interactive viewer for seismic data built with python+streamlit+segyio
# seismic_viewer_app_demo
#--------------------------------------------------------------------
#
# testing streamlit for a seismic viewer app
# using Near stack subcube from Per Avseth's QSI dataset
#
# to run:
# $ streamlit run seismic_viewer_app_demo.py
#--------------------------------------------------------------------