Skip to content

Instantly share code, notes, and snippets.

View btgoodwin's full-sized avatar

Thomas Goodwin btgoodwin

View GitHub Profile
@btgoodwin
btgoodwin / debug-python-device.txt
Last active August 29, 2015 14:18
Debug a Python REDHAWK Device on a running domain
In this case, I'm suggesting using `winpdb` because it should be available to you in the CentOS 6.x EPEL repos (which gets around some issues of what software can be used, where).
1) Find the `entrypoint` tag entry in your SPD.XML file, duplicate it
2) Comment the original `entrypoint` line
3) Edit the new entry to use a shell script instead, e.g.: `<entrypoint>python/debug.sh</entrypoint>`
4) Create `python/debug.sh`:
@btgoodwin
btgoodwin / fei-factories.js
Last active January 26, 2016 13:22
Start of some generic factory extensions on top of those in client/redhawk-services.js
/*
* This file is protected by Copyright. Please refer to the COPYRIGHT file
* distributed with this source distribution.
*
* This file is part of fei-factories.
*
* REDHAWK redhawk-web-app is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
@btgoodwin
btgoodwin / FrontEndController.patch
Last active August 29, 2015 14:13
Patch file for supervisord.conf to mirror what happens with the LiveDVD.
--- a/python/FrontEndController.py
+++ b/python/FrontEndController.py
@@ -37,10 +37,10 @@ class FrontEndController_i(FrontEndController_base):
example of FEI Allocations and connections. It was developed with REDHAWK 1.10.0.
"""
- targetComponent=None
+ targetComponents=[]
targetDevice=None
domain = None
@btgoodwin
btgoodwin / fcpxml_parse
Last active December 29, 2024 17:24
Final Cut Pro X FCPXML Parser
#!/usr/bin/python
'''
Author: Thomas Goodwin
Company: Geon Technologies, LLC, 2014
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 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.