Skip to content

Instantly share code, notes, and snippets.

View weehong's full-sized avatar
๐Ÿ 
Working from home

Wee Hong weehong

๐Ÿ 
Working from home
View GitHub Profile
@weehong
weehong / dotnet.sh
Last active November 1, 2025 05:12
This script create a .NET project utilizing project structure
#!/bin/bash
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Configuration (Project name can be provided as CLI argument)
@weehong
weehong / README.md
Last active January 21, 2026 16:44
.NET Scaffold Script

How to use

๐ŸŽ Linux / macOS

Run the following command in your terminal. Replace MyProjectName with your desired solution name.

# Syntax: curl [url] | bash -s -- [ProjectName]
curl -fsSL https://gist.githubusercontent.com/weehong/69b63249165a4373204e82c88b211a78/raw/scaffold.sh | bash -s -- MyCleanApp
@weehong
weehong / README.md
Last active January 4, 2026 03:45
A cross-platform bash script that automatically updates VMware Workstation IP addresses in your system's hosts file

VMware IP Address Updater

A comprehensive cross-platform solution to automatically update VMware Workstation IP addresses in your system's hosts file. Now supports native Windows (PowerShell) alongside Bash, WSL, Linux, and macOS.

โœจ Features

  • ๐Ÿ”„ True Cross-platform - Native support for Windows (PowerShell), WSL, Linux, and macOS (Bash)
  • ๐Ÿš€ One-Liner Execution - Run instantly via curl (Bash) or irm (PowerShell) without saving files
  • ๐ŸŽฏ Interactive & Automated - Supports both interactive prompts and silent automation
  • โš™๏ธ Environment Configuration - Customize defaults via .env files or system environment variables
@weehong
weehong / README.md
Last active December 1, 2025 09:31 — forked from abn/install-jetbrains-toolbox.sh
Install JetBrains Toolbox App with Dependency Check

Install JetBrains Toolbox App with Dependency Check

Reference and fork from, https://gist.github.com/abn/022c5f9eae491687a766f25bd8322fc0

How to use

Copy and paste the following command to your terminal

JetBrains Toolbox

bash -c "$(curl -fsSL https://gist.githubusercontent.com/weehong/0bf6b75c54b56d5cbbc33752c93dac8b/raw/install-jetbrains-toolbox.sh)"
@weehong
weehong / README.md
Last active December 10, 2025 03:19
Visual Studio Code - Run and Debug Setup for .NET Core Project

This Gist shows the Run and Debug configuration on Visual Studio Code for the .NET Core project.

Folder Structure

/root/workspace/dotnet/<solution_project_name>/
โ”‚
โ”œโ”€โ”€ .vscode/
โ”‚   โ”œโ”€โ”€ launch.json
โ”‚ โ””โ”€โ”€ tasks.json