Skip to content

Instantly share code, notes, and snippets.

@Neo23x0
Neo23x0 / audit.rules
Last active March 11, 2025 10:24
Linux Auditd Best Practice Configuration
# IMPORTANT!
# This gist has been transformed into a github repo
# You can find the most recent version there:
# https://github.com/Neo23x0/auditd
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/
@pramsey
pramsey / 0-spatial-sql-postgis.md
Last active November 13, 2023 18:33
Spatial SQL and PostGIS
@martjanz
martjanz / create_table.sql
Created May 22, 2020 20:02
Text field spell checker (PostgreSQL)
CREATE TABLE dict_english (
word varchar NOT NULL
);
CREATE UNIQUE INDEX dict_english_word_idx ON dict_english (word);
'''
https://arxiv.org/abs/2312.00858
1. put this file in ComfyUI/custom_nodes
2. load node from <loaders>
start_step, end_step: apply this method when the timestep is between start_step and end_step
cache_interval: interval of caching (1 means no caching)
cache_depth: depth of caching
'''
@deepfates
deepfates / convert_archive.py
Created November 17, 2024 19:33
Convert your twitter archive into a training dataset and markdown files
import argparse
import json
import logging
import os
import re
import shutil
from concurrent.futures import ProcessPoolExecutor, as_completed
from dataclasses import dataclass
from datetime import datetime
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple
@elliott-w
elliott-w / imageAspectRatios.ts
Last active April 24, 2025 21:47
Payload CMS Image Aspect Ratios Pugin
import type {
CollectionBeforeOperationHook,
FileData,
Plugin,
UploadCollectionSlug,
} from 'payload'
type AspectRatios = Record<string, number>
type Collections = Partial<Record<UploadCollectionSlug, AspectRatios>>