Skip to content

Instantly share code, notes, and snippets.

@abelbeck
abelbeck / apiban-netset.php
Last active October 15, 2021 13:50
Use APIBAN to generate .netset files for AstLinux
#!/usr/bin/php -qC
<?php
//
// apiban-netset
//
// Copyright (C) 2021 Lonnie Abelbeck
//
// This is free software, licensed under the GNU General Public License
// version 3 as published by the Free Software Foundation; you can
@abelbeck
abelbeck / tiddlywiki-store.php
Last active November 1, 2019 16:01
TiddlyWiki upload store.php script, revised for the AstLinux Project
<?php
/***
! User settings
Edit these lines according to your need
***/
//{{{
$AUTHENTICATE_USER = true; // true | false
$USERS = array(
'admin'=>'valid'); // set valid usernames behind HTTPS basic auth
$DEBUG = false; // true | false
@abelbeck
abelbeck / acme-deploy-custom.script.sh
Last active February 1, 2024 03:32
Deploy ACME certificates to HP Aruba IAP Access Point
#!/bin/bash
##
## AstLinux acme-client, deploy/custom.sh action script
##
## Tested with:
## ArubaOS (MODEL: 215), Version 6.5.4.3
##
## custom_deploy() arguments
_cdomain="$1"
@abelbeck
abelbeck / rc.elocal
Last active September 22, 2017 00:42
Startup delay using /mnt/kd/rc.elocal
#!/bin/sh
. /etc/rc.conf
## External target IPv4 host address, *not* a DNS name
TARGET_HOST="${IPCSOLUTIONS_TARGET_HOST:-8.8.4.4}"
## Approximate max seconds to delay
MAX_DELAY=120
@abelbeck
abelbeck / new-reload-blocklist-netset.sh
Created September 15, 2017 15:44
New reload-blocklist-netset
set -x
mkdir -p /mnt/kd/bin
curl -sSfL -o /mnt/kd/bin/reload-blocklist-netset 'https://raw.githubusercontent.com/astlinux-project/astlinux/7279479b622418d51948fae3c8fba68312f19071/package/arnofw/reload-blocklist-netset'
chmod 755 /mnt/kd/bin/reload-blocklist-netset
: Lastly adjust cron to use /mnt/kd/bin/reload-blocklist-netset instead
: You must do that manually