Skip to content

Instantly share code, notes, and snippets.

View Fuwn's full-sized avatar
✒️
亀の甲より年の功

Fuwn Fuwn

✒️
亀の甲より年の功
View GitHub Profile
User-agent: *
Disallow: /x
Disallow: /proxy
User-agent: DataForSeoBot
Disallow: /x
Disallow: /proxy
@Fuwn
Fuwn / List-External-Services.ps1
Last active September 2, 2025 17:12
A PowerShell script to list external services that have been installed separately from the base Windows experience. I.e., user-installed services.
foreach ($service in Get-Service | ForEach-Object { $_.Name }) {
$path = Get-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\$service | ForEach-Object { $_.ImagePath }
# Change this as you see fit, but it should catch most externally installed services.
if ($path -like "*C:\Windows*") {
continue
}
"{0}: {1}" -f $service, $path | Write-Output
}
@Fuwn
Fuwn / rustfmt.toml
Created May 5, 2023 05:16
My current `rustfmt.toml`
edition = "2021"
enum_discrim_align_threshold = 40
error_on_line_overflow = true
error_on_unformatted = true
fn_single_line = true
format_code_in_doc_comments = true
format_macro_matchers = true
format_strings = true
inline_attribute_width = 80
match_arm_blocks = false