Skip to content

Instantly share code, notes, and snippets.

View gtxaspec's full-sized avatar
😾
staring at the cat sleep

gtxaspec

😾
staring at the cat sleep
View GitHub Profile
@andreagrandi
andreagrandi / statusline-script.sh
Last active November 1, 2025 12:27
Claude Code Status Line Script: displays project info and cost information from ccusage
#!/bin/bash
# Claude Code Status Line Script
# Displays project info and cost information from ccusage
# Read JSON input from stdin
input=$(cat)
# Extract basic information
folder=$(basename "$(echo "$input" | jq -r '.workspace.current_dir')")
@kabakaev
kabakaev / esphome_ble_esp32c6.yaml
Last active September 11, 2025 12:15
ESPHome BLE proxy on ESP32-C6 board
# # This is an esphome configuration file.
# # It is tested on debian-12 and [nanoESP32-C6](https://github.com/wuxx/nanoESP32-C6/blob/master/README_en.md).
# # This configuration should work on any Linux distribution and any ESP32-C6 board though.
#
# # Create and activate python venv, install esphome:
# test -d ./venv || python3 -m venv venv
# source ./venv/bin/activate
# pip install esphome --upgrade
#
# # Connect ESP32-C6 to USB, press and hold "Boot" button, press and release "Reset", release "Boot".
@subrezon
subrezon / openwrt-on-proxmox.md
Last active September 27, 2025 22:44
How to set up an OpenWRT VM in Proxmox
  1. Go to OpenWRT release page, select the latest release stable release, then targets -> x86 -> 64. Right-click generic-ext4-combined.img.gz (not the "efi"!) and copy the link.

  2. On the Proxmox host, download the archive and unpack it:

wget *paste link here*
gunzip openwrt-*.img.gz
  1. Resize the image to be the size you want your VM's disk to be (example with 8 GiB):
@MatthiasLohr
MatthiasLohr / README.md
Last active September 4, 2024 21:19
Beelink GTR5 + Proxmox + Windows Guest VM

Beelink GTR5 + Proxmox VE + Windows Guest using the Vega8 Graphics Card

Prerequisites

Hardware

  • Current BIOS version: 5.19
  • 1TB Kingston NVMe SSD (shipped with the device, used for system)
  • 1TB Samsung 860 EVO 2.5" SATA SSD (bought additionally, for Windows 10)
  • Installation images for Proxmox VE, Windows 10 (e.g. using Ventoy)
U-Boot SPL 2013.07 (Mar 03 2021 - 16:12:04)
Timer init
CLK stop
PLL init
pll_init:366
pll_cfg.pdiv = 10, pll_cfg.h2div = 5, pll_cfg.h0div = 5, pll_cfg.cdiv = 1, pll_cfg.l2div = 2
nf=116 nr = 1 od0 = 1 od1 = 2
cppcr is 07405100
CPM_CPAPCR 0740510d
nf=100 nr = 1 od0 = 1 od1 = 2
@FreddieOliveira
FreddieOliveira / docker.md
Last active December 8, 2025 11:41
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@amitkhare
amitkhare / Nginx RTMP module on Ubuntu 18.04.md
Last active December 2, 2024 06:01
Nginx RTMP module on Ubuntu 18.04 with RTMPS support for Facebook live streaming Hardware and Software live-streaming encoders have typically used the RTMP streaming protocol. With the Facebook enforcement of the RTMPS encrypted live-stream some older hardware and software encoders can no longer work. By using the method below we can convert RTM…

update

sudo apt-get update
sudo apt-get upgrade

install nginx

sudo apt-get install nginx -y
sudo apt-get install libnginx-mod-rtmp -y
@bz31
bz31 / gist:c1d1f2941eb5f6b0eeac8ef7ec78a281
Last active February 24, 2024 03:46 — forked from hacksalot/gist:72517b9b1c145116e89e
Delete GitHub wiki revisions
# Delete prior revisions from a GitHub wiki so that only the most-recent
# version of the content is available.
# Clone the wiki.
git clone https://github.com/[user]/[repo].wiki.git
# Example: git clone https://github.com/bz31/Buildroot.wiki.git
# Remove the .git folder.
cd [repo].wiki
rm -rf .git
@xiCO2k
xiCO2k / nginx-rtmp-stream-multi-debian-18.md
Last active October 21, 2025 04:48
RTMP Server to Stream to Facebook, Youtube, Instagram
apt install nginx
apt install libnginx-mod-rtmp
apt install ffmpeg
apt install stunnel4

vim /etc/nginx/nginx.conf

  • Remove http {} and mail {}