Skip to content

Instantly share code, notes, and snippets.

@erikkinding
erikkinding / kafka-local-docker-compose.yaml
Last active May 18, 2025 12:27
Docker compose for local Kafka setup with kafka-ui
# This setup allows you to both connect from within the docker-compose context as well as from services running on your local
# machine but not as part of the docker-compose setup. Any client connecting to the broker from the outside can connect to
# localhost:9092 while services running as part of the docker-compose connect to broker:9093.
#
# To access kafka-ui: http://localhost:7777
#
# I hope this helps someone out there! :)
version: '3'
networks:
@hmRemi
hmRemi / README.md
Last active May 18, 2025 12:24
Make Discord Server With Tags

Discord Guild ID Hash Targeter Script

Discord no longer provides the tags feature to new servers. This could change, so I'm keeping this active and seeking other ways to get a tag server. I still recommend trying create guilds within the specified hash ranges. Please support by starring this gist and joining our Discord (link below).

Also, selling a script for a fully customizable rotating clan tag. (colors and badge icon - join discord to buy)

Version: 1.2.5 (as per CONFIG.SCRIPT_VERSION in the script)
Discord: https://discord.gg/wSWYhQMdbA | @ziue
Telegram: https://t.me/reveredev/

@jimmy947788
jimmy947788 / spdlog_snippets.c
Created August 16, 2022 15:40
方便使用 spdlog 設定
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE //一定要在 spdlog.h 之前定義
#include <spdlog/spdlog.h>
#include <spdlog/async.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/sinks/daily_file_sink.h>
int main(){
// 清掉已註冊logger
spdlog::drop_all();
@maximus2600
maximus2600 / prompt.md
Created May 18, 2025 06:36
collection of nanobrowser prompts

hf papers

- Go to https://huggingface.co/papers and click through each of the top 3 upvoted papers.
- For each paper:
  - Record the title, URL and upvotes
  - Summarise the abstract section
- Finally, compile together a summary of all 3 papers, ranked by upvotes

passed: 100%

@maximus2600
maximus2600 / local.md
Created May 18, 2025 06:22
using nanobrowser with local llm

install inference engine

install llama.cpp: go to https://github.com/ggml-org/llama.cpp and follow the instructions of your platform. Alternatively you can use other inference engines of your choice.

install OpenAI compatible layer

install llama-swap: https://github.com/mostlygeek/llama-swap and follow the instruction

download model

Best model which fits in 12GB VRAM to date is https://huggingface.co/prithivMLmods/Ophiuchi-Qwen3-14B-Instruct choose a quantization which fits in the VRAM and still has enough room fo the context. Nanabrowser uses a lot of tokens (>10K).

configuration

llama-swap

 ttl: 300
@steipete
steipete / concat.sh
Created May 17, 2025 23:32
Squashes a whole codebase into one text file, skipping build artefacts, copies it right into the clipboard.
#!/usr/bin/env bash
#
# concat.sh [root-dir] [output-file]
#
# Squashes a whole codebase into one text file, skipping build artefacts:
# • ignores node_modules, dist, .git, .turbo, .next, out
# • omits lockfiles and *.min.* noise
# • copies the result straight to the macOS clipboard (pbcopy)
#
# Example:
@timoxley
timoxley / MyWorldSubsystemBlueprintBase.h
Last active May 18, 2025 12:20
Subclass this to implement a world subsystem in Blueprint. Supports Timers! #unrealengine #ue5
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Editor.h"
#include "Engine/AssetManager.h"
#include "Engine/BlueprintGeneratedClass.h"
#include "Engine/World.h"
;;=============== play with flow ==============
(require '[clojure.core.async :as async]
'[clojure.core.async.flow :as flow]
'[clojure.pprint :as pp]
'[clojure.datafy :as d]
'[clojure.walk :as w])
(set! *warn-on-reflection* true)
(defn monitoring [{:keys [report-chan error-chan]}]
@ZacharyPatten
ZacharyPatten / ConsoleInput.md
Last active May 18, 2025 12:13
Beginner's Guide To Console Input In C#

Beginner's Guide To Console Input In C#

Note: I recommend reading this gist in order because Examples 1-6 build on each other.

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs