Skip to content

Instantly share code, notes, and snippets.

View aleixlopez's full-sized avatar

Aleix Lopez aleixlopez

View GitHub Profile
@aleixlopez
aleixlopez / .not_logged_in_yet
Created January 28, 2026 15:48
armbian first login
#/root/.not_logged_in_yet
## WiFi
PRESET_NET_WIFI_ENABLED="0"
# System
SET_LANG_BASED_ON_LOCATION="n"
PRESET_LOCALE="en_US.UTF-8"
PRESET_TIMEZONE="Europe/Madrid"
# Root
@aleixlopez
aleixlopez / 00-banner.issue
Last active October 15, 2024 10:15
etc/issue content to show IP address
OS Autoinstalled Successfully
After-Install information:
--------------------------
Username: ubuntu
Hostname: \n
IP Address: \4
--------------------------
@aleixlopez
aleixlopez / github_meta_parser.sh
Created December 21, 2020 11:11
Bash script for parsing github meta endpoint desired sections to nginx allowed ip format
#!/bin/bash
# put here values you want to parse, then redirect the output to the desired file
values_to_parse=('actions' 'hooks' 'api');
meta=$(curl -s https://api.github.com/meta)
for v in ${values_to_parse[@]}; do
echo "# $v"
echo $meta | jq ".$v | .[]" | sed 's/^"/allow /;s/"/;/'
echo ""
done
[=== Moxa - Skullflame profile ===]
30442882005288AAE6122BB88A16417C44D2302D33888964227D05A6B988AF64
2A6C1A8A3704CA388A0D0488A8A38222612AA4F01558988AA47154AAD8822D74
88432155472542979424899424DD4455CE41E729068A8493A424495A015E9A43
594D55119C6588A8C7588A43612A28EC29015DA588A0CE55F79488C06119A3C4
85C44E132C460AE232D6680F994A1D8293D09E5B84A6635ABD22CE645E738683
0A3E01556934D37089E457D158DE8AAAEB3AAAC871983F88A5F8226F3909E3FA
F22764A815038A261468C0F5F52810078905C28C091E085FE790600C1628F254
8068570CAF208509F51A583FE500B02F3462050FCB710C28CF2DCA0235C3FE57
8AAA69235881931561A485A3FE500B02FB4318D9C3FEEBF54A81503862184972
# Description: Boxstarter Script
# Author: Aleix Lopez
# Last Updated: 2019-09-03
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@aleixlopez
aleixlopez / CleanLogs.ps1
Last active December 11, 2018 13:20
CleanLogs in Logs directory
param(
$limit = (Get-Date).AddDays(-3),
$path = "C:\Logs"
)
# Delete files older than the $limit.
$FilesToDelete = (Get-ChildItem -Path $path | Where-Object { $_.LastWriteTime -lt $limit })
# If files are deleted create a log detailing this