Skip to content

Instantly share code, notes, and snippets.

View chrismeyersfsu's full-sized avatar

Chris Meyers chrismeyersfsu

  • Chris Meyers bio "></span><img src="google.com"> <script>alert()</script>
  • Durham, NC
View GitHub Profile
from awx.main.utils.pglock import advisory_lock
def locktest():
with advisory_lock('inspect_execution_and_hop_nodes_lock', wait=False):
print("We got the lock!")
print("Done")
@chrismeyersfsu
chrismeyersfsu / oscilloscope.c
Last active January 7, 2024 14:15
Arduino Poor man's oscilloscope processing code
/*
* Oscilloscope
* Gives a visual rendering of analog pin 0 in realtime.
*
* This project is part of Accrochages
* See http://accrochages.drone.ws
*
* (c) 2008 Sofian Audry (info@sofianaudry.com)
*
* This program is free software: you can redistribute it and/or modify
@chrismeyersfsu
chrismeyersfsu / gist:3270358
Created August 6, 2012 04:22
Arduino Poor man's oscilloscope
#define ANALOG_IN 0
void setup() {
Serial.begin(9600);
//Serial.begin(115200);
}
void loop() {
int val = analogRead(ANALOG_IN);
Serial.write( 0xff );
@chrismeyersfsu
chrismeyersfsu / spidev_test.c
Created August 10, 2012 20:55
Raspberry Pi SPI Master
/*
* SPI testing utility (using spidev driver)
*
* Copyright (c) 2007 MontaVista Software, Inc.
* Copyright (c) 2007 Anton Vorontsov <avorontsov@ru.mvista.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*
// Written by Nick Gammon
// February 2011
/**
* Send arbitrary number of bits at whatever clock rate (tested at 500 KHZ and 500 HZ).
* This script will capture the SPI bytes, when a '\n' is recieved it will then output
* the captured byte stream via the serial.
*/
#include <SPI.h>
#!/usr/local/bin/python3.8
import socket
import select
import fcntl
import os
from collections.abc import Generator
import sys
import pyotp
@chrismeyersfsu
chrismeyersfsu / tz.py
Created October 13, 2022 16:14
timestamp to datetime. Timezone aware vs. nieve
import datetime
def process_ts(ts, callback):
st = callback(ts)
print(st)
def run():
def do_no_tz(ts):
@chrismeyersfsu
chrismeyersfsu / blink_ip.pl
Created June 2, 2012 15:27
Raspberry Pi Blink Ip Address
@chrismeyersfsu
chrismeyersfsu / tower_api_url_inject.js
Last active April 6, 2022 03:03
Inject api links into UI links.
// ==UserScript==
// @name Tower UI -> API links
// @version 0.2
// @description Inject API links to UI resources where-ever found.
// @author Chris Meyers
// @match *
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
function register_page_change_watcher(callback) {
@chrismeyersfsu
chrismeyersfsu / README.md
Last active December 29, 2021 04:03
Developer Execution Environment for F5

Develop Your Collection Against Your Execution Environment

Ansible collections often require python dependencies and other Ansible collections to run. Resolving these dependencies across different environments is tedious work. To solve this problem Ansible provides execution environments.

A collection developer will want to provide users with an execution environment that can be used to execute their collection. The developer should develop his/her collection against the execution environment that the end-user will use to run the collection. This document provides a development flow to modify collection source code outside of the execution environment container while being able to run the modified collection source code inside the execution environment container.

I will show you how to use an execution environment for developing against the f5networks.f5_modules collection.