Skip to content

Instantly share code, notes, and snippets.

View weehong-1's full-sized avatar
🏠
Working from home

Wee Hong weehong-1

🏠
Working from home
View GitHub Profile
@weehong-1
weehong-1 / README.md
Created March 23, 2026 02:28
Synology SSH Hardening: Key-Only Auth

Synology SSH Hardening: Key-Only Auth (No Home Directory)

This guide configures SSH on vernon-nas to use a custom key path, avoiding the need to enable the "User Home" service.


1. Create the Custom Key Directory

Since the home directory doesn't exist, we store keys in a system-protected path.

@weehong-1
weehong-1 / README.md
Last active March 24, 2026 02:30
Ubuntu 25.10 - Chinese Installation (Ibus and Fcitx5)

πŸ‡¨πŸ‡³ Ultimate Chinese Pinyin Guide for Ubuntu 25.10 (Questing Quokka)

This guide covers the installation, activation, and optimization of Chinese input methods on Ubuntu 25.10, which utilizes GNOME 49 and Wayland.


πŸš€ 1. Automated Installation Script

Use this script to install all necessary dependencies for either the standard IBus method or the modern Fcitx5 method.

The Installation Commands

Option 1: Standard Installation (Default Profile)

Use these commands to install the extensions to your default VS Code setup.

macOS / Linux:

curl -s "https://gist.githubusercontent.com/weehong-1/898ca332f8c0b2e7955f970767a8f69b/raw/extensions.txt" | xargs -L 1 code --install-extension
@weehong-1
weehong-1 / README.md
Last active March 6, 2026 07:44
Rename Project name thoroughly for Java

How to use

curl -fsSL https://gist.githubusercontent.com/weehong-1/a6205f99be440bf45a3572e4cd52184e/raw/rename.sh | bash -s -- horaion upmatches
@weehong-1
weehong-1 / Editorconfig
Last active March 15, 2026 04:32
.NET Scaffold Script
root = true
# All files
[*]
indent_style = space
# Xml files
[*.{xml,csproj,props,targets,ruleset,nuspec,resx}]
indent_size = 2
@weehong-1
weehong-1 / 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-1
weehong-1 / README.md
Last active April 12, 2026 02:27 — forked from abn/install-jetbrains-toolbox.sh
Install JetBrains Toolbox App with Dependency Check

Ubuntu Setup & Installation

A collection of bash scripts to automate the setup of a fresh Ubuntu environment.

πŸš€ Quick Start: Master Installer (Recommended)

The easiest way to set up your system is using the interactive Master Installer. It provides a menu that allows you to choose specific applications or install everything at once.

Run the following command in your terminal:

@weehong-1
weehong-1 / 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