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
tblong / rpi-network-watchdog.sh
Created May 29, 2019
Checks a pingable source and reboots the host when the failure limit is reached.
View rpi-network-watchdog.sh
#!/bin/bash
#
# Original Source Attribution:
# Location: https://gist.github.com/SandroMachado/87e591fc42f368636b251b566485ae46
# 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
tblong / n4-px-chart-o-matic.py
Created Sep 28, 2016
Migrates PX page history view related chart button hyperlinks to use new N4 ChartWidget view
View n4-px-chart-o-matic.py
#
# 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
tblong / removeDuplicatesInList.py
Last active Aug 26, 2016
Remove duplicates from list of numbers
View removeDuplicatesInList.py
#!/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
tblong / EC2-Stopped-Tagged-Lambda.py
Created Jul 15, 2016 — forked from mlapida/EC2-Stopped-Tagged-Lambda.py
Using a lambda function, stop all instances that are tagged appropriately.
View EC2-Stopped-Tagged-Lambda.py
import boto3
import logging
#setup simple logging for INFO
logger = logging.getLogger()
logger.setLevel(logging.INFO)
#define the connection
ec2 = boto3.resource('ec2')
View keybase.md

Keybase proof

I hereby claim:

  • I am tblong on github.
  • I am tblong (https://keybase.io/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.