This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
log() { echo -e "\033[1;32m[INFO]\033[0m $*"; } | |
err() { echo -e "\033[1;31m[ERROR]\033[0m $*" >&2; } | |
detect_distro() { | |
if command -v dnf &>/dev/null; then echo "fedora" | |
elif command -v apt &>/dev/null; then echo "debian" | |
elif command -v pacman &>/dev/null; then echo "arch" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
### CONFIG ### | |
LOG_FILE="/tmp/setup-zsh.log" | |
ZSHRC="$HOME/.zshrc" | |
ZSHRC_BACKUP="$HOME/.zshrc.backup.$(date '+%Y%m%d_%H%M%S')" | |
OH_MY_ZSH_DIR="$HOME/.oh-my-zsh" | |
ZSH_CUSTOM="${OH_MY_ZSH_DIR}/custom" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc bootstrap_raylib.c -o bootstrap_raylib && ./bootstrap_raylib --project-path ./demo | |
#include <errno.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#ifdef _WIN32 | |
#include <direct.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc bootstrap.c -o bootstrap && ./bootstrap --project-path ./sample | |
#include <errno.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#ifdef _WIN32 | |
#include <direct.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TARGET="nob.h" | |
BACKUP="${TARGET}.backup" | |
URL="https://raw.githubusercontent.com/tsoding/nob.h/main/nob.h" | |
# Function to extract version from nob.h | |
extract_version() { | |
grep -m1 'nob - v' "$1" | sed -E 's|/\* nob - (v[0-9]+\.[0-9]+\.[0-9]+).*|\1|' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Minimal Dashboard</title> | |
<link rel="stylesheet" href="https://unpkg.com/open-props" /> | |
<link rel="stylesheet" href="https://unpkg.com/open-props/normalize.min.css" /> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# chmod +x make-dotdesktop-for-nixpkgs.sh | |
STORE_DIR="/nix/store" | |
DESKTOP_DIR="$HOME/.local/share/applications" | |
ICON_DIR="$HOME/.local/share/icons" | |
LOG_FILE="$HOME/nix-desktopify.log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# chmod +x make-global-symlinks-nixpkgs.sh | |
STORE_DIR="/nix/store" | |
TARGET_DIR="/usr/bin" | |
LOG_FILE="$HOME/nix-global-symlinks.log" | |
LOG_PREFIX="\e[1;32m[LINK]\e[0m" | |
SKIP_PREFIX="\e[1;33m[SKIP]\e[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Emergency Display Manager Recovery Script | |
set -euo pipefail | |
### EMERGENCY RECOVERY ### | |
emergency_recovery() { | |
echo "🚨 EMERGENCY RECOVERY MODE" | |
echo "This will attempt to restore a working display manager" | |
# Stop all display manager services |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# 🧾 Config | |
DEFAULT_NIX_FILE="$HOME/.default-nix-shell.nix" | |
SHELL_WRAPPER_FLAG="IN_NIX_SHELL" | |
BASHRC="$HOME/.bashrc" | |
ZSHRC="$HOME/.zshrc" | |
# 📦 Step 1: Install Nix if missing |
NewerOlder