Skip to content

Instantly share code, notes, and snippets.

@luizomf
luizomf / README.md
Last active October 26, 2025 15:41
Cursos gratuitos de Otávio Miranda - Type Hints no Python (Em andamento) - Logging no Python (Completo) - Testes automatizados no Next.js com Vitest e Playwright (Completo) - Curso de HTML e CSS (Completo) - Cutso de Knex.js Query Builder com JavaScript (Completo) - Curso de SQL com MySQL (Completo) - Padrões de Projeto, Design Patterns (Complet…
BOUNDING_BOX_TOOL_NAME = "capture_bounding_boxes"
BOUNDING_BOX_TOOL = {
"type": "function",
"name": BOUNDING_BOX_TOOL_NAME,
"strict": True,
"description": (
"Capture normalized bounding boxes for salient regions in the provided image. "
"Each box should map to a meaningful real-world entity or text block and use clockwise point order."
),
"parameters": {
@LeCoupa
LeCoupa / redis_cheatsheet.bash
Last active October 26, 2025 14:15
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@didyouexpectthat
didyouexpectthat / recipeCategorizerOllama.py
Last active October 26, 2025 14:15
Categorize uncategorized recipes on Mealie with Ollama
import os
import requests
import json
# ---------------------------
# Configuration
# ---------------------------
MEALIE_URL = "https://subd.domain.tld/api"
MEALIE_API_KEY = "apikey"
OLLAMA_URL = "http://localhost:11434/api"
@btechmag
btechmag / calc.c
Created April 15, 2021 11:10
Simple calculator program for beginners
#include<stdio.h>
int main(int argc, char const *argv[])
{
/* c program to implement calculater fetures*/
int a,b,add,sub,mul,div;
a=2,b=2;
printf("calculater fetures:\n");
add=a+b;
sub=a-b;
mul=a*b;
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@poly-rodr
poly-rodr / set_allowances.py
Last active October 26, 2025 13:51
CLOB Allowance Setting Python + Neg Risk
from web3 import Web3
from web3.constants import MAX_INT
from web3.middleware import geth_poa_middleware
rpc_url = "" # Polygon rpc url
priv_key = "" # Polygon account private key (needs some MATIC)
pub_key = "" # Polygon account public key corresponding to private key
chain_id = 137
@eooce
eooce / auto-add-ssl-workers.js
Last active October 26, 2025 14:32
auto-add-ssl-workers
export default {
async fetch(request, env, ctx) {
const url = new URL(request.url);
// 处理 API 请求:支持 POST (/api/add-ssl) 和 GET (/?...)
if (
(url.pathname === '/api/add-ssl' && request.method === 'POST') ||
(url.pathname === '/' && request.method === 'GET' && url.searchParams.has('zoneId'))
) {
return handleApiRequest(request, url.searchParams);