Skip to content

Instantly share code, notes, and snippets.

KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@daveebbelaar
daveebbelaar / llm_factory.py
Created August 17, 2024 13:22
LLM Factory with Instructor
from typing import Any, Dict, List, Type
import instructor
from anthropic import Anthropic
from config.settings import get_settings
from openai import OpenAI
from pydantic import BaseModel, Field
class LLMFactory:
@cheadrian
cheadrian / Chrome Extension Manifest V3 Firebase Javascript.md
Last active June 7, 2025 01:35
Insert Firebase inside website using Chrome Extension with Manifest V3. Web Version 9 CDN modular Firebase Firestore local JS.
@darrenli6
darrenli6 / compose.yaml
Last active June 7, 2025 01:35
n8n vps install
services:
svr_n8n:
image: n8nio/n8n
container_name: n8n_container
environment:
- N8N_SECURE_COOKIE=false
- N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
- N8N_EDITOR_BASE_URL=${EXTERNAL_IP}
- WEBHOOK_URL=${EXTERNAL_IP}
- N8N_DEFAULT_BINARY_DATA_MODE=filesystem
import multiprocessing
import time
from collections import deque
class ThrottleBarrier():
def __init__(
self,
counter: multiprocessing.Value,
lock: multiprocessing.Lock,
@rxaviers
rxaviers / gist:7360908
Last active June 7, 2025 01:32
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@FMudanyali
FMudanyali / bad_apple.c
Last active June 7, 2025 01:30
Bad Apple CLI (far from perfect)
#include <stdio.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <time.h>
#include <libavformat/avformat.h>
#include <unistd.h>
void draw_bmp(uint32_t frame_count, char *filename, uint8_t framerate){
FILE *bmp_handle;
FILE *buffer_handle;
@jlcarrillog
jlcarrillog / 01-README.md
Last active June 7, 2025 01:27
IM | 2a | CRUD

Datos

CREATE TABLE [Empleado](
    [Id] [uniqueidentifier] NOT NULL,
    [Nombre] [nvarchar](128) NOT NULL,
    [Edad] [tinyint] NOT NULL,
    [Foto] [nvarchar](max) NULL,
    CONSTRAINT PK_Empleado PRIMARY KEY ([Id])
);
@Lauszus
Lauszus / 80-can.network
Last active June 7, 2025 01:25
Ubuntu 20.04 auto configure CAN bus interfaces using systemd
[Match]
Name=can*
[CAN]
BitRate=250000
RestartSec=100ms
# Put this file in: "/etc/systemd/network/" and then run "sudo systemctl enable systemd-networkd" to enable systemd-networkd
# Now start systemd-networkd: "sudo systemctl start systemd-networkd"
# Credit: https://github.com/linux-can/can-utils/issues/68#issuecomment-584505426