Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@LukasMFR
LukasMFR / chatgpt-conversation-exporter.js
Created December 12, 2025 12:36
JavaScript snippet to export a ChatGPT conversation from the web UI to a clean Markdown file, with correct user/assistant attribution, code block preservation, and basic media placeholders. Designed to be run directly in the browser console (Safari/Chrome/Firefox).
(() => {
function formatDate(date = new Date()) {
return date.toISOString().split("T")[0];
}
function escapeMarkdown(text) {
return text
.replace(/\\/g, "\\\\")
.replace(/\*/g, "\\*")
.replace(/_/g, "\\_")
@iamwildtuna
iamwildtuna / gist:7772b7c84a11bf6e1385f23096a73a15
Last active March 15, 2026 21:07
VPN IP Addresses (IP адреса ChatGPT, Copilot, Meta, Facebook, Instagram, YouTube, Medium, X ex. Twitter, Discord)
Meta (Instagram, Facebook)
// Узлы
157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32
157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38
57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97
// Подсети
213.102.128.0/24
204.15.20.0/22
199.201.0.0/16
@ossa-ma
ossa-ma / tropes.md
Last active March 15, 2026 21:05
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@drzo1dberg
drzo1dberg / installLicenceAndKey
Created November 16, 2025 20:09
Get License and Key for Citron Emulator Script
#!/bin/bash
# Simplified script for downloading and setting up keys and firmware for Citron emulator only
set -e # Exit on any error
# ============================================================================
# CONFIGURATION
# ============================================================================
# Citron configuration
CITRON_LINUX_BASE="$HOME/.local/share/citron"
@S4tyendra
S4tyendra / Complete VPS Setup Guide - Ubuntu Server.md
Created January 25, 2025 05:24
A comprehensive guide for setting up and optimizing an Ubuntu VPS server with essential services and security configurations.

Features:

  • 🔒 Secure SSH configuration
  • 🐍 Python environment with deadsnakes PPA
  • 🚀 Nginx with UI management
  • 🐳 Docker and Docker Compose
  • 🔑 SSL/TLS with Let's Encrypt
  • 📊 MongoDB Atlas integration
  • 💾 Swap and system optimization
  • 🔄 Auto-renewal and maintenance scripts
  • ⏰ Custom MOTD with system stats
@GeeLeonidas
GeeLeonidas / disable-agc-pipewire.sh
Last active March 15, 2026 21:02
Globally disables Auto Gain Control on PipeWire-based systems
#!/bin/bash
# Backups the previous configuration (optional if you take system snapshots regularly)
BACKUP_PATH="/usr/share/alsa-card-profile/mixer/paths_backup"
[ ! -d $BACKUP_PATH ] && sudo cp -vR /usr/share/alsa-card-profile/mixer/paths $BACKUP_PATH
# The actual Perl script that disables AGC
sudo perl -pi -0 -e 's/(\[[A-Za-z ]*Mic Boost\][A-Za-z._=\s-]+volume *= *)merge/\1zero/g;' /usr/share/alsa-card-profile/mixer/paths/*
# Shows the changes made to the system (optional)
@mezhevikin
mezhevikin / telegramproxy.md
Last active March 15, 2026 21:02 — forked from yurykovshov/telegramproxy.md
Как создать свой Socks5 proxy для Telegram

Установка SOCKS5 Proxy сервер Dante на VPS для Telegram (актуально 2025)

Шаг 1 — Купить VPS сервер

Можно взять сервер у любого зарубежного хостинг-провайдера:

@arya2004
arya2004 / README.md
Created July 14, 2024 06:48
A guide and script to temporarily disable and enable the laptop keyboard while using an external keyboard in Linux Mint.

Step-by-Step Guide

  1. Identify Your Laptop Keyboard Device ID: Open a terminal and run:
    xinput list
    This command will display a list of all input devices connected to your system. Look for an entry that corresponds to your laptop keyboard, such as "AT Translated Set 2 keyboard" or something similar. Note down the device ID (e.g., 11).
@kaigouthro
kaigouthro / oniguruma_syntax.md
Created February 21, 2025 03:28
Oniguruma Regex MD Regex reference

Oniguruma Regular Expressions v6.9.8 Reference

Version: 6.9.8 (2022/04/11) Syntax: ONIG_SYNTAX_ONIGURUMA (default)

This document provides a comprehensive reference for Oniguruma regular expressions syntax, version 6.9.8. It is intended for use as a quick guide and reference for AI language models and developers working with Oniguruma regex.


1. Syntax Elements