Skip to content

Instantly share code, notes, and snippets.

View HighwayofLife's full-sized avatar
🥷
Jedi

David Lewis HighwayofLife

🥷
Jedi
View GitHub Profile
@mpneuried
mpneuried / Makefile
Last active April 19, 2024 21:06
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@lacostej
lacostej / install_unity3d.sh
Created July 10, 2013 01:03
A script to install Unity3d automatically from the command line given a dmg file. The resulting file is stored under /Applications/Unity$VERSION
dmg=$1
# A script to install Unity3d automatically from the command line given a dmg file.
# The resulting file is stored under /Applications/Unity$VERSION
# check assumptions
unityhome=/Applications/Unity
if [[ -d "$unityhome" ]]; then
echo "ERROR: $unityhome already present"
@michaelkirk
michaelkirk / show-remote-branch-info.sh
Created May 4, 2012 16:51
sort remote branches by age
#!/bin/sh
#
# Too many crusty old git branches? Run this to find likely candidates for deletion
# It lists all the remote branches and sorts them by age.
#
# Folks at pivotal shared this with me
#
#$ . show-remote-branch-info.sh
# 2012-05-04 09:42:29 -0700 4 minutes ago Ted & Bill \torigin/hey_Bill
<?php
// Register our shutdown function so that no other shutdown functions run before this one.
// This shutdown function calls exit(), immediately short-circuiting any other shutdown functions,
// such as those registered by the devel.module for statistics.
register_shutdown_function('status_shutdown');
function status_shutdown() {
exit();
}
// Drupal bootstrap.