Skip to content

Instantly share code, notes, and snippets.

Nathan Pearce npearce

  • F5
  • Santa Rosa, CA
View GitHub Profile
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 Mar 18, 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'
@npearce
npearce / Better_Error.js
Last active Jul 31, 2018
F5 iControl LX - How to access additional error response data (lines 25 & 26)
View Better_Error.js
/**
* Apply the new, or modified, service definition to the BIG-IP
* @param {Object} service_def retireved from GitHub repo
*
* @returns {Object} AS3's declaration processing results
*/
MyWorker.prototype.applyServiceDefinition = function (service_def) {
return new Promise((resolve, reject) => {
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.