Skip to content

Instantly share code, notes, and snippets.

View oNaiPs's full-sized avatar
🏗️

José Luis Pereira oNaiPs

🏗️
View GitHub Profile
@oNaiPs
oNaiPs / download_latest_omada.sh
Last active December 20, 2023 23:33
Get latest Omada version from the controller
#!/bin/env bash
#
# Downloads latest omada update package.
# First, ensure to check for updates from the UI so that the download URL
# is available in the database
#
URL=$(mongo omada --port 27217 --quiet --eval "print(db.systemsetting.findOne({}, { 'swc_firmware.fw_url': 1, _id: 0 }).swc_firmware.fw_url)")
curl -O "$URL"
@oNaiPs
oNaiPs / lxc_create_github_actions_runner.sh
Last active June 17, 2025 21:06
Create LXC container as self-hosted github actions runner
#!/usr/bin/env bash
set -e
GITHUB_RUNNER_URL="https://github.com/actions/runner/releases/download/v2.311.0/actions-runner-linux-x64-2.311.0.tar.gz"
TEMPL_URL="http://download.proxmox.com/images/system/ubuntu-23.04-standard_23.04-1_amd64.tar.zst"
PCTSIZE="20G"
if [ -z "$GITHUB_TOKEN" ]; then
read -p "Enter github token: " GITHUB_TOKEN
### Keybase proof
I hereby claim:
* I am onaips on github.
* I am onaips (https://keybase.io/onaips) on keybase.
* I have a public key whose fingerprint is 4738 CF83 7868 7629 4C9C 2ACF F344 31C3 F774 5292
To claim this, I am signing this object: