Skip to content

Instantly share code, notes, and snippets.

View MeonValleyWeb's full-sized avatar
💭
I may be slow to respond.

Andy Wilkinson MeonValleyWeb

💭
I may be slow to respond.
View GitHub Profile
@mwender
mwender / missed-schedule-cli.php
Last active December 11, 2025 10:44
[Publish Missed Scheduled Posts - WP-CLI Command] WP-CLI command for publishing missed scheduled posts #wordpress #wpcli
<?php
/**
* Enhanced "missed schedule" WP-CLI command. Add this to /mu-plugins/ and run it via a real cron job.
*
* Usage:
* wp missed-schedule fix
* wp missed-schedule fix --quiet
* wp missed-schedule fix --log
*/
@mattneal-stafflink
mattneal-stafflink / .lando.yml
Last active May 22, 2024 12:40
Lando Performant Config For WordPress/Bedrock.
name: {{ WEBSITE NAME }}
recipe: wordpress
env_file:
- .env.example
- .lando.env
excludes:
- vendor
- node_modules
config:
php: "8.2"
@kaldaf
kaldaf / domain-finder.py
Last active November 7, 2025 09:13
Find available domains
# INSTALL:
#whois
#requests
#dnspythhon
#inquirer
#python-whois
import socket
import time
import whois
#!/bin/bash
# Prints a list of wp cron schedules on servers set up by SpinupWP.
# Includes only standard wp cron events, nothing custom.
#
# Setup:
# cd /usr/bin/
# sudo vim get_cron_schedules.sh
# -- paste in the contents of this file and save
# sudo chmod 755 get_cron_schedules.sh
#
@ilessing
ilessing / Pandoc Markdown to PDF.md
Last active November 24, 2025 17:55
getting pandoc to generate PDF from Markdown on MacOS

Using Pandoc to generate PDFs from Markdown

on a Mac running macOS 10.13.4

To install the needed components you can use Homebrew

Two Components are needed:

@kevinelliott
kevinelliott / 1-macOS-10.12-sierra-setup.md
Last active December 9, 2025 16:24
macOS 10.12 Sierra Setup

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your o

@jasperf
jasperf / trellis-bedrock-sage.sh
Last active August 6, 2018 03:39
Setup Trellis with Bedrock Based Site and Sage starters theme using site folder rukn.me (you can add your own folder name and will add a variable asap) in a bash script #roots #wordpress
#!/bin/bash
echo "Setting up Roots Trellis with Bedrock
Requirements
Ansible >= 1.9.2
Virtualbox >= 4.3.10 - Install
Vagrant >= 1.5.4
vagrant-bindfs >= 0.3.1 (Windows users may skip this)
vagrant-hostsupdater
PHP >=5.4
Composer"
@MikeRogers0
MikeRogers0 / uptime-monitor.sh
Last active January 30, 2024 08:52
Uptime monitoring geeklet script
#!/usr/bin/php
<?php
# Array of the servers you want to ping.
$servers = array('mikerogers.io', 'google.com', 'downserver.come');
# PingDomain() from http://stackoverflow.com/a/9843251/445724
function pingDomain($domain){
$start_time = microtime(true);
$file = @fsockopen ($domain, 80, $errno, $errstr, 10);
$end_time = microtime(true);
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active December 11, 2025 14:31
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname