Skip to content
hhkmyPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

🛠️ Development & Automation Scripts

A curated collection of developer installation, maintenance, and automation scripts by @hhkmy.

License: MIT Platform Shell


⚡ Quick One-Line Execution

Run any script instantly directly from your terminal using our short URL proxy (scripts.hhk.my.id):

# 🚀 Google Antigravity 2.0 (Agentic Desktop)
curl -fsSL https://scripts.hhk.my.id/antigravity | bash

# 🐹 Go Compiler & Version Manager
curl -fsSL https://scripts.hhk.my.id/go | bash

# ⚡ Hugo Extended Installer (with Sass/SCSS)
curl -fsSL https://scripts.hhk.my.id/gohugo | bash -s -- --extended

Tip: You can pass command-line arguments to one-liners using bash -s -- [OPTIONS]
(e.g. curl -fsSL https://scripts.hhk.my.id/antigravity | bash -s -- --check).
Fallback raw GitHub URL: https://raw.githubusercontent.com/hhkmy/scripts/main/<script>


📦 Included Scripts

  • 🚀 antigravity   Linux
    Robust installer & auto-updater for Google Antigravity 2.0 (Agentic Desktop) with dynamic manifest discovery, zero-dependency ASAR parsing, process protection, multi-resolution icon theme integration, and automated rollback.
    👉 Usage Guide & Flags

  • 🐹 go   Linux | macOS
    Lightweight Go Version Manager. Fetches official stable releases directly from go.dev, manages user-space installs, and seamlessly configures shell environments (bash, zsh, fish).
    👉 Usage Guide

  • ⚡ gohugo   Linux | macOS
    Fast installer and updater for Hugo static site generator supporting Standard, Extended (with Sass/SCSS), and Extended with Deploy releases.
    👉 Usage Guide & Flags

  • 🌐 worker/   Cloudflare Workers
    High-performance Edge Reverse Proxy powering https://scripts.hhk.my.id. Features intelligent User-Agent routing, CLI catalog banners for terminal clients, and edge caching.
    👉 Worker Guide


🚀 Script Usage & Details

1. Antigravity 2.0 Updater (antigravity)

Automated installation and update tool for Google Antigravity 2.0 (Agentic Desktop) on Linux.

One-line command:

curl -fsSL https://scripts.hhk.my.id/antigravity | bash

Local execution:

# Check for updates only
./antigravity --check

# Install or update to latest version (User-space: ~/.local/share/antigravity)
./antigravity

# Install or update system-wide (Standard: /opt/Antigravity, requires sudo)
sudo ./antigravity --global

# Force reinstall current version
./antigravity --force

# Install specific version
./antigravity --version 2.19.1

# Restore previous backup (Rollback)
./antigravity --rollback

Features:

  • Dual-Mode Installation (FHS Standard /opt or User-space): Supports system-wide standard installation (/opt/Antigravity) via --global or isolated non-root user installation (~/.local/share/antigravity).
  • External Tool & Manager Compatibility: Automatically synchronizes resources/app/package.json loose metadata so tools like Antigravity-Manager and CLI switchers detect the version instantly without hanging.
  • Zero-Dependency Icon & Version Extraction: Directly parses resources/app.asar using standard library Python 3 to extract version info and high-res app icon without needing npx or node.
  • System Icon Theme Integration: Auto-generates multi-resolution icons (16x16 up to 1024x1024) into ~/.local/share/icons/hicolor/ (or /usr/share/icons/hicolor/) for crisp display across GNOME/KDE docks, taskbars, and Alt+Tab switchers.
  • Dynamic Manifest Discovery: Automatically queries active updater URL from local app-update.yml and official Google Cloud Run endpoints.
  • Process & Socket Safety: Gracefully terminates running Antigravity processes (SIGTERM with clean timeout fallback) to prevent filesystem corruption and lockfile lingering.
  • Automated Backup & Rollback: Archives existing installs to antigravity-backups/ and rolls back on failure.
  • Desktop & CLI Integration: Generates .desktop launcher with proper StartupWMClass, hardens chrome-sandbox (SUID in global mode), and registers CLI symlinks/wrappers.

2. Go Version Manager (go)

Quickly install or update the latest stable Go compiler.

One-line command:

curl -fsSL https://scripts.hhk.my.id/go | bash

Local execution:

chmod +x go
./go

Features:

  • Automatic architecture detection (amd64, arm64, 386, armv6l).
  • Non-root user space installation to ~/go (or /usr/local if run with sudo).
  • Automatically configures GOROOT and PATH in ~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish.

3. Hugo Extended Installer (gohugo)

Installs or updates Hugo static site generator directly from official GitHub releases.

One-line command:

curl -fsSL https://scripts.hhk.my.id/gohugo | bash -s -- --extended

Local execution:

chmod +x gohugo

# Interactive mode (Prompts for Normal, Extended, or Extended with Deploy)
./gohugo

# Non-interactive: Install Hugo Extended (recommended for Sass/SCSS)
./gohugo --extended

# Install Hugo Extended with Deploy features
./gohugo --withdeploy

# Force reinstall
./gohugo --force

4. Edge Proxy Worker (Scripts Hub)

The worker/ directory contains the Cloudflare Worker running at https://scripts.hhk.my.id.

  • Plain-Text Script Delivery: Serves files directly with Content-Type: text/plain; charset=utf-8 without requiring HTTP 302 redirects.
  • CLI Discovery: Running curl https://scripts.hhk.my.id displays an interactive script catalog directly inside the terminal.
  • Web Redirect: Browsing to https://scripts.hhk.my.id in a web browser redirects seamlessly to this GitHub repository.
  • Edge Caching: Built-in 5-minute CDN caching prevents upstream GitHub rate limits.
  • CI/CD Deployment: Automatic deployment via .github/workflows/deploy-worker.yml on push.

📄 License

This repository is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages