Skip to content

Instantly share code, notes, and snippets.

View savez's full-sized avatar

Saverio Menin savez

View GitHub Profile
@savez
savez / AGENTS.md
Created May 7, 2026 09:23
AGENTS.md - LLM wiki (LLM agnostic)

LLM Wiki

A persistent, interlinked knowledge base maintained by an LLM agent. Based on Andrej Karpathy's LLM Wiki pattern (https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f).

This file is the schema. It is read by any agent operating on the wiki (OpenCode, Claude Code, Codex). Symlink CLAUDE.md and OPENCODE.md to this file so all agents follow the same conventions.

Purpose

@savez
savez / dynamodb-example-local.md
Created November 16, 2021 20:00
DynamoDB local DEV on serverless.yml

DYNAMODB-LOCAL

  1. CREARE LA CARTELLA dbdata NELLA ROOT DEL PROGETTO
  2. CREARE I CONTAINER DEFINENDOLI COSì NEL docker-compose.yml:
  dynamodb:
    image: amazon/dynamodb-local
    ports:
      - 8000:8000
    working_dir: /home/dynamodblocal
    command: "-jar DynamoDBLocal.jar -sharedDb"
@savez
savez / savePdf.test.js
Created August 23, 2021 09:00
JEST test spyOn for function into modules
const savePdf = receiveExams.__get__('savePdf');
const base64 = require('base64topdf');
describe('receiveExams is loaded', () => {
let fastifyInstance = null;
fastifyInstance = fastify();
let base64String = '';
it('should save the pdf file', async () => {
@savez
savez / momentBuisnessDay.js
Last active February 16, 2021 10:17
Function js for add buisnessDay
'use strict'
const moment = require('moment')
const addDay = (date, incrementDay) => {
const Sunday = 0
const Saturday = 6
let daysRemaining = incrementDay
const newDate = moment(data).clone()
@savez
savez / lunch.json
Last active August 26, 2021 16:56
config for nodejs Debug SLS framework sls offline
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"runtimeExecutable": "/Users/saveriomenin/.nvm/versions/node/v12.0.0/bin/node",
"type": "node",
"request": "launch",
@savez
savez / base64ToArrayBuffer.js
Created July 24, 2020 07:06
Download Blob stream in JS Vuejs
// var data base64 element
function base64ToArrayBuffer(data) {
var binaryString = window
.atob(data);
var binaryLen = binaryString.length;
var bytes = new Uint8Array(
binaryLen);
for (var i = 0; i < binaryLen; i++) {
var ascii = binaryString
.charCodeAt(i);
certbot certonly --expand -d <domain1> -d <domain2>
@savez
savez / docker_appunti.md
Last active December 7, 2017 09:30
Docker appunti

#Lista container

docker ps -a

#Start & Stop container

docker start container-name
docker stop container-name
@savez
savez / letsencrypt.md
Last active March 21, 2018 11:36
letsencrypt manual certificate (es. for AppEngine)