Skip to content

Instantly share code, notes, and snippets.

View simonholm's full-sized avatar
:octocat:

Simon Holm simonholm

:octocat:
View GitHub Profile
@simonholm
simonholm / check_drivers_ps.ps1
Created November 9, 2020 04:13
detect drivers version with powershell
Get-WmiObject Win32_PnPSignedDriver| select DeviceName, DriverVersion, Manufacturer | where {$_.DeviceName -like "*Intel*"}
# + filter/sort
Get-WmiObject Win32_PnPSignedDriver| select DeviceName, DriverVersion, Manufacturer
# https://www.thomasmaurer.ch/2016/09/get-installed-driver-version-using-powershell/
@simonholm
simonholm / ps_search.ps1
Last active October 29, 2020 23:51
note to self the force parameter to search for hidden files etc, powershell search
Get-Childitem –Path C:\ -Recurse –Force -ErrorAction SilentlyContinue
# https://devblogs.microsoft.com/scripting/use-windows-powershell-to-search-for-files/
@simonholm
simonholm / chrome_unatt_icon.md
Last active February 3, 2021 06:34
remove the unattractive icon (puzzle) in chrome and brave

chrome://flags/#extensions-toolbar-menu
brave://flags/#extensions-toolbar-menu

@simonholm
simonholm / Search my gists.md
Created October 22, 2020 19:47 — forked from santisbon/Search my gists.md
How to search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@simonholm
simonholm / installwsl.ps1
Created October 5, 2020 20:48
note to self install WSL/WSL2 with PowerShell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
# https://docs.microsoft.com/en-us/windows/wsl/install-win10
@simonholm
simonholm / os_version.ps1
Created October 1, 2020 16:43
powershell detect os version and build
(Get-CimInstance Win32_OperatingSystem) | select Caption, Version, BuildNumber
@simonholm
simonholm / rustlings_if2.rs
Last active September 26, 2020 21:07
rustlings_if2.rs
pub fn fizz_if_foo(fizzish: &str) -> &str {
if fizzish == "fizz" {
"foo"
} else if fizzish == "fuzz" {
"bar"
} else {
"baz"
}
}