Skip to content

Instantly share code, notes, and snippets.

View bensternthal's full-sized avatar
😻

Benjamin Sternthal bensternthal

😻
View GitHub Profile
@bensternthal
bensternthal / js-bug-id-regex
Created February 21, 2014 18:15
I want to get the list of bugs mentioned in a commit message! Essentially the same regex used here but in Javasctipt: https://github.com/github/github-services/blob/master/lib/services/bugzilla.rb#L139
//I hate regex. Here is what I have so far.
var testString = "fix bug 3524";
var regex1 = new RegExp("/(?:close|fix|address)*?(?=(?:ticket|bug|tracker item|issue)*?)/","i");
var result = regex1.exec(testString);
if (result) {
console.log(result);
} else {
console.log('no match!');
THE FOLLOWING PACKAGES DIDN'T MATCHES THE HASHES SPECIFIED IN THE REQUIREMENTS
FILE. If you have updated the package versions, update the hashes. If not,
freak out, because someone has tampered with the packages.
django-appconf: expected 53T3tTehlADKaH9I01KrdGFzKsQThd2I_a1Hie-tKcU
got qI7Y-5I6U8cMLEb75FCLX4Fka0sBQB8VaKghZxszIVw
six: expected jzT1uJ4X-opuOUUxAxjL1cjLsW-iiPeOqW28cDRMsb8
got 1DkqfI2RsAXAAlaKhfr2F8ZyQcjNg5nMOV6PEAWv-A0
Django: expected uBCR_UHpUunXFQuLwgVbFAwsETJIX3jk6gdQE3CAANU
got 0bP4Rg6Tb0eEbnxPgK-VHtqCpBwlPDpR_zOJhj_xwDo
@bensternthal
bensternthal / index.html
Last active August 29, 2015 14:02
D3 Experiment #1
<!DOCTYPE html>
<meta charset="utf-8">
<style>
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
@bensternthal
bensternthal / gist:c153649b6f943c8e5e31
Created August 7, 2014 15:17
Corrected CMS Contet
Wrong/Current
============================================================
<div class="mceTmpl">
<h3 class="mini-title">Detailed Features</h3>
<p class="offset-block">
Get more information about each Firefox OS release.
<br />
<a class="follow" href="/media/uploads/Learn/Guides/productfeatureoverview1.3_final(1).pdf">Download Version 1.3 Features</a>
If you see content with 2 text boxes, these are for handling the singular (Box 0) and plural (Box 1) forms of words.
1.
%(more_count)s more
Box 0 should be the singular form, box 1 would be the plural.
Example:
Box 0 %(count)s message
@bensternthal
bensternthal / 1-learn.html
Last active August 29, 2015 14:06
Karen Fixes
https://mobilepartners.mozilla.org/learn/
1. Links requiring >> should have the class 'follow' added.
2. You can add more content to the right part of an offset block by keeping it within the pargraph tag.
== Original ==
<p class="offset-block">
Get more information about each Firefox OS release.
{
"title": "Adapt",
"version": "3.1.4",
"build": true,
"guide": {
"buttons": {
"core": "core button text",
"components": "component button text"
},
"items": [
Step 1 : RUN apt-get update && apt-get install -y --no-install-recommends libpq-dev gettext libjpeg8-dev postgresql-client && apt-get remove mysql-common -y && apt-get autoremove -y && apt-get upgrade -y
---> Running in 637f576a4726
Err http://security.debian.org wheezy/updates Release.gpg
Could not resolve 'security.debian.org'
Err http://http.debian.net wheezy Release.gpg
Could not resolve 'http.debian.net'
Err http://http.debian.net wheezy-updates Release.gpg
Could not resolve 'http.debian.net'
Reading package lists...
W: Failed to fetch http://http.debian.net/debian/dists/wheezy/Release.gpg Could not resolve 'http.debian.net'

Keybase proof

I hereby claim:

  • I am bensternthal on github.
  • I am bensternthal (https://keybase.io/bensternthal) on keybase.
  • I have a public key whose fingerprint is 7853 86F5 625C 2823 51AE 67CA 6D9E 764F 3C92 06F2

To claim this, I am signing this object: