This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
#Script written by David Allen on April 15th 2013 | |
use warnings; | |
use Data::Dumper; | |
my @databases = ("TEST"); | |
foreach( @databases ) | |
{ | |
$db = $_; | |
open(FD, $db . "_stored_procs.sql"); | |
my @procedure; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
#set vars | |
my $file_names; | |
my @split_names; | |
#run the pull command | |
`git pull origin master`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# pre-commit hook to check for console logs in staged files | |
# Authors: David Allen drallen1, Spencer Nowak spencernowak | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ticket-custom] | |
progress = select | |
progress.label = Progress | |
progress.options = not started yet|started|ready for QA|tested but has bugs|testing passed|ready for staging|posted to staging|ready for production|posted to production|needs client approval|needs client feedback|needs PM clarification|can't replicate | |
estimate = text | |
estimate.format = plain | |
estimate.label = Hour Estimate | |
percent = select | |
percent.label = Percent Complete | |
percent.options = 0%|25%|50%|75%|100% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: starbound | |
# Required-Start: networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: S 0 1 6 | |
# Short-Description: Starbound Server Daemon | |
# Description: Starts/Stops/Restarts the Starbound Server Daemon | |
### END INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MUSER="$1" | |
MPASS="$2" | |
MSERVER="$3" | |
MPORT="$4" | |
MDB="$5" | |
# Detect paths | |
MYSQL=$(which mysql) | |
AWK=$(which awk) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for dir in */; do | |
timestamp=$(find ./$dir -type f -printf "%T@ %t\\n" | sort -nr -k 1,2 | head -n 1) | |
printf "%s %s\n" "$timestamp" "$dir" | |
done | sort -nr -k 1,2 | awk '{$1=""; print}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
MYSQLROOT=test | |
MYSQLPASS=test | |
S3BUCKET=TAG_Backups | |
FILENAME=test | |
DATABASE='--all-databases' | |
# the following line prefixes the backups with the defined directory. it must be blank or end with a / | |
S3PATH=mysql_backup/ | |
# when running via cron, the PATHs MIGHT be different. If you have a custom/manual MYSQL install, you should set this manually like MYSQLDUMPPATH=/usr/local/mysql/bin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# You will want to also add the git today command: https://github.com/doctorallen/dotfiles/blob/master/.gitconfig#L49 | |
root=$1 | |
if [ -n "$root"] | |
then | |
echo "Error: please define the root directory location for your report." | |
read root | |
fi | |
lastchar=${#root}-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once('workflows.php'); | |
$wf = new Workflows(); | |
$query = "{query}"; | |
$wf->search($query); | |
echo $wf->toxml(); | |
OlderNewer