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 / install_build_essential.sh
Last active January 25, 2021 20:45
note to self: failing rust install on Ubuntu linker cc not found
# needed when installing rust on Ubuntu/WSL
sudo apt install build-essential
@simonholm
simonholm / disable_ext_toolbar_menu.txt
Last active February 2, 2021 22:27
note to self; how to disable ext toolbar menu in chromium
--disable-features=ExtensionsToolbarMenu
# HT
# https://www.tenforums.com/tutorials/153789-how-enable-disable-extensions-toolbar-menu-google-chrome.html
# https://winaero.com/disable-extension-toolbar-menu-button-in-google-chrome-87
@simonholm
simonholm / source_bashrc.sh
Created January 9, 2021 06:29
note to self, save keystroke reload ~/.bashrc
source ~/.bashrc
# keystroke saver, alternate
. ~/.bashrc
@simonholm
simonholm / conflict_vscode_plugins.md
Created December 22, 2020 06:40
note to self: vscode plugin conflict

matklad.rust-analyzer
rust-lang.rust

@simonholm
simonholm / remove_cortana.ps1
Last active January 12, 2021 06:12
note to self; remove cortana with powershell starting at may 2020 build
# remove cortana from Windows 10 (doesn't support my native language)
# hat-tip:
# https://www.windowscentral.com/how-uninstall-cortana-windows-10-may-2020-update
# remove-appxpackage doesn't seem to work with ps 7.x at the present 2021-04-05
Get-AppxPackage -allusers Microsoft.549981C3F5F10 | Remove-AppxPackage
@simonholm
simonholm / ps_version.ps1
Last active June 12, 2021 06:31
detect/identify powershell engine version
# this command check the powershell engine not only the host e.g. get-host.version
$PSVersionTable.PSVersion
# for more exapmles and alternative https://adamtheautomator.com/check-powershell-version/
@simonholm
simonholm / wsl_install_from_preview_build_20246.ps1
Last active February 8, 2021 21:07
note to self: distro installation, wsl install command from windows 10 preview build 20246
# https://ubuntu.com/blog/new-installation-options-coming-for-ubuntu-wsl
# https://devblogs.microsoft.com/commandline/distro-installation-added-to-wsl-install-in-windows-10-insiders-preview-build-20246/
# https://docs.microsoft.com/en-us/windows/wsl/install-win10
wsl --install -d <distros>
# alternative wsl.exe --install -d <distros>
wsl --list --online
#neh you disto version to wsl1 or wsl2
wsl --list --verbose
@simonholm
simonholm / powershell_foo.ps1
Last active December 3, 2020 21:01
powershell more general about foo
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_command_syntax?view=powershell-7
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parameters?view=powershell-7