Skip to content

Instantly share code, notes, and snippets.

@AdelMmdi
AdelMmdi / Record audio playing from headphones or speakers.py
Last active January 30, 2026 00:03
While watching videos and various sounds that are played from the output of the device, you need to save them.
import tkinter as tk
from tkinter import messagebox
import threading
import pyaudiowpatch as pyaudio # pip install PyAudioWPatch
import wave
import time
import sys
import os
import numpy as np
from matplotlib.figure import Figure
@paultreny
paultreny / tidy.conf
Created March 28, 2014 00:09
The config file I use for tidy-html5. $ tidy -config <path/to/tidy.conf> input.html > output.html
// paulcode.com
// tidy-html5 config file (mine's named "tidy.conf")
// tidy documentation is here: http://tidy.sourceforge.net/#docs
// tidy-html5 documentation here: http://w3c.github.io/tidy-html5/quickref.html#drop-empty-elements
join-classes: no
logical-emphasis: no
drop-empty-elements: no
anchor-as-name: no
doctype: auto
@mparker17
mparker17 / .tidy-config
Last active January 29, 2026 23:48
HTML Tidy (htacg/tidy-html5) configuration file.
//
// @file
// HTML Tidy (htacg/tidy-html5) configuration file.
//
// HTML, XHTML, XML Options.
bare: yes
clean: yes
drop-proprietary-attributes: yes
// Pretty Print Options.
@adojos
adojos / git-for-win_Pacman_Install.md
Last active January 29, 2026 23:47
Git: Pacman Installation on Git For Windows #git

Git For Windows (GitBash) Pacman Installation

The 'Git for Windows' by default does not come with MSYS2 package manager called 'Pacman' and hence it is a limited version or subset of the MSYS2. Also the bash which supplied wih 'Git for Windows' is not a full version of bash hence does not provide for full Linux environment.

However you can get package manager support inside 'Git for Windows' in following ways :

  1. Install full MSYS2 and build Git for Windows yourself (Most git users don't require all packages and MSYS2)
  2. Install Git for Windows SDK (heavy & consumes around 3-5 Gb space)
  3. Use a hack to merge the MSYS2 Pacman packages with your existing Git for Windows installation
@markasoftware
markasoftware / enterprise_token.rb
Last active January 29, 2026 23:47
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################
@farhaduneci
farhaduneci / README.md
Last active January 29, 2026 23:46
iTerm2 to Ghostty Color Converter

iTerm2 to Ghostty Color Converter

This is a Python script that converts iTerm2 theme files to Ghostty color format. It takes an iTerm2 theme file (usually an .itermcolors file) and converts the colors into the format used by Ghostty, which can be used in your terminal configurations.

Usage

script.py [-h] -f FILE [-o OUTPUT]
@M11-cell
M11-cell / tmux-cheatsheet.markdown
Created January 29, 2026 23:44 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@steipete
steipete / committer
Created October 18, 2025 17:26
Simple commit script so agents don't f*ck up. Disallow other git commands. (except status/diff)
#!/usr/bin/env bash
set -euo pipefail
usage() {
printf 'Usage: %s "commit message" "file" ["file" ...]\n' "$(basename "$0")" >&2
exit 2
}
if [ "$#" -lt 2 ]; then
@steipete
steipete / README.md
Created January 5, 2026 11:05
Zeno skill wrapper for Clawdbot
@TheUnrealZaka
TheUnrealZaka / HidingRoot.md
Last active January 29, 2026 23:42
This guide is for all Android devices to hide properly all root detections and successfully run banking apps as expected :)

✨ Welcome to TheUnrealZaka's Guide for Hiding Root Detections!

Using KernelSU-Next + SuSFS

⚠️ Disclaimer: This guide is provided solely for educational purposes. The creator assumes no responsibility for any damage, data loss, or other adverse effects that may occur as a result of following these instructions. Proceed entirely at your own risk!


📖 Introduction

Many users who have rooted their devices finds issues where system or third-party applications detect the root status and refuse to operate. This guide outlines a procedure to hide root detection on the majority of Android devices, specifically the ones running Noble ROM for Samsung S9/S9+/N9. The approach detailed here leverages KernelSU-Next in conjunction with SuSFS.