Skip to content

Instantly share code, notes, and snippets.

View Cierra-Runis's full-sized avatar
😎
很酷,不编程

Cierra-Runis Cierra-Runis

😎
很酷,不编程
View GitHub Profile
New-Item "HKCU:\Control Panel\Input Method\Hot Keys\00000010" -Force | Out-Null
Set-ItemProperty "HKCU:\Control Panel\Input Method\Hot Keys\00000010" "Key Modifiers" ([byte[]](0x00,0xC0,0x00,0x00))
Set-ItemProperty "HKCU:\Control Panel\Input Method\Hot Keys\00000010" "Virtual Key" ([byte[]](0xFF,0x00,0x00,0x00))
New-Item "HKCU:\Control Panel\Input Method\Hot Keys\00000070" -Force | Out-Null
Set-ItemProperty "HKCU:\Control Panel\Input Method\Hot Keys\00000070" "Key Modifiers" ([byte[]](0x00,0xC0,0x00,0x00))
Set-ItemProperty "HKCU:\Control Panel\Input Method\Hot Keys\00000070" "Virtual Key" ([byte[]](0xFF,0x00,0x00,0x00))
New-Item "Registry::HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000010" -Force | Out-Null
Set-ItemProperty "Registry::HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000010" "Key Modifiers" ([byte[]](0x02,0xC0,0x00,0x00))
@Cierra-Runis
Cierra-Runis / script.ps1
Created June 5, 2025 22:09
Remove or Customize Windows Shortcut Arrow Icon
if (!(Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons')) { New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons' -Force } ; New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons' -Name 29 -Value "$env:SystemRoot\System32\imageres.dll,197" -PropertyType String -Force ; Stop-Process -Name explorer -Force ; $f="$env:USERPROFILE\AppData\Local\IconCache.db"; if(Test-Path $f){attrib -s -r -h $f; Remove-Item $f -Force}; Start-Process explorer;
@Cierra-Runis
Cierra-Runis / main.dart
Created May 10, 2023 22:49
tangled-rose-8335
void main() {
final templateUrl = '{host}/api/v3/{container}/{resourceId}';
final params = <String, dynamic>{
'host': 'www.api.com',
'container': 'books',
'resourceId': 10
};
print(templateUrl.asTemplate(params)); // www.api.com/api/v3/books/10