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
#BEGIN CONFIG INFO | |
#DESCR: 4GB RAM, InnoDB only, ACID, few connections, heavy queries | |
#TYPE: SYSTEM | |
#END CONFIG INFO | |
# | |
# This is a MySQL example config file for systems with 4GB of memory | |
# running mostly MySQL using InnoDB only tables and performing complex | |
# queries with few connections. | |
# |
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 i in /home/jwh/Downloads/HTPC/TV/* | |
do | |
# Look for the TV folder names inside the torrent name | |
SHOWDIR=`basename "$i" | tr '[A-Z]' '[a-z]' | tr -cd [:alpha:]` | |
SHOW=`echo ${TR_TORRENT_NAME} | tr '[A-Z]' '[a-z]' | tr -cd [:alpha:]` | |
if [[ ${SHOW} =~ ${SHOWDIR} ]] | |
then |
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 | |
# Symlink as ~/bin/cache for happy fun time excitement. | |
DO_REPAIR=0 | |
DEFAULT="2" | |
LEVEL=$DEFAULT | |
LEVELS[1]="cache/smarty/templates_c" | |
LEVELS[2]="cache/modules" | |
LEVELS[3]="cache/jsLanguage cache/themes" |
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
# brew install exim | |
# mkdir /usr/local/var/mail | |
# echo "*: jhoffmann" > /usr/local/etc/aliases | |
# chmod 644 /usr/local/etc/exim.conf | |
# chown root /usr/local/etc/exim.conf | |
# echo "Subject: DO NOT DELETE" | exim [email protected] | |
# | |
# mutt -F ~/Mail/common.rc -f /usr/local/var/mail/jhoffmann | |
domainlist local_domains = @ |
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
function mydb() { /usr/bin/mysql --defaults-group-suffix=$@ ;} |
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 -eu | |
if [ -d cache -a -O cache ]; then | |
if [ `hostname -s` == 'si-admin' ]; then | |
# send api call to newrelic | |
fi | |
else | |
echo "Either wrong path (not sugar root) or wrong user (run as the owner of the cache folder)" | |
exit | |
fi |
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
<?php | |
/** | |
* This allows a user to utilize ElasticSearch (FTS) query syntax when filtering records | |
* for a module's list view | |
* | |
* For the supported syntax, see: | |
* http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html#_simple_query_string_syntax | |
* | |
* @link PSD-1310 | |
* @author jwh |
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
<?php | |
if (!defined('sugarEntry') || !sugarEntry) { | |
die('Not A Valid Entry Point'); | |
} | |
require_once 'include/SugarQueue/SugarCronJobs.php'; | |
require_once 'custom/include/SugarQueue/SugarJobFilteredQueue.php'; | |
// Sample configuration: | |
// |