Skip to content

Instantly share code, notes, and snippets.

View jbickar's full-sized avatar

John Bickar jbickar

  • Stanford University
View GitHub Profile
@jasonrudolph
jasonrudolph / git-branches-by-commit-date.sh
Created February 12, 2012 20:40
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
@mistermarco
mistermarco / sites.test.php
Created July 25, 2012 08:17
Sites/People test
<pre>
<?php
$site_name = exec('whoami');
echo "Starting Testing...\n";
echo 'Running as ' . $site_name . "\n";
echo 'Server that responded: ' . exec('uname -a') . "\n\n";
@sobi3ch
sobi3ch / behat.yml
Created April 16, 2014 12:39
How integreate 'selectors' with Behat (regon_map is requreid to work with selectors)
default:
paths:
features: 'features'
extensions:
Behat\MinkExtension\Extension:
goutte: ~
selenium2: ~
base_url: https://production.server/
Drupal\DrupalExtension\Extension:
blackbox: ~
@sherakama
sherakama / .bashrc
Last active November 18, 2015 19:21
.bashrc file
export PATH=${PATH}:/usr/local/sbin
export PATH=/usr/local/bin:${PATH}
export PATH=${PATH}:~/bin
export PS1="\u:\w$ "
# alias composer="php /usr/bin/composer.phar"
alias ppp="php app/console"
alias chrome='open -n -a "Google Chrome.app" --args --auth-server-whitelist="*.stanford.edu" --auth-negotiate-delegate-whitelist="*.stanford.edu"'
@rfmeier
rfmeier / phprc
Last active March 12, 2019 02:50
Enable opcache on DreamHost for php 5.5 and greater
[opcache]
; the path to the .so file
zend_extension=opcache.so
; Enabled. Set to 0 to disable
opcache.enable=1
; Max memory consumption. Default 32 megs
opcache.memory_consumption=32
@aramboyajyan
aramboyajyan / .htaccess
Last active April 30, 2019 20:24
.htaccess block wordpress directories (for use in Drupal websites)
# Non-existing URLs that are usually visited by bots. We will issue a server
# redirect to 404.html to avoid any overhead caused by bots trying to break into
# the site.
#
# WordPress folders.
RedirectMatch 301 /wp-admin /404.html
RedirectMatch 301 /wp-content /404.html
RedirectMatch 301 /wp-includes /404.html
# WordPress files.
RedirectMatch 301 /wp-cron.php /404.html
@jbickar
jbickar / pull-request-template.md
Last active June 2, 2017 14:47
Pull Request Template

READY FOR REVIEW/NOT READY

  • (Edit the above to reflect status)

Summary

  • TL;DR - what's this PR for?

Needed By (Date)

  • When does this need to be merged by?

Criticality