Skip to content

Instantly share code, notes, and snippets.

@dkinzer
dkinzer / commands
Created April 18, 2012 16:30
Building Mutt that works with Gmail on Centos.
wget ftp://ftp.mutt.org/mutt/devel/mutt-1.5.21.tar.gz
tar -xzvf mutt-1.5.21.tar.gz
cd mutt-1.5.21
yum install ncurses-devel tokyocabinet-devel openssl-devel cyrus-sasl-devel
./configure --enable-imap --enable-smtp --enable-hcache --with-ssl --with-sasl | grep error
make
make install
@dkinzer
dkinzer / gist:2423919
Created April 19, 2012 20:23
CTAGS directive for a Drupal Project
ctags --langmap=php:.engine.inc.module.theme.install.php --php-kinds=cdfi --languages=php --recurse
@dkinzer
dkinzer / gist:2559106
Created April 30, 2012 15:09
Running a drush sql sync from Shell script via Jenkins requires silent mode
drush --quiet --yes sql-sync @live @website
@dkinzer
dkinzer / gist:2568207
Created May 1, 2012 14:17
Switching to a user that does not have a default shell
#in this case the user name is jenkins
sudo su - -s /bin/bash jenkins
@dkinzer
dkinzer / gist:2622890
Created May 6, 2012 15:20
GitHub's POST IP address
# GitHub's IP address
'207.97.227.253', 50.57.128.197, 108.171.174.178
@dkinzer
dkinzer / httpd_process_count.sh
Created August 31, 2012 21:56
Track the number of httpd processes and get the maximum number that ran that day via email.
#!/bin/bash
max_process=0;
running_avg=1;
time_to_send_email=$(date --date="7pm today" +%s);
mail_to="webmaster@jenkinslaw.org";
max_process_time=$(date);
while :
@dkinzer
dkinzer / headlessSelenium.sh
Created November 1, 2012 19:17
Running Selenium in HeadLess Env on CentOS5.4
bash -ex /etc/usr/bin/headlessSelenium.sh $WORKSPACE http://website.dev.jenkinslaw.org $WORKSPACE/all/modules/jenkins/Tests/JenkinsTestSuite
@dkinzer
dkinzer / dark_solorized.reg
Created November 6, 2012 06:56
Putty Dark Solarized Color Scheme
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\dev.jenkinslaw.org]
"Colour0"="131,148,150"
"Colour1"="147,161,161"
"Colour2"="0,43,54"
"Colour3"="7,54,66"
"Colour4"="0,43,54"
"Colour5"="238,232,213"
"Colour6"="7,54,66"
@dkinzer
dkinzer / gist:4125524
Last active October 13, 2015 02:28
Quickly delete all git branches that are fully deployed and follow a naming convention.
# Delete all deployed branches that are fully merged.
git branch -d --merged
# The above doesn't actually always work for me. So the next option is
git branch -d $(git branch --merged | cut -d \* -f 1)
@dkinzer
dkinzer / testAssertEvalArguments.js
Created December 2, 2012 16:46
Test passing arguments to Caper#assertEval()
var url = 'http://casperjs.org';
var casper = require('casper').create();
var t = casper.test;
var Test = {
oneArgument : {
number : {
'five' : 5,
'four' : 4
}