Skip to content

Instantly share code, notes, and snippets.

View yyolk's full-sized avatar
๐Ÿฏ
๐™ง๐™š๐™˜๐™ช๐™ง๐™จ๐™ž๐™ซ๐™š ๐™ฉ๐™–๐™ช๐™ฉ๐™ค๐™ก๐™ค๐™œ๐™ฎ

Joseph Chiocchi yyolk

๐Ÿฏ
๐™ง๐™š๐™˜๐™ช๐™ง๐™จ๐™ž๐™ซ๐™š ๐™ฉ๐™–๐™ช๐™ฉ๐™ค๐™ก๐™ค๐™œ๐™ฎ
View GitHub Profile
# Create a new worktree and branch from within current git directory.
ga() {
if [[ -z "$1" ]]; then
echo "Usage: ga [branch name]"
exit 1
fi
local branch="$1"
local base="$(basename "$PWD")"
local path="../${base}--${branch}"
@lynsei
lynsei / spinners.nfo
Created February 24, 2025 16:26
[Spinners] #spinners
# Spinners
Perl Spinner/Heartbeat demonstrator (Unicode complaint)
perl -CO -Mutf8 -e '$|=1; $c=" โ–โ–Žโ–โ–Œโ–‹โ–Šโ–‰โ–ˆ";
while(1){ for $i ($c=~/(.)/g) {
print " $i\r"; select(undef,undef,undef,.1+1/length($c)); } };'
@Kogoro
Kogoro / collection.txt
Last active August 29, 2026 14:05
AWTRIX 3 RTTTL Collection
//This is a collection of RTTTLs that can be used with any RTTTL player. Foremost it is for the Ulanzi TC001 LED Matrix.
//Onlineplayer: https://adamonsoon.github.io/rtttl-play/
Original1:d=4,o=5,b=140:16e,16g,16a,16c
//ESPHOME - https://esphome.io/components/rtttl.html
two_short:d=4,o=5,b=100:16e6,16e6
long:d=1,o=5,b=100:e6
siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e
@rameerez
rameerez / telegram-mtproxy.md
Last active November 11, 2026 00:39
Telegram Proxy How-To: complete and up-to-date MTProxy tutorial

How to set up a Telegram Proxy (MTProxy)

Telegram proxies can help people connect when Telegram is blocked. Telegram apps support them directly, so sharing a proxy can be as simple as sending someone a link.

I've used MTProxy to run my public Telegram proxy, which you can use if you don't want to set up your own.

A proxy cannot simply decrypt Telegram's encrypted message traffic, but it can observe client IP addresses, connection times, traffic volume and destinations. Its logs may retain that information. MTProxy is not a VPN or an anonymity guarantee, and it does not turn ordinary Telegram cloud chats into end-to-end encrypted Secret Chats. Choose an operator you trust.

Read this before choosing the software

@willmcgugan
willmcgugan / last_lines.py
Created March 2, 2024 16:10
Get the last lines from a file
import mmap
def get_last_lines(path: str, count: int) -> list[str]:
"""Get count last lines from a file."""
with open(path, "r+b") as text_file:
text_mmap = mmap.mmap(text_file.fileno(), 0, mmap.ACCESS_READ)
position = len(text_mmap)
while count and (position := text_mmap.rfind(b"\n", 0, position)) != -1:
count -= 1
@bahadiraraz
bahadiraraz / Git_Commit_Freeze_Solution.md
Last active October 10, 2026 21:32
Git Commit Freeze Due to GPG Lock Issues (Solution)

Git Commit Freeze Due to GPG Lock Issues

If you encounter a problem where you cannot commit changes in Git โ€“ neither through the terminal nor via the GitHub Desktop application โ€“ the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.

Solution Steps

1. Check for GPG Lock Messages

Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ..., it indicates a lock issue.

@billyshub
billyshub / README.md
Last active October 12, 2026 11:15
DIY Ambilight - Hyperion + Android Grabber (+ WLED Option)

Hyperion + Android Grabber Ambilight Setup Guide

Intro

@ChristophCaina
ChristophCaina / s3-box3.yaml
Last active November 5, 2026 09:45
Code for the ESP32-S3-Box3
#------------------------------------------------------------------------------------#
# PIN Schematics #
# #
# GPIO-00 MCU-BOOT #
# GPIO-01 Speaker Mute-Status #
# GPIO-02 I2S MCLK #
# GPIO-03 Touch-Screen TT21100 Interrupt Pin #
# GPIO-04 ILI92xxx Display DC-Pin (SPI: CLK-Pin) #
# GPIO-05 ILI92xxx Display CS-Pin (SPI: MOSI-Pin) #
# GPIO-06 ILI92xxx Display SDA #
@boozook
boozook / README.md
Last active March 10, 2026 21:40
Install PIP for Pythonista 3.x

Usage

  1. run install pip.py, follow instructions
  • edit pip config that placed in the local root
  • edit your pythonista_startup.py, add PIP_CONFIG_FILE env
  1. reboot Pythonista
  2. run run.py, then type show pip or freeze

That's all. Now you can (un)install packages, upgrade pip, whatever.

@lpenz
lpenz / custom.toml
Created August 27, 2023 13:09
custom.toml example for Raspberry Pi OS
# Raspberry PI OS config.toml
# This file is used for the initial setup of the system on the first boot, if
# it's s present in the boot partition of the installation.
#
# This file is loaded by firstboot, parsed by init_config and ends up
# as several calls to imager_custom.
# The example below has all current fields.
#
# References:
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/firstboot