Skip to content

Instantly share code, notes, and snippets.

View deekayen's full-sized avatar
🏡
Working from home

David Norman deekayen

🏡
Working from home
View GitHub Profile
@garlandkr
garlandkr / ami-clean.sh
Last active May 31, 2024 10:38
Clean-up an Amazon EC2 instance before creating an AMI
#!/bin/bash
# Run this script with:
# bash <(curl -s https://gist.github.com/garlandkr/e80674b49270b0199fa6/raw/ami-clean.sh
function print_green {
echo -e "\e[32m${1}\e[0m"
}
print_green 'Clean Yum'
@shrop
shrop / CrashPlan Pause-Resume.scpt
Created March 29, 2014 20:46
CrashPlan Pause/Resume
set isCrashPlanRunning to false
try
set pid to do shell script ¬
"sudo launchctl list | grep com.crashplan.engine" user name "username" password ¬
"password" with administrator privileges
set isCrashPlanRunning to true
end try
if isCrashPlanRunning then
log "CrashPlan is already running: " & pid
@shrop
shrop / rebuild-perms.php
Last active December 30, 2015 04:19
Rebuild permissions for running via Drush (no batch process)
<?php
/**
* @file
* Rebuild the node access database with no php time limits.
*/
/**
* Rebuilds the node access database (for use with drush php-script).
*
anonymous
anonymous / site-db-backup
Created December 28, 2012 15:34
Backup a Drupal site's database using drush, minus disposable data.
#!/bin/bash
# Check for the existance of drush on the system
if [[ ! -x /bin/drush || ! -x /usr/bin/drush ]]; then
echo "This script requires drush!"
echo
exit 3
fi
if [[ -z ${1} ]]; then
@shrop
shrop / brewStack.md
Last active October 11, 2023 20:18
brewStack Docs
@ziadoz
ziadoz / awesome-php.md
Last active May 8, 2025 07:37
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@vangberg
vangberg / todo
Created September 7, 2008 19:37
Best To-Do List. Ever.
#!/bin/sh
# Best To-Do List. Ever.
#
# Usage:
# 1. Add a new item to list: `todo This needs to be fixed`
# 2. Edit the to-do list: `todo -e`
# 3. Show the current to-do's: `todo`
if [[ $1 ]]; then
if [ $1 = "-e" ]; then