Skip to content

Instantly share code, notes, and snippets.

View Xiaorui-Huang's full-sized avatar

Richard Huang Xiaorui-Huang

View GitHub Profile
@Xiaorui-Huang
Xiaorui-Huang / Noetic-Ubuntu22.04.md
Created May 28, 2024 04:51 — forked from Meltwin/Noetic-Ubuntu22.04.md
Installing ROS1 Noetic on Ubuntu 22.04

The process is pretty similar to the standard installation from source except for some fixes that you will have to make during the installation. I will keep the same header so you can keep a track on both guide at the same time (follow the official website for more explication, I will only write the steps to make).

1 - Prerequisites

1.1 - Installing bootstrap dependencies

To install bootstrap dependencies

@Xiaorui-Huang
Xiaorui-Huang / bash_cheat.txt
Created October 19, 2023 23:14
bash cheats
##############################################################################
# SHORTCUTS and HISTORY
##############################################################################
CTRL+A # move to beginning of line
CTRL+B # moves backward one character
CTRL+C # halts the current command
CTRL+D # deletes one character backward or logs out of current session, similar to exit
CTRL+E # moves to end of line
CTRL+F # moves forward one character
@Xiaorui-Huang
Xiaorui-Huang / new_user.sh
Last active April 29, 2025 15:50
Setup Files
#!/bin/bash
# Prompt the user for a new username
read -p "Please enter a new username: " NEW_USER
# Exit the script if no username is provided
if [[ -z "$NEW_USER" ]]; then
echo "No username provided. Exiting."
exit 1
fi
@Xiaorui-Huang
Xiaorui-Huang / random_delete.py
Last active October 17, 2023 18:43
Remove Random files in Android folder
import os
import random
import subprocess
import argparse
def get_file_list(directory_path: str) -> list[str]:
"""
use adb to get a list of files in the specified directory on the android device.
"""
cmd = ['adb', 'shell', 'ls', directory_path]
@Xiaorui-Huang
Xiaorui-Huang / install.inf
Created October 7, 2023 05:50
NieR Automata Cursor install file
; -- Install file for https://www.deviantart.com/juliodrai/art/Nier-Automata-Cursor-Hack-Edition-v2-736152335
; -- place it in the same folder and the .ani cursors
; -- right click and install
; -- you can then find the cursor scheme in Windows theme for mouse cursor in the main setting
[Version]
signature="$CHICAGO$"
Provider="Xiaorui-Huang"
[DefaultInstall]
@Xiaorui-Huang
Xiaorui-Huang / bubblesextra.omp.json
Last active September 4, 2024 20:08
omp_config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"auto_upgrade": true,
"disable_notice": true,
"blocks": [
{
"alignment": "right",
"segments": [
{
"background": "p:black",