Skip to content

Instantly share code, notes, and snippets.

View gianpaj's full-sized avatar

Gianfranco P gianpaj

View GitHub Profile
@gianpaj
gianpaj / mingfei-20261127-transcript.md
Created December 1, 2026 13:41
Mingfei lecture — 2026-11-27

Mingfei lecture — 2026-11-27

Source: https://dh-course-media-1251712172.cos.ap-shanghai.myqcloud.com/lecture-12-speech-audio/video/mingfei-20261127.mp4

Audio duration: 53m44s. Machine transcription using Gemini 3.5 Transcribe, verbatim mode, six chunks. Original spoken language retained. Timestamps and speaker labels are estimates; labels C1–C6 and G1–G4 (focused gap checks) are chunk-local and do not identify people or imply six different speakers. Four long gaps were re-transcribed separately, recovering speech from an embedded Chinese demo. Not manually word-for-word proofread. Audio demos may contain non-speech.

[00:00:02] C1/spk:0

um human robotic interaction and also meta ready labs on our special audio visual synthesis. And I also I'm honored to get Google fellowship and get supported by them for machine perception research. So yeah so why this audio speech and sound really important for digital human and also for some future applications. So one thing here I want to mention that

AudioSlim - Full App Implementation Plan

Context

AudioSlim is a Tauri v2 desktop app for converting/compressing audio files using ffmpeg. The current state is a minimal scaffold: a single convert_to_mp3 Rust command with a hardcoded file path in the React frontend. The goal is to build a complete, usable app that supports multiple files, multiple output formats, and ffmpeg compression options.

Approach: System ffmpeg (not bundled). Output files saved alongside input files. Sequential file processing (ffmpeg is already multi-threaded internally). Show before/after file sizes after conversion.


Design a clean, modern React and Shadcn webpage using TailwindCSS 3 for a simple free audio converter. The tool lets users upload audio/video files (e.g., WAV, MP3, MP4, AAC, FLAC, OGG) and converts them using ffmpeg. The interface should feel friendly and non-technical, with very few options. Focus on a smooth user flow:

  • Large drag-and-drop upload area
  • Auto-detect input format and a minimal dropdown for output format
  • Clear convert button and progress indicator
  • Simple success state with a download button
  • Desktop-first layout, but responsive for mobile
  • Download Section appears after conversion. Big "Download" button with file info
  • Footer. Brief "Powered by FFmpeg" note. Add a disclaimer that files are not sent to any servers. All the data is processed in the user's browser.
  • Light, welcoming visual style with good spacing and intuitive icons
pure movements, a serenade to all my friends in Dublin, Malaga and around the world.
Recorded on: 2025-11-01_14h
00:00 Monkey Safari - Sign - Avidus Remix
03:25 Damian Lazarus & The Ancient Moons - I Found You - Patrice Bumel Remix
07:05 Avalon Emerson - The Frontier
11:15 VONDA7 - Graceful Movements - Original Mix
15:45 Stil & Bense - Serenade
19:10 Acid Mondays - We End In A Dream - Radio Edit
@gianpaj
gianpaj / README.md
Created October 1, 2025 22:16
LoCoBench - example data
# AquaForge Utility Data Lake (`data_lake`)

> **Hexagonally-architected telemetry platform for municipal & industrial utilities.**  
> Extract, cleanse, transform, and surface multi-modal data (water, power, gas, waste, steam) at utility scale—without coupling business rules to infrastructure.

![CI](https://github.com/aquaforge/data_lake/actions/workflows/ci.yml/badge.svg)
![NPM version](https://img.shields.io/npm/v/@aquaforge/data_lake)
@gianpaj
gianpaj / ollama_vision.py
Created November 14, 2024 10:33
Send a prompt with an image to the Ollama server for vision models like Llama 3.2-vision (no external packages needed)
import argparse
import base64
import requests
import json
import sys
from pathlib import Path
def image_to_base64(image_path):
"""Convert image to base64 string"""
try:
@gianpaj
gianpaj / karabiner_20241105.json
Created November 5, 2024 19:58
Karabiner configuration to disable accent functionality from backtick button
{
"description": "non_us_backslash (backtick) fix",
"manipulators": [
{
"from": { "key_code": "non_us_backslash" },
"to": [
{ "key_code": "non_us_backslash" },
{ "key_code": "spacebar" }
],
"type": "basic"
@gianpaj
gianpaj / remove-duplicate-alert-logs-trading-view.js
Created April 8, 2023 08:25
Removes duplicate alert logs from the alert logs list in TradingView
// find all the alert logs 'div' elements that contain the text. e.g. 'BTCUSDTPERP, 15 Crossing Horizontal Line'
const listSelector = ".widgetbar-widget-alerts_log > div:nth-child(2) .message-_BiOF1cO";
// get all the alert logs 'div' elements as an array of objects. sort them by 'pair' name.
// e.g.
// { i: 0, textContent: "BTCUSDTPERP, 15 Crossing Horizontal Line", pair: "BTCUSDTPERP" }
var arr = Array.from(document.querySelectorAll(listSelector))
.map((a, i) => ({
i,
textContent: a.textContent,
db.export_without__id.insert({a:1})
db.export_without__id.insert({a:2})
db.export_without__id.insert({a:3, something_id: 'name'})
db.export_without__id.find().pretty()
{
 "_id": ObjectId("606ee1c03557e533795e426f"),
@gianpaj
gianpaj / consoletable.js
Last active July 7, 2020 18:55
console.table for mongo shell - v1.0.2
// console.table for mongo shell - v1.0.2
// https://gist.github.com/gianpaj/63e04baed150f30b8976c16b16a0010c
// originally from 447dc8b on 18 Apr 2015
// https://github.com/chinchang/konsole.table/blob/447dc8be4bcb463865f0527ed6aef4da864d6558/index.js
var SEPARATOR = '│';
/**
* Repeat provided string a given no. of times.