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
<?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
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
#!/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 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 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 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 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
[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% |
NewerOlder