Skip to content

Instantly share code, notes, and snippets.

View yu-hant's full-sized avatar
🎯
Focusing on nothing

Sean Chang yu-hant

🎯
Focusing on nothing
  • Taiwan
View GitHub Profile

Install Visual Studio Code in Ubuntu

sudo apt update
sudo apt install -y software-properties-common apt-transport-https wget
sudo wget -q https://packages.microsoft.com/keys/microsoft.asc -O /usr/share/keyrings/microsoft.asc
sudo sh -c 'echo "Types: deb\nURIs: https://packages.microsoft.com/repos/vscode/\nSuites: stable\nComponents: main\nSigned-By: /usr/share/keyrings/microsoft.gpg" > /etc/apt/sources.list.d/vscode.sources'
sudo apt update
sudo apt install -y code
@yu-hant
yu-hant / README.md
Last active April 25, 2025 10:01
Easily Restart ZeroTier Service

Easily Restart ZeroTier Service

Warning

You need to run this script with administrator permission, otherwise this script won't work.

Tip

Creating shortcut make your life easier. (Shortcut can set to auto run with administrator permission

C:\Windows\System32\cmd.exe /c C:\Windows\System32\sc.exe stop zerotieroneservice || sc.exe start zerotieroneservice || pause
@yu-hant
yu-hant / README.md
Last active June 6, 2025 12:06
Code Server Help
code-server 4.100.3 409c64e0df4d53530e59c16acc2b5d5766f717b0 with Code 1.100.3                                                                                                                                                                                                                                Usage: code-server [options] [path]                                                                                                                        - Opening a directory: code-server ./path/to/your/project                                                                                              - Opening a saved workspace: code-server ./path/to/your/project.code-workspace                                                                                                                                                                                                                            Options                                                                                                        
@yu-hant
yu-hant / README.md
Created January 31, 2025 03:24
Hypixel Bedwars Command

所有 Hypixel 床戰 的 /play commands

您可以在遊戲中複製貼上 /play 指令,快速進入任何床戰模式的下一個遊戲。

請注意,您無法自行選擇要玩的地圖,地圖是隨機的。

一般床戰指令

單人模式

@yu-hant
yu-hant / README.md
Created January 28, 2025 08:05
Run desktop environment in Google Cloud
docker run -p 8080:80 dorowu/ubuntu-desktop-lxde-vnc --rm
@yu-hant
yu-hant / README.md
Created August 20, 2024 10:22
How To uninstall unwanted preinstalled android app
  1. Make sure you connect to your device
adb devices
  1. print app
adb shell pm list packages 
  1. Uninstall
@yu-hant
yu-hant / README.md
Last active July 14, 2024 08:09
Install Windows via command line

Install Windows via command line

diskpart
    convert gpt
    sel disk 0
    create part efi size=500
    format fs=fat32 quick
    assign letter w
    create part primary
 format quick
@yu-hant
yu-hant / README.md
Last active January 4, 2024 02:03
Python VSCode Launch Config

Python launch config

vscode launch.json

{
   // Use IntelliSense to find out which attributes exist for C# debugging
   // Use hover for the description of the existing attributes
   // For further information visit https://github.com/OmniSharp/omnishar...
   "version": "0.2.0",
 "configurations": [