Skip to content

Instantly share code, notes, and snippets.

@emleddin
emleddin / 1-ANKI-remote.md
Last active May 9, 2024 10:30
Instructions for using the 8BitDo Zero 2 with ANKI on Linux and MacOS

Using the 8BitDo Zero 2 Remote with ANKI

The 8BitDo Zero 2 remote is ~$20 and can be used to gamify your studying.

See controller image below

The controller comes with preset keybindings that aren’t the most helpful. So, through the use of a key remapping software, you’ll update how your device interprets the keys!

If you don’t want to download a remapper, you should be able to use an

@braian87b
braian87b / dumb-ap-wired-link.sh
Last active May 9, 2024 10:28
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
@fvilarino
fvilarino / animiated_drawer_final.kt
Created November 24, 2022 22:56
Animated Drawer - Final
@Stable
interface AnimatedDrawerState {
var density: Float
val drawerWidth: Dp
val drawerTranslationX: Float
val drawerElevation: Float
val backgroundTranslationX: Float
val backgroundAlpha: Float
@Rhynorater
Rhynorater / docker-compose.yaml
Created December 6, 2023 20:10
CTBBPodcast WordPress Testing Environment
version: "3.8"
# NOTE! This docker container has hard-coded values for passwords - this is intentional as this is testing machine. DO NOT EXPOSE TO THE INTERNET.
services:
database:
image: mariadb:10.6.4-focal
restart: unless-stopped
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: 'CTBB_ROOT_PASSWD'
@khiemdoan
khiemdoan / Awesome.md
Last active May 9, 2024 10:23
My own awesome list

Python

  • loguru - Loguru is a library which aims to bring enjoyable logging in Python.
  • more-itertools - More routines for operating on iterables, beyond itertools.
  • pydantic - Data validation using Python type hints.
  • msgspec - A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML.
  • SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper.
  • Advanced Alchemy - Advanced Alchemy is a carefully crafted, thoroughly tested, optimized companion library for SQLAlchemy, offering useful and easy-to-use features for your database projects.
  • SQLModel - SQL databases in Python, designed for simplicity, compatibility, and robustness.
  • [Tortoise ORM](https://github
@KillyMXI
KillyMXI / README.md
Last active May 9, 2024 10:23
Obsidian live-preview list threading and highlight
@douglasparker
douglasparker / README.md
Last active May 9, 2024 10:22
Disable & Enable MPO via the Windows Registry

Disable & Enable MPO via the Windows Registry

There is a well known issue where GPU drivers are crashing with multi-monitor setups due to an interaction with Windows MPO and both Nvidia and AMD GPUs.

Until this bug is fixed, the only solution is to disable MPO via the Windows Registry.

Disable MPO

To apply the fix, simply run mpo_disable.reg and reboot your computer.

@padeoe
padeoe / README_hfd.md
Last active May 9, 2024 10:22
CLI-Tool for download Huggingface models and datasets with aria2/wget+git

🤗Huggingface Model Downloader

Considering the lack of multi-threaded download support in the official huggingface-cli, and the inadequate error handling in hf_transfer, this command-line tool smartly utilizes wget or aria2 for LFS files and git clone for the rest.

Features

  • ⏯️ Resume from breakpoint: You can re-run it or Ctrl+C anytime.
  • 🚀 Multi-threaded Download: Utilize multiple threads to speed up the download process.
  • 🚫 File Exclusion: Use --exclude or --include to skip or specify files, save time for models with duplicate formats (e.g., *.bin or *.safetensors).
  • 🔐 Auth Support: For gated models that require Huggingface login, use --hf_username and --hf_token to authenticate.
  • 🪞 Mirror Site Support: Set up with HF_ENDPOINT environment variable.
@wizioo
wizioo / gitignore_per_git_branch.md
Last active May 9, 2024 10:22
HowTo have specific .gitignore for each git branch

How to have specific .gitignore for each git branch

Objective

My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.

Solution

My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion. I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.

@digitaljhelms
digitaljhelms / gist:4287848
Last active May 9, 2024 10:21
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch