Skip to content

Instantly share code, notes, and snippets.

View federicociro's full-sized avatar

Federico B federicociro

View GitHub Profile

Remove Proxmox Subscription Notice

Screenshot-2023-08-28-200252

Run the following one line command and then clear your browser cache (depending on the browser you may need to open a new tab or restart the browser):

sed -Ezi.bak "s/(function\(orig_cmd\) \{)/\1\n\torig_cmd\(\);\n\treturn;/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
@federicociro
federicociro / public_key
Created October 27, 2023 10:36
Wireguard
y5B0W3Qxmo/EnbmS5DH9erZB2Ub8B1kR4cniKL1oCmA=
@federicociro
federicociro / alias
Last active March 28, 2024 13:47
Fresh LxC actions
# Common aliases
alias la='LS_COLORS="mh=1;37" ls -A'
alias l='LS_COLORS="mh=1;37" ls -CF'
alias ll='LC_COLLATE=C LS_COLORS="mh=1;37" ls -la --si --group-directories-first'
alias cls='clear'
alias ..='cd ..'
alias ...='cd ../..'
alias nano='nano -lS'
alias ss='systemctl status'
@federicociro
federicociro / iOS-VPN-autoconnect-WireGuard.mobileconfig
Created March 3, 2023 01:05 — forked from deg0nz/iOS-VPN-autoconnect-WireGuard.mobileconfig
Connect iOS to WireGuard VPN when connected to untrusted WiFi
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<!-- Connect to VPN when connected to untrusted networks -->
<dict>
@federicociro
federicociro / borg-backup.service
Last active December 27, 2022 22:01
Bash scripts to backup the system
[Unit]
Description=Create backup using Borg backup
[Service]
Type=oneshot
ExecStart=/bin/sh -c "/home/$USER/scripts/borg-backup.sh"
StandardOutput=file:/var/log/borg-backup.log
@federicociro
federicociro / cloudflare-ddns.service
Last active December 27, 2022 22:04
Bash script to update DNS records in Cloudflare if local IP changed
[Unit]
Description=Cloudflare always up to date DNS daemon.
Documentation=https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records
[Service]
Type=simple
ExecStart=/usr/local/bin/cloudflare-ddns.sh
StandardOutput=file:/var/log/cloudflare-ddns.log
[Install]

Keybase proof

I hereby claim:

  • I am federicociro on github.
  • I am federicociro (https://keybase.io/federicociro) on keybase.
  • I have a public key ASBoQE0fo-2NfngGCrKO6ogKSnuEGf8ybC2Vb1uSNxoCgwo

To claim this, I am signing this object: