Skip to content

Instantly share code, notes, and snippets.

@detherminal
detherminal / brave_two_finger_touchpad.sh
Last active December 18, 2025 03:48
Brave Browser Wayland Two (2) Finger Touchpad Gesture Swipe History Back And Forth Enabling
# To add two-finger gesture to back and forth swiping, follow this steps with shell
# 1 - Open .desktop file with nano
sudo nano /usr/share/applications/brave-browser.desktop
# 2 - Move to a little bottom, edit the place where it is `Exec=` to match this
Exec=/usr/bin/brave-browser-stable %U --ozone-platform=wayland --enable-features=TouchpadOverscrollHistoryNavigation
# Use `Ctrl-O` to write and `Ctrl-X` to exit
# Now restart the brave browser and you will be able to swipe back and forth with two-finger touchpad gestures.
@sisimomo
sisimomo / actionnable-task-reminder.yaml
Created November 6, 2023 01:33
Actionnable Task Reminder - A Powerful Task Reminder Automation
blueprint:
name: Actionnable Task Reminder
description: |
# Send an actionable and snoozable reminder notification
Send a notification to the provided notification service to remind you a recurring task or event.
Supports full customizable notification, snooze options and recurrency control.
Support custom action when acknowledge the reminder.
@mrwogu
mrwogu / actionnable-task-reminder.yaml
Last active December 18, 2025 03:42 — forked from sisimomo/actionnable-task-reminder.yaml
Actionnable Task Reminder - A Powerful Task Reminder Automation
blueprint:
name: Actionnable Task Reminder
description: |
# Send an actionable and snoozable reminder notification
Send a notification to the provided notification service to remind you a recurring task or event.
Supports full customizable notification, snooze options and recurrency control.
Support custom action when acknowledge the reminder.
@ahmed-jibran
ahmed-jibran / ffmpeg_useful_cmd.sh
Last active December 18, 2025 03:41
Frame dump from a video using ffmpeg
# Frame dump from a raw video
ffmpeg -f rawvideo -framerate 25 -s 1280x720 -pixel_format yuv420p -i in.yuv -c copy -f segment -segment_time 0.01 frames%d.yuv
# Frame dump from a compressed video such as mp4 or mov file
ffmpeg -i in.mp4 -vf scale=800:1280 -pix_fmt nv12 -f segment -segment_time 0.01 -vframes 14 frames-nv12-800-%d.yuv
#PNG Dump
ffmpeg -i singapore-skyscraper.mov -vf scale=640:480 -vframes 1 haps-demo-640-primary%d.png
# List available formats for ffmpeg
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dark Web Monitor Simulator</title>
<style>
* {
margin: 0;
padding: 0;
@flyingwebie
flyingwebie / twenty-docker-compose.yaml
Last active December 18, 2025 03:34
Host Twenty CRM in your Coolify system
# documentation: https://twenty.com/developers/section/self-hosting
# slogan: Open-source CRM platform for modern teams with customizable workflows and integrations
# tags: crm,productivity,sales,open-source,business
# logo: svgs/twenty.svg
# port: 3000
name: twenty
services:
server:
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

Claude Code Skill Budget Research

TL;DR: Claude Code has an undocumented ~16,000 character budget for skill metadata. With typical 263-char descriptions, only ~42 skills fit. To show more skills, compress descriptions to ≤130 characters. Note: This is a skills-specific limit—the Tool Search Tool's defer_loading feature does NOT apply to skills.


The Problem

When using Claude Code with 63 installed skills, the system prompt showed:

@perrijuan
perrijuan / WSL2GUIWSLg-XWayland-en.md
Created December 18, 2025 03:24 — forked from tdcosta100/WSL2GUIWSLg-XWayland-en.md
A tutorial to use GUI in WSL2/WSLg replacing original Xorg by Xwayland, allowing WSL to work like native Linux, including login screen

Full desktop shell in WSL2 using WSLg (XWayland)

Note

If you want to use Wayland in WSLg in a simpler setup, you can try the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2. No additional software outside WSL (like VcXsrv or GWSL) is required. You will find this tutorial very similar to the one that replaces Xorg with Xvnc. Indeed, it's pretty much the same tutorial, with some few changes.

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc), and after that, replace the default Xorg by a script that calls Xwayland instead.

For this setup, I will use Ubuntu 24.04, and install GNOME Desktop. Unfortunately older versions of Ubuntu lack some fundamental things, so we cannot reproduce it in older versions (at least not fully). Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample screenshot

@JSinghDev
JSinghDev / LXCBindMount.md
Last active December 18, 2025 03:20 — forked from ajmassi/LXCBindMount.md
Create a bind mount from a Proxmox host on an unprivileged lxc container

Proxmox Assign Bind Mount To Unprivileged Container

In order for the LXC container to have full access the proxmox host directory, a subgid is set as owner of a host directory, and an ACL is used to ensure permissions.

Bind Mount dataset to LXC

Add the following line to /etc/pve/lxc/<CT_ID>.conf

mp0:/mount/point/on/host,mp=/mount/point/on/lxc

OR

pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared