Skip to content

Instantly share code, notes, and snippets.

@nickpack
nickpack / Recruiter Domains.markdown
Created February 27, 2012 13:59 — forked from soffes/Recruiter Domains.markdown
Blacklist of Recruiter Domains

Recruiter Domains

I'm starting to compile a list of domains that are purely crap recruiter emails. At some point, I'll make this a filter to just delete them all together.

Complete Crap

workbridgeassociates.com
vtrit.com
jsgeeks.com

questgroups.com

@nickpack
nickpack / gist:3378995
Created August 17, 2012 14:12
Mountain Lion Pear
sudo cp /private/etc/php.ini.default /private/etc/php.ini
sudo php /usr/lib/php/install-pear-nozlib.phar
pear config-set php_ini /private/etc/php.ini
pecl config-set php_ini /private/etc/php.ini
@nickpack
nickpack / gist:3760411
Created September 21, 2012 08:38
Django REST Framework DateTimeField NSDateFormatter
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss'Z'"];
/*
Localizable.strings
RBLChecker
Created by Nick Pack on 12/05/2013.
Copyright (c) 2013 Nick Pack. All rights reserved.
*/
/* No comment provided by engineer. */
"An error was encountered when checking" = "チェックするときにエラーが発生しました";
@nickpack
nickpack / gist:5627921
Created May 22, 2013 14:24
Loop through `brew list` output and install packages individually
#!/bin/bash
while read line
do
brew install "$line"
done < /Volumes/External/work-brew
@nickpack
nickpack / features-server.make
Created August 20, 2013 16:18
Drupal Features Server Drush Makefile
core = 6.x
api = 2
projects[drupal][type] = core
projects[] = cck
projects[] = context
projects[] = features
projects[] = filefield
projects[] = views
projects[] = fserver
@nickpack
nickpack / service_manager_opencms.sh
Created September 16, 2013 22:34
Some opencms service management nonsense I had to write for an interview 'aptitude' test.
#!/bin/bash
declare -a OPENCMS_SERVICES=('mysqld' 'tomcat6' 'nginx');
check_health() {
for service in ${OPENCMS_SERVICES[@]}
do
if [ -z "$(ps ax | grep -v grep | grep $service)" ]
then
echo "$service is NOT RUNNING..."
make_service_run $service
@nickpack
nickpack / gist:365422092b3edd151881
Created June 2, 2015 16:11
Zend Form - UK Counties select
$county = new Element\Select('county');
$county->setLabel('County')
->setValueOptions(
array(
'Aberdeenshire' => 'Aberdeenshire',
'Angus/Forfarshire' => 'Angus/Forfarshire',
'Argyllshire' => 'Argyllshire',
'Ayrshire' => 'Ayrshire',
'Banffshire' => 'Banffshire',
'Bedfordshire' => 'Bedfordshire',