Skip to content

Instantly share code, notes, and snippets.

View LarkRiseMedia's full-sized avatar

Andy Wilkinson LarkRiseMedia

View GitHub Profile
@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"
#!/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
#
@kevinelliott
kevinelliott / 1-macOS-10.12-sierra-setup.md
Last active February 5, 2024 07:22
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 July 26, 2024 12:21
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname