Skip to content

Instantly share code, notes, and snippets.

View fool's full-sized avatar
💭

chris (fool) mccraw fool

💭
View GitHub Profile
@fool
fool / gist:3086884
Created July 10, 2012 23:24
newrelic install
[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'
@fool
fool / php_multi_report.php
Last active August 29, 2015 14:05
php script to report a "dummy application" to a list of NR accounts
<?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 / wildcard-ssl-cert-for-testing-nginx-conf.md
Created September 27, 2016 18:33 — forked from sr75/wildcard-ssl-cert-for-testing-nginx-conf.md
create a self signed wildcard ssl cert for testing

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 &gt; app_name-wildcard.pem
@fool
fool / intercom.rake
Created January 25, 2018 23:50
Rake tasks to sync user and conversation tags from Intercom to a database
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
@fool
fool / index.js
Created January 30, 2018 22:45 — forked from drake-yesware/index.js
Lambda function to Filter Netlify Build Status Slack Messages to different channels based on branch
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
};

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: