Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View sethryder's full-sized avatar
:shipit:

Seth Ryder sethryder

:shipit:
View GitHub Profile
@sethryder
sethryder / yoast_redirect_fixer.php
Last active April 29, 2022 18:16
update redirects in yoast when changing from date based permalinks to just post name
<?php
$option_value_export_plain = file_get_contents('export_plain.txt');
$option_value_base = file_get_contents('base.txt');
$export_plain = unserialize($option_value_export_plain);
$base = unserialize($option_value_base);
$new_export_plain = [];
@sethryder
sethryder / blackbox.yml
Last active April 17, 2023 06:49
monitor multiple blackbox modules with a single job
modules:
https_2xx:
prober: http
timeout: 5s
http:
method: GET
no_follow_redirects: false
fail_if_ssl: false
fail_if_not_ssl: true
preferred_ip_protocol: "ipv4"
@sethryder
sethryder / preprocessing.sh
Created October 17, 2023 21:46
dblab engine snapshot preprocessing example
#!/bin/bash
# preprocessing.sh
POSTGRES_VERSION=14
POSTGRES_IMAGE="postgresai/extended-postgres:${POSTGRES_VERSION}"
POOL_NAME=dblab_pool
MOUNT_DIR=/var/lib/dblab/"${POOL_NAME}"
# logical mode (with dataset)