Skip to content

Instantly share code, notes, and snippets.

View guiofsaints's full-sized avatar
💡
Everyday I have a new idea

Gui Santos guiofsaints

💡
Everyday I have a new idea
View GitHub Profile
parameters:
- title: Volumes Root
properties:
volumes:
type: array
title: Configurações de Volume Root
items:
type: object
properties:
deleteOnTermination:
@guiofsaints
guiofsaints / gist:ae6e8424f6cc45c39dc18c46c06602ab
Created July 2, 2025 21:23
deep technical analysis of the project's frontend
You are a frontend architect and UI/UX design system specialist. Your task is to perform a deep technical analysis of the project's frontend and design implementation.
Project Stack:
Next.js 15
React
TailwindCSS
shadcn/ui
Design system (if present)
Your Tasks:
@guiofsaints
guiofsaints / sync.sh
Created April 19, 2025 15:32
Sync Obisdian
#!/bin/bash
# Path to the current directory (where the script is being executed)
VAULT_PATH=$(pwd)
COMMIT_MESSAGE="Update notes - $(date '+%Y-%m-%d %H:%M:%S')"
# Navigate to the vault directory
cd "$VAULT_PATH" || {
echo "Error: Vault directory not found."
exit 1
@guiofsaints
guiofsaints / canvasDownload.js
Created November 27, 2021 18:08 — forked from Kaundur/canvasDownload.js
JS to automatically download canvas as a png
// This code will automatically save the current canvas as a .png file.
// Its useful as it can be placed in a loop to grab multiple canvas frames, I use it to create thumbnail gifs for my blog
// Only seems to work with Chrome
// Get the canvas
var canvas = document.getElementById("canvas");
// Convert the canvas to data
var image = canvas.toDataURL();
// Create a link
var aDownloadLink = document.createElement('a');
@guiofsaints
guiofsaints / 1.README.md
Created November 1, 2021 18:28 — forked from varemenos/1.README.md
Git log in JSON format

Get Git log in JSON format

git log --pretty=format:'{%n  "commit": "%H",%n  "abbreviated_commit": "%h",%n  "tree": "%T",%n  "abbreviated_tree": "%t",%n  "parent": "%P",%n  "abbreviated_parent": "%p",%n  "refs": "%D",%n  "encoding": "%e",%n  "subject": "%s",%n  "sanitized_subject_line": "%f",%n  "body": "%b",%n  "commit_notes": "%N",%n  "verification_flag": "%G?",%n  "signer": "%GS",%n  "signer_key": "%GK",%n  "author": {%n    "name": "%aN",%n    "email": "%aE",%n    "date": "%aD"%n  },%n  "commiter": {%n    "name": "%cN",%n    "email": "%cE",%n    "date": "%cD"%n  }%n},'

The only information that aren't fetched are:

  • %B: raw body (unwrapped subject and body)
  • %GG: raw verification message from GPG for a signed commit
@guiofsaints
guiofsaints / nginx-tuning.md
Created July 25, 2018 01:09 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@guiofsaints
guiofsaints / composer.json
Created April 26, 2017 14:39 — forked from andyshinn/composer.json
Docker Compose PHP Composer Example
{
"require": {
"mfacenet/hello-world": "v1.*"
}
}
@guiofsaints
guiofsaints / composer.json
Created April 26, 2017 14:39 — forked from andyshinn/composer.json
Docker Compose PHP Composer Example
{
"require": {
"mfacenet/hello-world": "v1.*"
}
}
@guiofsaints
guiofsaints / outline_shader.cs
Created February 9, 2017 14:03
Character outline behind objects in unity
Shader "Outlined/Outline Diffuse"
{
Properties
{
_Color ("Main Color", Color) = (.5,.5,.5,1)
_OutlineColor ("Outline Color", Color) = (0,0,0,1)
_Outline ("Outline width", Range (0.0, 0.03)) = .005
_MainTex ("Base (RGB)", 2D) = "white" { }
}