Skip to content

Instantly share code, notes, and snippets.

@subnet
subnet / pihole-v6-letsencrypt-cloudflare.md
Created May 22, 2025 18:55 — forked from kaczmar2/pihole-v6-letsencrypt-cloudflare.md
Automating SSL Certificate Renewal for Pi-hole v6 (acme.sh + Cloudflare)

Pi-hole v6: Automating Let's Encrypt SSL Renewal with Cloudflare DNS

See my other guides for SSL certificates on Pi-hole v6:

Overview

Pi-hole v6 introduces changes to its web server:

  • Embedded Web Server – Pi-hole no longer relies on lighttpd.
@subnet
subnet / oci_console_vnc.sh
Created May 7, 2025 18:44
bash script to connect to Oracle cloud shell serial console opening tunnel to localhost for VNC
# 2025-05-07
# script to connect to Oracle cloud shell serial console of a Oracle VPS
# opening a localhost tunnel on port 5900 for VNC connection
# see:
# https://docs.oracle.com/en-us/iaas/Content/Compute/References/serialconsole.htm
# After creating the connection string from "Compute/Instances/Instance Details/Console connection" enter the values required by the script
# assuming this connection string:
@subnet
subnet / oci_console.sh
Last active May 7, 2025 18:35
bash script to connect to Oracle cloud shell serial console
# 2025-05-07
# script to connect to Oracle cloud shell serial console of a Oracle VPS.
# see:
# https://docs.oracle.com/en-us/iaas/Content/Compute/References/serialconsole.htm
# After creating the connection string from "Compute/Instances/Instance Details/Console connection" enter the values required by the script
# assuming this connection string:
# ssh -o ProxyCommand='ssh -W %h:%p -p 443 ocid1.instanceconsoleconnection.oc1.eu-frankfurt-1.antheljrn56mleicmsxxxxxxxx6p5hcrpnpixpjyn76cm5mrza6m4cdcpd3q@instance-console.eu-frankfurt-1.oci.oraclecloud.com' \
# ocid1.instance.oc1.eu-frankfurt-1.antheljrn56xxxxxxxqsto5e3hlnk35phm3x6obgp6othh4kyadsuagytnq
@subnet
subnet / .bash_aliases
Created April 14, 2025 13:03 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@subnet
subnet / undervoltage_check.service
Created April 3, 2025 16:38
Raspberry Pi - simple undervoltage detect service
# /etc/systemd/system/undervoltage_check.service
[Unit]
Description=Monitoraggio dei log di sistema per una stringa specifica
After=network.target
[Service]
ExecStart= /usr/local/bin/undervoltage_check.sh
Restart=always
PIDFile=/run/undervoltage_check.pid
#StandardOutput=syslog
@subnet
subnet / gist:2c7bf75f28f30ec8ccbb66e997d6c545
Created May 1, 2023 08:03 — forked from dramaturg/gist:6bb04b35c290b502df52b62f5a6d8d19
Thecus N3200PRO/N3800 on-board VGA output pinout

Thecus N3200PRO/N3800 on-board VGA output pinout

Using the on-board VGA output

The AMD Geode has an on-chip VGA controller that is connected to an IDC-10 connector on the motherboard, to the left of the CPU. It is relatively easy to build a custom cable to connect this port to a regular DB-15 VGA port. The IDC-10 connector pins are labelled on the board, with pin 2 being and bottom left pin, and pin 10 the topleft one (see image below). The following pinout seems to work enough for BIOS access and simple graphic modes.

4: RED, GREEN and BLUE GROUNDs
5: RED
@subnet
subnet / chmod_R.php
Created November 12, 2020 12:25 — forked from fitorec/chmod_R.php
Chmod Recursive for PHP.
<?php
/*
* Description: chmod recursive.
* Code-Base: official documentation php.net chmod function
* Link: http://www.php.net/manual/en/function.chmod.php#105570
*
* Example usage :
* chmod_R( 'mydir', 0666, 0777);
*
*/