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 | |
### 🧠 What This Covers | |
# | Library | Purpose | | |
# |-------------|---------------------------------------| | |
# | `mesa-utils`| Tools like `glxinfo`, `glxgears` | | |
# | `GL`, `GLU` | Core OpenGL and utility functions | |
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 | |
# Respect XDG spec or fallback to defaults | |
CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/nvim" | |
STATE_DIR="${XDG_STATE_HOME:-$HOME/.local/state}/nvim" | |
DATA_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/nvim" | |
echo "🧹 Cleaning Neovim directories..." | |
for dir in "$CACHE_DIR" "$STATE_DIR" "$DATA_DIR"; do |
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>Tab-Based Blog with Mermaid</title> | |
<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism.min.js"></script> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-tomorrow.min.css" rel="stylesheet"/> |
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 | |
# 🗃️ Ensure required directories exist | |
mkdir -p ~/.local/share/fonts ~/.config/fontconfig/conf.d | |
# 🎨 Install emoji font | |
echo "📥 Installing Noto Color Emoji font..." | |
sudo apt update | |
sudo apt install -y fonts-noto-color-emoji |
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 | |
# ✋ Require all arguments | |
if [[ $# -lt 5 ]]; then | |
echo "Usage:" | |
echo " $0 <AppName> <ExecCommand> <IconSourcePath> <WorkingDir> <Comment>" | |
echo "" | |
echo "Example:" | |
echo " $0 \"TLauncher\" \"/usr/games/tlauncher/run.sh\" \"~/Downloads/tlauncher.png\" \"/usr/games/tlauncher\" \"Run client for the games\"" |
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 | |
# ✅ Input validation | |
if [[ $# -ne 2 ]]; then | |
echo "Usage: $0 /path/to/android-studio/bin/studio.sh /path/to/icon.png" | |
exit 1 | |
fi | |
ANDROID_EXEC="$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> | |
<head> | |
<title>Kotlin/Native Guide</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/mithril.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/goober.umd.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-kotlin.min.js"></script> |
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 -e | |
# Helper to check if a command exists | |
command_exists() { | |
command -v "$1" >/dev/null 2>&1 | |
} | |
echo "🔍 Checking dependencies..." |
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/bash | |
# --- Configuration --- | |
# Set the desired installation path for Homebrew. | |
# By default, Homebrew installs to /home/linuxbrew/.linuxbrew | |
# You can change this if you have specific reasons, but be aware of permissions. | |
# HOMEBREW_PREFIX="/usr/local" # Example: installing to /usr/local, requires sudo for setup | |
HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew" # Recommended default | |
# --- Pre-installation Checks --- |
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
import kotlinx.cinterop.* | |
import raylib.* | |
import kotlin.random.Random | |
@OptIn(ExperimentalForeignApi::class) | |
object Colors { | |
val BLACK = cValue<Color> { r = 0u; g = 0u; b = 0u; a = 255u } | |
val WHITE = cValue<Color> { r = 255u; g = 255u; b = 255u; a = 255u } | |
val GRAY = cValue<Color> { r = 187u; g = 173u; b = 160u; a = 255u } | |
val DARK_GRAY = cValue<Color> { r = 119u; g = 110u; b = 101u; a = 255u } |
NewerOlder