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:15 (UTC +02:00)
  • X @eMPee584
View GitHub Profile
@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 October 9, 2024 17:09
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 October 8, 2024 02:59
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.

@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 July 3, 2025 02:18
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
@msimpson
msimpson / cfire
Created July 21, 2011 10:51
Curses based ASCII art fire animation.
#!/usr/bin/python
import curses, random
screen = curses.initscr()
width = screen.getmaxyx()[1]
height = screen.getmaxyx()[0]
size = width*height
char = [" ", ".", ":", "^", "*", "x", "s", "S", "#", "$"]
b = []