Skip to content

Instantly share code, notes, and snippets.

@cemizm
cemizm / aqara_fp300.py
Last active December 20, 2025 14:54
Aqara FP300 Presence Sensor
from __future__ import annotations
from dataclasses import dataclass
from typing import Any, Final
from zigpy import types as t
from zigpy.quirks.v2 import QuirkBuilder, ReportingConfig
from zigpy.quirks.v2.homeassistant import EntityType, UnitOfTime, UnitOfLength
from zigpy.quirks.v2.homeassistant.binary_sensor import BinarySensorDeviceClass
from zigpy.quirks.v2.homeassistant.number import NumberDeviceClass
@ykmm
ykmm / wraplabel.py
Last active December 20, 2025 14:52
Kivy wrap label
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from kivy.uix.label import Label
from kivy.graphics import Color
from kivy.graphics import Rectangle
from kivy.metrics import sp
from kivy.logger import Logger
from kivy.properties import ListProperty, BooleanProperty
@Patbox
Patbox / cardboard-not-so-great.md
Last active December 20, 2025 14:52
Why you shouldn't use cardboard, banner or any other "hybrid" server

By looking that you are here you most likely use Cardboard/Banner/some other weird bukkit + Fabric project (or just someone linked to it).

Don't do it, it will cause more harm/instabilities to your server than good. But let's start at the beginning.

Few definitions before we start:

  • Bukkit - It means bukkit, spigot, paper and any forks of these,
  • Cardboard - mod by IsaiahPatton that tries to port bukkit ecosystem to fabric.
  • Banner - another mod trying to make plugins work with Fabric, similar to Cardboard.
  • Fabric - a Minecraft modding platform, includes Fabric Loader and Fabric API, everything written in this gist also applies to Quilt.
  • Mods - Mods designed for fabric and compatible platforms
@jeffersongoncalves
jeffersongoncalves / jetbrains-prompt.txt
Created March 4, 2025 11:46
JetBrains AI prompt using Conventional Commits
Generate a commit message following the Conventional Commits specification. Use one of the following types:
Type Format: <type>(<scope>): <description>
Available Types:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
@ubeyidah
ubeyidah / wrapper.tsx
Created December 20, 2025 14:48
Reusable React Wrapper component with Tailwind CSS and TypeScript support.
import React, { JSX } from "react";
import clsx from "clsx";
interface WrapperProps {
className?: string;
children: React.ReactNode;
as?: keyof JSX.IntrinsicElements;
id?: string;
}
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 20, 2025 14:48
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@JBlond
JBlond / bash-colors.md
Last active December 20, 2025 14:45 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@adrienleblanc123
adrienleblanc123 / yimmenu_proton_guide.md
Last active December 20, 2025 14:44
YimMenu under Proton via process injection

YimMenu under Proton

This is a basic guide on how to run YimMenu under Proton for people who play Grand Theft Auto V on Linux and do not feel like dual booting to "have some fun." There are probably more optimal ways of accomplishing this; however, these methods works, and do not appear to introduce any stability problems.

361620884-bede1b9b-3026-4198-9fa8-da2807f44df4

Note

I am in no way involved with the development of YimMenu, or any other open source projects mentioned in this guide. I simply figured this may be useful information for other users I've seen inquiring about this topic.

Important

Before you begin, ensure you have Grand Theft Auto V installed, as well as the protontricks package via your system's package manager.

@caseywatts
caseywatts / 0-self-publishing.md
Last active December 20, 2025 14:40
Self-Publishing via Markdown