Skip to content

Instantly share code, notes, and snippets.

View alexisklisch's full-sized avatar
🐷
Focusing

Alexis Fleitas Klisch alexisklisch

🐷
Focusing
View GitHub Profile
@charlesteh
charlesteh / cf-workers-ai-bge-small.js
Last active March 22, 2025 09:38
Cloudflare Workers AI baai/bge-small deployment script
// Made by @charlestehio: https://x.com/charlestehio
// Usage: https://abc.workers.dev/?query=your%20embedding%20query
import { Ai } from './vendor/@cloudflare/ai.js';
export default {
async fetch(request, env) {
// Parse the URL to get query parameters
const url = new URL(request.url);
var query = url.searchParams.get('query');
@bouroo
bouroo / sse-worker.js
Last active December 23, 2025 20:36
example for cloudflare worker server-sent events
/**
* Cloudflare Worker for Server-Sent Events (SSE)
*
* This worker demonstrates how to set up an SSE endpoint
* that sends an initial message and then periodic updates.
*/
// Listen for incoming requests
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request));
@xezpeleta
xezpeleta / README.md
Last active January 26, 2024 16:40
Video stabilization with Dockerized FFMPEG
#
# ffmpeg shipped with Ubuntu 18.04 doesn't have libvidstab enabled
# That's why I'm using a dockerized ffmpeg
#

docker run -it -v $(pwd):/tmp jrottenberg/ffmpeg -i /tmp/myvideo.mp4 -vf vidstabdetect=shakiness=5:show=1 /tmp/dummy.mp4
docker run -it -v $(pwd):/tmp jrottenberg/ffmpeg -i /tmp/myvideo.mp4 -vf vidstabtransform,unsharp=5:5:0.8:3:3:0.4 /tmp/stabilized-output.mp4
@hlorand
hlorand / vidstab_ffmpeg.md
Last active November 29, 2025 16:04
Video stabilization using VidStab and FFMPEG

Video stabilization using VidStab and FFMPEG

** Step 1 **

Install ffmpeg with the vidstab plugin.