Skip to content

Instantly share code, notes, and snippets.

View MatteoGauthier's full-sized avatar
🌴
Working on squale.agency 🍹

Mattèo Gauthier MatteoGauthier

🌴
Working on squale.agency 🍹
View GitHub Profile
--------- beginning of main
03-28 16:22:25.376 21041 21041 I .camera.example: Late-enabling -Xcheck:jni
03-28 16:22:25.403 21041 21041 I .camera.example: Using CollectorTypeCMC GC.
03-28 16:22:25.411 21041 21041 D nativeloader: Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok
03-28 16:22:25.419 21041 21041 D ActivityThread: setConscryptValidator
03-28 16:22:25.419 21041 21041 D ActivityThread: setConscryptValidator - put
03-28 16:22:25.446 21041 21041 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10570; state: ENABLED
03-28 16:22:25.447 21041 21041 D CompatibilityChangeReporter: Compat change id reported: 242716250; UID 10570; state: ENABLED
03-28 16:22:25.488 21041 21041 D nativeloader: Configuring clns-4 for other apk /system/framework/sec_camerax_impl.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~kxbQA94vg2qniIHDClYqGw==/com.mrousavy.camera.
@MatteoGauthier
MatteoGauthier / contabo.txt
Last active March 17, 2025 16:20
Benchmark Contabo vs Hetzner vs MassiveGrid
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2025-01-01 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Mon Mar 17 02:59:04 PM GMT 2025
Basic System Information:
---------------------------------

LLM Ready PostgreSQL SQL command

script.sql creates a JSON

Process this JSOn to be LLM Ready

{...}

From this PostgreSQL schema overview, I want you to give a nicely formatted context prompt for my agent named "SQL Expert", be precise and help my agents with this raw data
@MatteoGauthier
MatteoGauthier / update-logto-app-uris.ts
Created September 30, 2024 08:30
TypeScript script to manually update logto configuration using the Management API (https://docs.logto.io/docs/recipes/interact-with-management-api/)
const LOGTO_APP_ID = process.env.LOGTO_MANAGEMENT_API_ID
const LOGTO_APP_SECRET = process.env.LOGTO_MANAGEMENT_API_SECRET
const LOGTO_API_RESOURCE = `https://${process.env.LOGTO_TENANT_ID}.logto.app/api`
const LOGTO_APP_ID_TO_UPDATE = process.env.LOGTO_CLIENT_ID
if (!LOGTO_API_RESOURCE || !LOGTO_APP_ID_TO_UPDATE || !LOGTO_APP_ID || !LOGTO_APP_SECRET) {
console.error("Missing environment variables")
process.exit(1)
}
@MatteoGauthier
MatteoGauthier / quick-installs-useful-tools.md
Last active July 19, 2024 08:30
Quick Installs - Softwares, utils used frequently (macOS and Unix installs)
@MatteoGauthier
MatteoGauthier / README.md
Last active December 17, 2024 01:56
PostgreSQL Restore backup of a .tar.gz file
@MatteoGauthier
MatteoGauthier / ffmpeg-video-snippets.md
Last active February 29, 2024 10:45
FFMPEG command snippets for video related processing

Get video framerates

Detailed video file information

ffprobe -loglevel 0 -print_format json -show_format -show_streams YOURFILE

List video files informations in the current directory

@MatteoGauthier
MatteoGauthier / touch-screen-device-webpage-setup.md
Last active February 2, 2024 14:29
Chromium Based web browser setup for touchable kiosk experience

Setup guide for a touch screen with a webpage

Prevent physical device hijacking

  • Disable access to serial ports
  • Disable physical buttons
  • Disable unnecesary wireless communication

Chromium startup with flags

@MatteoGauthier
MatteoGauthier / auth.ts
Last active January 3, 2024 01:49
Kinde OAuth as a next-auth provider
export const authOptions = {
// ...
providers: [
{
id: "kinde",
name: "Kinde",
type: "oauth",
wellKnown: `https://TENANT_ID.kinde.com/.well-known/openid-configuration`,
idToken: true,
authorization: {
float space = 10.;
vec2 p = (FC.xy * 2.0 - r) / r.y * 3.;
vec2 x, d;
for (float i = 1.0 - fract((t)); i < 25.0; i += 0.5) {
x = p + (cos(i * vec2(0.1, 0.5) + t) + vec2(0, 4.0 - i)) / i * (space / 2.0);
d = vec2(4, sin(i) * 0.4 * x * 2e-1 ) / i * 4.;
o += (cos(max(i, 3.) + vec4(0, 2, 4, 0)) + 1.0) / (length(x - d * clamp(dot(x, d) / dot(d, d), -11.0, 11.0)) + i / 1e8) / max(i * i, 5.0) * .12;
}