Skip to content

Instantly share code, notes, and snippets.

async function newRelicAppId({ application, cell }) {
if (!application || !cell) return { error: true, reason: 'expected query string values not set: application, cell' }
const cleanCell = cellDeHyphener(cell)[0].toLowerCase();
const options = {
url: 'https://api.newrelic.com/v2/applications.json',
method: 'GET',
headers: {
'X-Api-Key': vendorAccess.newRelic.adminKey,
'Content-Type': 'application/json'
},
/* config.h. Generated by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Define to 1 if the `closedir' function returns void instead of `int'. */
/* #undef CLOSEDIR_VOID */
/* dlmutex */
/* #undef DLMUTEX */
/* Define to 1 if you have the <argz.h> header file. */
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'mcrypt' ]
2 info using npm@3.3.9
3 info using node@v0.12.7
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData mcrypt@0.1.5
8 silly fetchNamedPackageData mcrypt
9 silly mapToRegistry name mcrypt
@jsolis
jsolis / git-commands.txt
Last active December 21, 2015 22:49
A collection of some useful advanced git commands
# Add a little color to your git cli
git config --global color.ui auto
# Git will automatically manage line endings for you if you set autocrlf option
# on a mac / linux machine you'll want do this
git config --global core.autocrlf input
# one a windows machine you'll want to do this
git config --global core.autocrlf true
# Instead of just showing highlighting the entire line that changed