Tuesday, January 09, 2024
PowerShell Quick Tip: Get alias for a cmdlet
PowerShell Quick Tip: Get alias for a cmdlet
Below shows how to get the aliases for Remove-Item cmdlet.PS C:\prj> Get-Alias -Definition Remove-Item CommandType Name Version Source ----------- ---- ------- ------ Alias del -> Remove-Item Alias erase -> Remove-Item Alias rd -> Remove-Item Alias ri -> Remove-Item Alias rm -> Remove-Item Alias rmdir -> Remove-Item
PowerShell Quick Tip: Delete a folder recursively
PowerShell Quick Tip: Delete a folder recursively
PS C:\> Remove-Item -Recurse -Force .\folder_to_delete\
Or using alias
PS C:\> rm -r -fo .\folder_to_delete\
Sunday, January 07, 2024
Rust: Using Windows thread pool
Rust: Using Windows thread pool
Quick demo how to use Windows thread pool in Rust using windows crate.Create new project
PS C:\> mkdir prj PS C:\> cd prj PS C:\> cargo new thread_pool_work
Edit Cargo.toml like below
Update src/main.rs
Run thread_pool_work
PS C:\prj\thread_pool_work> cargo run Compiling thread_pool_work v0.1.0 (C:\prj\thread_pool_work) Finished dev [unoptimized + debuginfo] target(s) in 0.64s Running `target\debug\thread_pool_work.exe` counter: 10
Monday, January 01, 2024
Subscribe to:
Posts (Atom)
Installing QNX 6.4.1 on Ubuntu 20.04
Installing QNX 6.4.1 on Ubuntu 20.04 Install pre-requisites $: sudo dpkg --add-architecture i386 $: sudo apt update $: sudo apt install li...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...
-
Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed pro...
-
Press Alt+F1, then type: #: reboot -p Reference(s): https://groups.google.com/forum/#!topic/android-x86/pEI7xAnOpNY