Skip to content

Instantly share code, notes, and snippets.

View sam-mcmullen's full-sized avatar

Sam sam-mcmullen

View GitHub Profile
<?php
/**
* WHMCS Licensing Cron Hook
* Automatically suspends overdue
* WHMCS Support & Updates Addons
* @license GPL V3 <http://www.gnu.org/licenses/>
*
* Copyright (C) 2013 Robert Gregor
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active April 19, 2025 05:22
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@cearls
cearls / gist:1245316
Created September 27, 2011 15:10
Rackspace Cloud Site backup script
#!/bin/bash
export ACCOUNT_ROOT="account root"
export WEB_ROOT="${ACCOUNT_ROOT}/web/content"
export DB_HOST="db host"
export DB_USER="db user"
export DB_PASSWORD="db password"
export DB_NAME="db name"
echo "Rotating backups..."