Skip to content

Instantly share code, notes, and snippets.

chris (fool) mccraw fool

Block or report user

Report or block fool

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am fool on github.
  • I am chrismccraw (https://keybase.io/chrismccraw) on keybase.
  • I have a public key ASA5tGb3-9SVNbm8EOS6csNgg9moz-BGfK38x-oK5Ub1Ygo

To claim this, I am signing this object:

@fool
fool / index.js
Created Jan 30, 2018 — forked from drake-yesware/index.js
Lambda function to Filter Netlify Build Status Slack Messages to different channels based on branch
View index.js
var https = require('https');
exports.handler = (event, context, callback) => {
event = event.body || event;
var endpoints = {
master: process.env.MASTER_ENDPOINT,
develop: process.env.DEVELOP_ENDPOINT
};
@fool
fool / intercom.rake
Created Jan 25, 2018
Rake tasks to sync user and conversation tags from Intercom to a database
View intercom.rake
require 'intercom'
namespace :sync do
desc "Migrate tags table with full list of intercom tags"
task :tag_list => :environment do
intercom = IntercomHelper.api
intercom.tags.all.each do |tag|
if Tag.where(tag_id: tag.id).count == 0
View wildcard-ssl-cert-for-testing-nginx-conf.md

just change out app_name for your purposes

openssl genrsa 2048 > app_name-wildcard.key

openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert

# Common Name (eg, your name or your server's hostname) []:*.app_name.com

cat app_name-wildcard.cert app_name-wildcard.key > app_name-wildcard.pem
@fool
fool / php_multi_report.php
Last active Aug 29, 2015
php script to report a "dummy application" to a list of NR accounts
View php_multi_report.php
<?php
# this script is intended to create an application listing within new relic for a group of accounts.
# add license keys here, limit of about 40 to work reliably.
$account_list = array(
"license key 1",
"license key 2",
);
@fool
fool / gist:3086884
Created Jul 10, 2012
newrelic install
View gist:3086884
[root@2e66dd59-3c0f-4d3b-b7a3-d6e5d0f5c202 ~/phpredis]# VERSION=2.9.5.78
[root@2e66dd59-3c0f-4d3b-b7a3-d6e5d0f5c202 ~/phpredis]# VERSION_TYPE=release # release or special
[root@2e66dd59-3c0f-4d3b-b7a3-d6e5d0f5c202 ~/phpredis]#
[root@2e66dd59-3c0f-4d3b-b7a3-d6e5d0f5c202 ~/phpredis]#
[root@2e66dd59-3c0f-4d3b-b7a3-d6e5d0f5c202 ~/phpredis]# # download / install new relic
[root@2e66dd59-3c0f-4d3b-b7a3-d6e5d0f5c202 ~/phpredis]# wget "http://download.newrelic.com/php_agent/$VERSION_TYPE/newrelic-php5-$VERSION-solaris.tar.gz"
--2012-07-10 21:41:37-- http://download.newrelic.com/php_agent/release/newrelic-php5-2.9.5.78-solaris.tar.gz
idn_decode failed (9): `System iconv failed'
Resolving download.newrelic.com... 204.93.223.144
idn_decode failed (9): `System iconv failed'
You can’t perform that action at this time.