Skip to content

Instantly share code, notes, and snippets.

View brei0x's full-sized avatar

Brei0x 🦅 brei0x

View GitHub Profile
@brei0x
brei0x / uninstall-zsh.sh
Last active January 19, 2026 12:44
Uninstall Zsh + Oh My Zsh + Powerlevel10k theme (macOS & Linux)
#!/bin/bash
# Uninstall Zsh + Oh My Zsh + Powerlevel10k theme (macOS & Linux)
# To run this script:
# 1. Execute: sh -c "$(curl -fsSL "$(curl -s "https://api.github.com/gists/254e58bd87009963b3f58405d75cbe6c" | grep -o '"raw_url": *"[^"]*"' | cut -d'"' -f4)")"
# Colors
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
@brei0x
brei0x / install-zsh.sh
Last active January 19, 2026 12:45
Install Zsh + Oh My Zsh + Powerlevel10k theme (macOS & Linux)
#!/bin/bash
# Install Zsh + Oh My Zsh + Powerlevel10k theme (macOS & Linux)
# This script is idempotent!
# To run this script:
# 1. Execute: sh -c "$(curl -fsSL "$(curl -s "https://api.github.com/gists/42e9a1b65ecec83b0432331616baf4ee" | grep -o '"raw_url": *"[^"]*"' | cut -d'"' -f4)")"
# This script installs and configures the following:
# 1. Zsh and Git
# 2. Oh My Zsh
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active January 27, 2026 00:45
Conventional Commits Cheatsheet
@IMcPwn
IMcPwn / delete-all-messages.js
Last active April 10, 2025 03:36 — forked from niahoo/delete-all-messages.js
Delete all messages in a Discord channel
// Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom)
// Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right.
// Click "Copy ID" and paste that instead of LAST_MESSAGE_ID.
// Copy / paste the below script into the JavaScript console.
// If you're in a DM you will receive a 403 error for every message the other user sent (you don't have permission to delete their messages).
var before = 'LAST_MESSAGE_ID';
clearMessages = function(){
const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, "");
const channel = window.location.href.split('/').pop();
@denji
denji / nginx-tuning.md
Last active January 20, 2026 04:42
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active January 24, 2026 04:38
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S