Skip to content

Instantly share code, notes, and snippets.

View msh31's full-sized avatar
🌴

Marco msh31

🌴
View GitHub Profile
@msh31
msh31 / discord-update.sh
Created June 18, 2025 07:37
Auto-updater for Discord on Debian based distros
#!/usr/bin/env bash
set -e # exit if a command exists with non zero status
# Check if gdebi is installed, and install it if not
if ! command -v gdebi &> /dev/null
then
echo "gdebi not found. Installing gdebi..."
sudo apt update
sudo apt install -y gdebi-core
@msh31
msh31 / WOL.ps1
Created June 17, 2025 20:24
WOL PowerShell
$MacAddress = "08:BF:B8:12:EC:71"
$MacAddress = $MacAddress.Replace(":", "")
$BroadcastAddress = "192.168.178.255"
$Port = 9
# Convert the MAC address to a byte array
$MacBytes = [byte[]]::new($MacAddress.Length / 2)
for ($i = 0; $i -lt $MacAddress.Length; $i += 2) {
$MacBytes[$i / 2] = [convert]::ToByte($MacAddress.Substring($i, 2), 16)
@msh31
msh31 / devpkg.config
Last active May 28, 2025 12:11
Chocolately dev packages installer
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="dbeaver"/>
<package id="jetbrains-rider"/>
<package id="webstorm"/>
<package id="git"/>
<package id="github-desktop"/>
<package id="nodejs"/>
<package id="dotnet"/>
<package id="composer"/>