Skip to content

Instantly share code, notes, and snippets.

View eMPee584's full-sized avatar
๐Ÿ’พ
funk soul software

Marcel Partap eMPee584

๐Ÿ’พ
funk soul software
  • Open Source Ecology Germany e.V.
  • Dresden.EU
  • 00:50 (UTC +01:00)
  • X @eMPee584
View GitHub Profile
@dgl
dgl / check-decdhl.sh
Last active November 16, 2025 15:44
Check for DECDHL support (DEC double-height lines)
#!/usr/bin/env bash
# ยฉ David Leadbeater, 2025 <http://ยฉ.st/dgl>
# SPDX-License-Identifier: 0BSD
#
# Detect whether terminals support DECDHL (DEC double-height lines). This is
# not perfect, as terminals are a mess, to put it mildly.
#
# If you want see the output in your terminal, try: curl -i ip.wtf
#
# Usage:
@ostechnix
ostechnix / audiogenipy.py
Last active June 20, 2025 23:10
Audiogenipy - A Python Script to Create an Audiobook from a Text File using Python and gTTS in Linux, macOS and Windows.
#!/usr/bin/env python3
# ------------------------------------------------------------------
# Script Name: Audiogenipy
# Description: A Python Script to Create an Audiobook
# from a Text File using Python and gTTS.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: python audiogenipy.py
# ------------------------------------------------------------------
@zurawiki
zurawiki / AdminTable.tsx
Last active December 3, 2025 14:51
A spec for AI generated code. Examples showcased in JS/TSX, Justfiles, Markdown, Python and Rust
/**
* This file contains AI generated code. Generated code exists
* between the BEGIN AI SECTION and END AI SECTION designators.
*
* @ai-generated model=openai.gpt-4
*/
import React from "react";
interface Person {
name: string;
@rain-1
rain-1 / GPT-4 Reverse Turing Test.md
Last active July 10, 2025 23:15
GPT-4 Reverse Turing Test

The reverse turing test

I asked GPT-4 to come up with 10 questions to determine if the answerer was AI or human.

I provided my own answers for these questions and I also asked ChatGPT to answer them.

The result is that GPT-4 was able to correctly differentiate between AI and Human.

@RubenKelevra
RubenKelevra / fast_firefox.md
Last active December 4, 2025 13:04
Make Firefox fast again
@marcbelmont
marcbelmont / unicode_icons.py
Last active April 23, 2025 20:49
Add Unicode Icons to Ranger File Manager (see first comment for details). ๐Ÿ–ผ๏ธ ๐Ÿ“‚ ๐ŸŽต ๐Ÿฅณ
# Unicode Icons in Ranger File Manager
#
# How to install?
# https://gist.github.com/marcbelmont/c12d2fd2519a372d3b347f665b37e74a#gistcomment-3240106
from __future__ import absolute_import, division, print_function
from itertools import repeat
import ranger.api
@technoscavenger
technoscavenger / EnableClearType.ps1
Created December 4, 2019 01:37
Enable ClearType using PowerShell
$signature = @'
[DllImport("user32.dll")]
public static extern bool SystemParametersInfo(
uint uiAction,
uint uiParam,
uint pvParam,
uint fWinIni);
'@
$SPI_SETFONTSMOOTHING = 0x004B
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active November 2, 2025 23:00
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
This work, excluding the Arch Linux logo, is made available under CC0: https://creativecommons.org/publicdomain/zero/1.0/

tmux/tmuxinator cheatsheet

tmux

As configured in my dotfiles, here and here.

Command line

$ tmux                           -> start new
$ tmux new -s myname             -> start new w/session name
$ tmux a  #  (or at, or attach)  -> attach
$ tmux a -t myname               -> attach to named