Skip to content

Instantly share code, notes, and snippets.

View ikennaokpala's full-sized avatar

Ikenna N. Okpala ikennaokpala

View GitHub Profile
if Rails.env.production?
Braintree::Configuration.environment = Rails.env.staging? ? :sandbox : :production
Braintree::Configuration.merchant_id = ENV["braintree_merchant_id"]
Braintree::Configuration.public_key = ENV["braintree_public_key"]
Braintree::Configuration.private_key = ENV["braintree_private_key"]
Braintree::Configuration.environment = :sandbox
Braintree::Configuration.merchant_id = "<super secret>"
Braintree::Configuration.public_key = "<super secret>"
Braintree::Configuration.private_key = "<super secret>"
ikennaokpala /
Last active September 28, 2018 09:31 — forked from stefansundin/
Replay production Heroku requests to your local dev environment.
#!/bin/bash -e
heroku logs -t -s heroku -d router -a $app | {
while IFS= read -r line
path=$(echo $line | grep -oE 'path="([^"]+)"' | cut -d'"' -f2)
code=$(curl -s -o /dev/null -w "%{http_code}" "$dev$path")
// Go to and paste the code below
job = Jenkins.getInstance().getItemByFullName("smartanswers/master", Job.class)
job.nextBuildNumber = 3694
cp -r "test/artefacts/marriage-abroad/$COUNTRY" "$COUNTRY_PARTIALS"
/* A Spreadsheet-powered Twitterbot Engine, version 0.4, May 2015
by Zach Whalen (@zachwhalen,, etc.)
This code powers the backend for a front-end in a google spreadsheet. If somehow you've arrived at this code without the spreadsheet, start by making a copy of that sheet by visiting this link:
All of the setup instructions are available in the sheet or (with pictures!) in this blog post:
ikennaokpala /
Created October 29, 2016 11:56 — forked from dideler/
Bootstrapping - a list of useful resources to get up and running quickly


UPDATE: This list is no longer maintained. I've moved it to its own repo so you can send suggestions as Pull Requests.

For feedback or suggestions, please send a tweet (@dideler). Gist comments don't notify me. Pull requests aren't possible with gists (yet), so I don't recommend forking because then I can't easily get the change.

Starring this gist will give me an idea of how many people consider this list useful.

ikennaokpala /
Created October 29, 2016 11:51 — forked from dypsilon/
A badass list of frontend development resources I collected over time.
ikennaokpala / sitemap.xsl
Created October 16, 2016 13:51
This is a sitemap stylesheet document
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:html="" xmlns:sitemap="" xmlns:xsl="">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html xmlns="">
<title>XML Sitemap</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {