This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# irustic.sh - Execute rustic and sends a notification upon successful completion. | |
# SPDX-License-Identifier: MIT (https://ncurl.xyz/s/Kkn2DQsNR) | |
set -e | |
# rustic-rs/rustic | |
# https://github.com/rustic-rs/rustic | |
DIR_RUSTIC="/root/.config/rustic" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ipam.sh | |
# SPDX-License-Identifier: MIT (https://ncurl.xyz/s/Kkn2DQsNR) | |
#================================================================ | |
# Bare Metal to phpIPAM Synchronizer | |
# | |
# Purpose: | |
# This script runs on any bare metal server or standalone host. | |
# It detects its own hostname, IP, and MAC address, and reports |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ipam-pve.sh | |
# SPDX-License-Identifier: MIT (https://ncurl.xyz/s/Kkn2DQsNR) | |
#================================================================ | |
# Proxmox VE (VM & CT) to phpIPAM Synchronizer | |
# | |
# Features: | |
# - Periodically scans all running VMs and Containers (CT) on Proxmox VE. | |
# - Retrieves IP, hostname, and MAC address. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// generate-spa-nginx-routes.js | |
// SPDX-License-Identifier: MIT (https://ncurl.xyz/s/Kkn2DQsNR) | |
// nginx.conf example: | |
// | |
// include routes_params; | |
// ... | |
// location / { | |
// try_files $uri $uri/ $routes =404; | |
// } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/openrc-run | |
# CloudFlared OpenRC for Alpine Linux | |
# https://github.com/cloudflare/cloudflared | |
# SPDX-License-Identifier: Apache-2.0 | |
cloudflare_token="YOUR_TOKEN_HERE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Continuous Integration for Wails.io | |
# SPDX-License-Identifier: MIT (https://ncurl.xyz/s/o_o6DVqIR) | |
name: Continuous Integration for Wails.io | |
on: | |
push: | |
branches: | |
- main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# daily_tasks.sh - Execute daily tasks and sends a notification upon successful completion. | |
# SPDX-License-Identifier: MIT (https://ncurl.xyz/s/o_o6DVqIR) | |
# https://gist.github.com/supersonictw/ef01b51032cff6299246abe02de04099 | |
# crontab -e | |
# 0 3 * * * sh /somewhere/daily_tasks.sh >/dev/null 2>&1 # execute silently at 3 a.m every day | |
NOTIFY() { | |
local DATE_NOW="$(date)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
"use strict"; | |
const http = require("node:http"); | |
const port = process.env.SERVER_PORT || "8000"; | |
http.createServer((req, rsp) => { | |
rsp.writeHead(200,{ | |
"Content-Type": "text/plain" | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# install-nomad-openrc.sh | |
# SPDX-License-Identifier: MIT (https://ncurl.xyz/s/o_o6DVqIR) | |
wget -O "/etc/conf.d/nomad" "https://ncurl.xyz/s/ymx8l_nHg" | |
wget -O "/etc/init.d/nomad" "https://ncurl.xyz/s/G1Vsr_7NR" | |
chown root:root "/etc/conf.d/nomad" "/etc/init.d/nomad" | |
chmod +x "/etc/init.d/nomad" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Consul OpenRC from Alpine Linux 3.17 | |
# SPDX-License-Identifier: MPL-2.0 | |
# https://pkgs.alpinelinux.org/package/v3.17/community/x86/consul-openrc | |
# /etc/conf.d/consul | |
# Consul startup | |
consul_opts="agent -config-dir=/etc/consul.d" |
NewerOlder