Skip to content

Instantly share code, notes, and snippets.

View hxYuki's full-sized avatar
💨
Blows, blow.

Helix hxYuki

💨
Blows, blow.
View GitHub Profile
@hxYuki
hxYuki / run-win.sh
Last active October 4, 2025 15:24
Bevy wsl cross compile run debug
#!/bin/sh
set -e
project=$(cargo locate-project --message-format=plain)
current=$(dirname $project)
cd $current
project_name=$(awk -F ' = ' '$1 ~ /name/ { gsub(/[\"]/, "", $2); printf("%s",$2) }' Cargo.toml)
exe_name="$project_name.exe"
{
"$schema": "vscode://schemas/color-theme",
"name": "OneDarkPro-Rust-winter-with-sementic",
"type": "dark",
"semanticHighlighting": true,
"colors": {
"actionBar.toggledBackground": "#525761",
"activityBar.background": "#282c34",
"activityBar.foreground": "#d7dae0",
"activityBarBadge.background": "#4d78cc",
@hxYuki
hxYuki / deduplication.ps1
Created March 14, 2022 14:31
remove duplicated files with same name and " (num)" suffix
Get-ChildItem -Recurse | Group-Object -Property {$_.BaseName -replace ' \(\d+\)',''} | ?{$_.Count -gt 1} | %{$_.Group|%{ $_ |?{$_.BaseName -match ' \(\d+\)'} | Remove-Item }}