Skip to content

Instantly share code, notes, and snippets.

Nathan Pearce npearce

Block or report user

Report or block npearce

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
@npearce
npearce / README.md
Last active Apr 23, 2019
Useful git commands
View README.md

Useful git commands

This gist is for collecting git commands I don't use often enough to remember, but probably waste too much time trying to find when I need them.

View OSX_Mojave_FontRendering_Fix.md
@npearce
npearce / Install-Openwhisk.md
Last active Nov 29, 2018
Install Openwhisk on Amazon AMI w/ docker-compose
View Install-Openwhisk.md
@npearce
npearce / install-docker.md
Last active May 21, 2019
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
View install-docker.md
@npearce
npearce / bash-filesystem_permissions.sh
Last active Nov 15, 2018
*nix filesystem permissions
View bash-filesystem_permissions.sh
// using `type -d` and `type -f` to isolate
// Change all directories to 775, and ignore files
find /home/user -type d -exec chmod 775 {} \;
// Change all files to 664, and ignore directories
find /home/user -type f -exec chmod 664 {} \;
@npearce
npearce / node-tgz-permissions.js
Last active Nov 15, 2018
Create gzipped tarballs in nodejs with correct owners & permissions.
View node-tgz-permissions.js
//NOTE: the source permissions need to be set appropriately, also.
// npm i --save targz
const targz = require('targz')
targz.compress({
src: '/tmp/mydirectory',
dest: 'output/filename.tgz',
tar: {
dmode: 0775, // Directories: rwxrwxr-x
@npearce
npearce / iControl_LX_Package_Operations.md
Last active Aug 24, 2018
F5 iControl LX workers: Install and Uninstall RPM's
View iControl_LX_Package_Operations.md

About

The F5 iControl LX Framework enables engineers to create custom Nodejs control-plane actions/workflows for the F5 BIG-IP hardware and software appliances.

Put the RPM on the BIG-IP

Copy the RPM using scp (or some SCP capabe GUI tool).

SCP instructions

@npearce
npearce / BigStats_ApacheKafka_Setup.md
Last active Sep 5, 2018
BigStats Setup for: F5 BIG-IP -> Apache Kafka message bus
View BigStats_ApacheKafka_Setup.md

Create the Apache Kafka Container for BigStats on AWS

Updated: August 21, 2018

NOTE: This setup is used as an exporter destination for BigStats: https://npearce.github.io

Create the Instance

On the AWS Console:

  1. In 'Instances', click 'Luanch Instance'.
  2. Select 'Amazon Linux 2 AMI (HVM), SSD Volume Type'
@npearce
npearce / BigStats_GraphiteDB_Grafana_Setup.md
Last active Feb 8, 2019
BigStats Setup for: F5 BIG-IP -> StatsD -> GraphiteDB -> Graphana Dashboards
View BigStats_GraphiteDB_Grafana_Setup.md

Create the Grafana Dashboard Container for BigStats on AWS

Updated: August 21, 2018

NOTE: This setup is used as an exporter destination for BigStats: https://npearce.github.io

Create the Instance

On the AWS Console:

  1. In 'Instances', click 'Luanch Instance'.
  2. Select 'Amazon Linux 2 AMI (HVM), SSD Volume Type'
You can’t perform that action at this time.