This file contains 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(); | |
This file contains 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 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 | |
# Takes one parameter: a remote git repository URL. | |
# | |
# This is the stuff this script does: | |
# | |
# 1. Clones the repository | |
# 2. Fetches all remote branches | |
# 3. Compresses the folder | |
# 4. Deletes the cloned folder. |
This file contains 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 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
<?php | |
require_once (dirname(__FILE__).'/update.class.php'); | |
/** | |
* | |
* @param $data A JSON array of data to update from. | |
* | |
* @package modx | |
* @subpackage processors.resource | |
*/ | |
class modResourceUpdateNoOverrideProcessor extends modResourceUpdateProcessor { |
This file contains 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 | |
if [ -r ./.deploy ]; then | |
echo "Reading config" >&2 | |
. ./.deploy | |
fi | |
production=false | |
while getopts h:b:d:p opt; do | |
case $opt in |
This file contains 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 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 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 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 |
NewerOlder