Skip to content

Instantly share code, notes, and snippets.

View aldodelgado's full-sized avatar
💭
Bring a spring upon her cable

Aldo Delgado aldodelgado

💭
Bring a spring upon her cable
View GitHub Profile
@mzaragoza
mzaragoza / prepare-commit-msg
Last active August 29, 2015 14:05
Prepare Commit Message Hook Script
#!/usr/bin/php
<?php
# Git Prepare Commit Message Hook Script
#
# Location: <repository>/.git/hooks/prepare-commit-msg
#
# This script will automatically add the correct
# Pivotal Ticket ID to the beginning of each commit message
# When the branch ID is starts with the Pivotal Message ID.
@mzaragoza
mzaragoza / gist:5221795
Created March 22, 2013 14:44
MYSQL FIND ANYTHING IN DB
<?php
session_start();
define("mz_DB_USERNAME", "XXXXXX");
define("mz_DB_PASSWORD", "XXXXXX");
define("mz_DB_HOST", "XXXXXX");
define("mz_DB_DATABASE", "XXXXXX");
require_once('config.inc.php');
require_once('__database_class.php');
$db = new mz_database();