Skip to content

Instantly share code, notes, and snippets.

View simonholm's full-sized avatar
:octocat:

Simon Holm simonholm

:octocat:
View GitHub Profile
  • github pages, hugo, gatsby etc, github action
  • github profile README "easter egg"
@simonholm
simonholm / update_help_ps.ps1
Created August 9, 2020 07:01
how to update ps help without all crazy errors
update-help -Force -ErrorAction SilentlyContinue
@simonholm
simonholm / install_wsl_enable_vm.ps1
Last active May 8, 2021 04:48
enable and install wsl
# Install WSL
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
# Enable VM
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
# Windows Server

systeminfo | Select-String "^OS Name","^OS Version"

@simonholm
simonholm / install_chrome_mint.sh
Last active August 14, 2020 06:28
install chrome at terminal on mint xfce #fail
#install chrome on mint xfce
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt install google-chrome-stable
@simonholm
simonholm / install_chrome_on_mint_xfce.sh
Created August 14, 2020 06:26
create a google repo and install chrome on mint xfce (this one work)
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/chrome.list
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
apt-get update
apt-get install google-chrome-stable
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
@simonholm
simonholm / powershell_remove_history.ps1
Last active May 1, 2025 07:39
remove history in powershell irreversibly
# Metadata:
# Topic: PowerShell History Management
# Tags: powershell, history, PSReadline, cleanup, scripting, privacy
# Author: simon (optional)
# Date: 2025-05-01
# @meta topic: PowerShell History Management
# @meta tags: powershell, history, PSReadline, cleanup, scripting, privacy
# @meta author: simon
# @meta date: 2025-05-01