Skip to content

Instantly share code, notes, and snippets.

View jdotpz's full-sized avatar

JP Schneider jdotpz

View GitHub Profile

The Mo-Factor App

In the spirit of Twelve-Factor Apps, this is a list of concrete things that you can do to make your software better. Some of it overlaps with Twelve-Factor Apps, but it's all good.

Uses git/Github

All of our apps will use git and Github for hosting repositories. This gives us a great collaboration and code review tool, an issue tracker, a wiki, and free static web hosting. All MoFactor apps should be owned by the Mozilla organzation

Builder Bot

Things it should do

Watch for

  1. tags in repositories
  2. pull requests against repositories by trusted developers

When we see something

  1. build it
@jdotpz
jdotpz / keybase.md
Created April 14, 2014 04:42
keybase.md

Keybase proof

I hereby claim:

  • I am jdotpz on github.
  • I am jdotp (https://keybase.io/jdotp) on keybase.
  • I have a public key whose fingerprint is 9B79 0F1F 65B0 18F3 E39C 8168 F91F B20C D32A AEE6

To claim this, I am signing this object:

@jdotpz
jdotpz / post-commit
Created June 27, 2014 21:04
A post-commit hook to warn you if it sees AWS keys (AKAI.....)
#!/bin/bash
# CHECK FOR FILES WITH AKAI
if grep -R "AKAI" ./*
then
echo " ";echo " ";echo " ";echo " "
echo "================================"
echo " "
echo "WARNING! WARNING! WARNING! WARNING! WARNING!"
echo " "
#!/bin/bash
#############################
## PROGRAM: invalidate_list.sh
## PURPOSE: Given a url and domain to limit searches to
## this will give you a list of all paths you should invalidate
## USAGE: invalidate_list.sh url domain_to_limit_search_to
## EXAMPLE: ./invalidate_list.sh https://webmaker.org webmaker.org
#############################
@jdotpz
jdotpz / socorro-ES
Created April 21, 2015 17:34
GeneralSSD ES cluster for socorro prod
PREVIOUS WRITE UP
**Master**:
* Three (3) nodes; one active, two on hot-standby.
* Machine type: `t2.medium`
**Interface**:
* Three (3) nodes.
* Machine type: `r3.xlarge`
**Data**:
@jdotpz
jdotpz / gist:b6b87de5468488fc6e3c
Created June 15, 2015 13:56
rsyslog remote shipping
#not set by default, needed to spool queues to disk
$WorkDirectory /tmp
$RepeatedMsgReduction off
# put forward action on dedicated queue so it doesn't block writing logs
# locally to disk if the server can't be contacted
$ActionQueueType LinkedList
$ActionQueueFileName rsyslog-forward-local.q
mozilla-21477:~ mozilla$ cd /u/personal/
.DS_Store cat-in-a-bag/
mozilla-21477:~ mozilla$ cd /u/personal/cat-in-a-bag/
mozilla-21477:cat-in-a-bag mozilla$ git checkout vv
Already on 'vv'
Your branch is up-to-date with 'origin/vv'.
mozilla-21477:cat-in-a-bag mozilla$ git pull
remote: Counting objects: 356, done.
remote: Total 356 (delta 252), reused 252 (delta 252), pack-reused 104
Receiving objects: 100% (356/356), 407.38 KiB | 0 bytes/s, done.
### Keybase proof
I hereby claim:
* I am jdotpz on github.
* I am jdotp (https://keybase.io/jdotp) on keybase.
* I have a public key ASDYhHkWvOs7uJuOPiAMZVO6GnZrTI8kXhrVUnuDFXJHVQo
To claim this, I am signing this object: