Skip to content

Instantly share code, notes, and snippets.

View lpenaud's full-sized avatar
💻
Working

Loïc Penaud lpenaud

💻
Working
View GitHub Profile
@lpenaud
lpenaud / Activity.md
Last active August 12, 2025 19:27
Copy file with the modified time

Activity

A script to sync activities *.FIT from my Garmin smartwatch.

Usage

Strict

deno run https://gist.githubusercontent.com/lpenaud/4bc8dce6c69d80a3a65bf4c59b4c4e5a/raw/activity.ts INDIR OUTDIR
@lpenaud
lpenaud / radio-browser.ts
Created May 8, 2024 14:07
Generate m3u playlist from radio-browser.info
import { CsvParseStream } from "https://deno.land/[email protected]/csv/mod.ts";
export interface RadioSearchOptions {
hidebroken?: boolean;
order?: "clickcount";
reverse?: boolean;
language?: string;
tagList?: string;
codec?: string;
limit?: number;
@lpenaud
lpenaud / export-picture.sh
Created April 6, 2024 20:18
Export folder picture from flac
#!/bin/bash
if [ $# -eq 0 ]; then
printf "Usage: %s INDIR [...INDIRS]\n" "${0}" >&2
exit 1
fi
# track
function get_mimetype () {
local line
@lpenaud
lpenaud / split-mp3.sh
Created March 17, 2024 16:19
Split mp3
#!/bin/bash
if [ $# -ne 3 ]; then
printf "Usage: %s LIST INFILE OUTDIR\n" "${0}"
exit 1
fi
function add_seconds () {
echo $(( $1 + $2 ))
}