Skip to content

Instantly share code, notes, and snippets.

Tyler B. Long tblong

  • Atlanta, GA
Block or report user

Report or block tblong

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
tblong /
Created May 29, 2019
Checks a pingable source and reboots the host when the failure limit is reached.
# Original Source Attribution:
# Location:
# Author: Sandro Machado
# Date of retrieval: 2019-05-28
# Script Summary:
# This script checks a pingable source and when the failure
# limit is reached the host is restarted. No files are written
tblong /
Created Sep 28, 2016
Migrates PX page history view related chart button hyperlinks to use new N4 ChartWidget view
# This script crawls through any PX files found under the directory in which
# this script is executed. Any BoundLabelBinding found in the PX page which is related to a history
# hyperlink pointing to a history view will be modified to use an EnhancedHyperlinkBinding
# from the vykonPro jar file. This is generally meant to be used when there is an AX supervisor converted
# to N4. This script essentially upgrades all chart buttons to use the new N4 history ChartWidget view.
# IMPORTANT: Backup all PX files before executing this script.
# Instructions:
tblong /
Last active Aug 26, 2016
Remove duplicates from list of numbers
#!/usr/bin/env python
# Remove duplicates from list of numbers
# @author tblong
# 2016-08-26: Added dictionary lookup insead of walking
# the entire list each time. The list will still maintain
# its original order.
tblong /
Created Jul 15, 2016 — forked from mlapida/
Using a lambda function, stop all instances that are tagged appropriately.
import boto3
import logging
#setup simple logging for INFO
logger = logging.getLogger()
#define the connection
ec2 = boto3.resource('ec2')

Keybase proof

I hereby claim:

  • I am tblong on github.
  • I am tblong ( on keybase.
  • I have a public key whose fingerprint is 17EE CAF9 8727 B073 EEC9 12E2 1942 4EC2 DB1B E465

To claim this, I am signing this object:

You can’t perform that action at this time.