Skip to content

Instantly share code, notes, and snippets.

View afallendes's full-sized avatar
🌎
WFH

Alexis F. Allendes afallendes

🌎
WFH
View GitHub Profile
@afallendes
afallendes / disable_lid.sh
Last active October 18, 2025 02:08
This script disables your laptop's lid actions using systemd to use as headless server (only tested on Debian Trixie)
#!/bin/bash
msg="Configure systemd to disable lid actions..."
echo "$msg"
sudo systemctl mask \
sleep.target \
suspend.target \
hibernate.target \
@afallendes
afallendes / profile.ps1
Last active December 4, 2023 05:44
A custom PowerShell 7 profile using PSReadLine, CompletionPredictor & Posh-Git.
# Init
function ImportInstall-Module {
param (
[string[]]$List
)
foreach($module in $List) {
if (Get-Module -ListAvailable $module) {
Import-Module $module