Skip to content

Instantly share code, notes, and snippets.

View EDM115's full-sized avatar
:electron:
busy with both studies and gf 🥹

EDM115 EDM115

:electron:
busy with both studies and gf 🥹
View GitHub Profile
@EDM115
EDM115 / sudo on PowerShell.md
Last active May 6, 2024 21:07
sudo on PowerShell

sudo on PowerShell

Microsoft plans on adding a sudo like command on windows (info and controversy)
But what if... you could already use it ? 🤭

Prerequisites

  • Have the newer version of powershell installed.
    If you plan on using the old one, replace pwsh with powershell
@EDM115
EDM115 / Discord on Linux : auto upgrade and auto install BetterDiscord.md
Last active June 15, 2024 09:00
Discord on Linux : auto upgrade and auto install BetterDiscord

Discord on Linux : auto upgrade and auto install BetterDiscord

If you've installed discord on Linux through apt, you know how much of a pain it is to manually download and install it every now and then. It's even worse if you're having to reinstall BetterDiscord every time
So here's 2 simple scripts to fix this :

launch-discord.sh

  • Versatile script to launch discord
  • Auto launches the upgrade script if needed (have to be in the same folder)
  • Detaches the Discord instance from the terminal once done
@EDM115
EDM115 / VS Code : install extensions from a file.md
Last active April 21, 2024 16:45
VS Code : install extensions from a file

VS Code : install extensions from a file

  • To export all installed extensions
code --list-extensions > extensions.txt
  • On linux, think to do
chmod +x vs-code-install-extensions.sh