Skip to content

Instantly share code, notes, and snippets.

View christianchristensen's full-sized avatar

Chris Christensen christianchristensen

View GitHub Profile
#!/usr/bin/env python
# Parser for ATT Humax BGW320-500 Network Status page
# ATTHumaxBGW320500.py <tablename> <rowname> '' <rowindex=1> <tableindex=1>
# Specity tablename and rowname to return the value by index
# ATTHumaxBGW320500.py <tablename> <colname> <macid or 'LLD'>
# Specify the tablename to return all available values (Zabbix LLD format)
# Data based on Model: BGW320-500, Version: 4.25.4
import json
import json
import sqlite3
import zlib
# ~/Library/Safari/CloudTabs.db
# Ref: https://www.reddit.com/r/mac/comments/89qx5n/iphone_safari_tabs_into_text_list_via_icloud/
db = sqlite3.connect('CloudTabs.db')
tabs = []
#!/usr/bin/env python2.7
# TODO: Python 2 EOL -> 3
# Parser for Motorola SB6183 Signal page
# Motorola_SB6183_RgCRgConnectt.py <tablename> <column>
# Specify the tablename to return all available (Zabbix LLD format) Bonding Channel Values
# Specity tablename and column to return a specific value for the table and channel
# Data based on Model Name: SB6183, Firmware Name: D30CM-OSPREY-1.5.2.5-GA-00-NOSH
# Downstream Bonded Channels: Channel Lock Status Modulation Channel ID Frequency Power SNR Corrected Uncorrectables
# Upstream Bonded Channels: Channel Lock Status US Channel Type Channel ID Symbol Rate Frequency Power
@christianchristensen
christianchristensen / semver_notes.md
Created May 13, 2013 16:04
Semantic Versioning (SemVer) Notes

https://github.com/isaacs/node-semver | isaacs/node-semver · GitHub https://github.com/isaacs/node-semver/blob/master/semver.js | node-semver/semver.js at master · isaacs/node-semver · GitHub https://www.google.com/search?q=semver+bash&aq=f&oq=semver+bash&aqs=chrome.0.57.2035j0&sourceid=chrome&ie=UTF-8 | semver bash - Google Search https://gist.github.com/ericbmerritt/4013729 | A script to generate a valid semver version in any git repo http://stackoverflow.com/questions/10228073/looking-for-a-way-automate-the-bump-version-with-git-flow | bash - Looking for a way automate the "bump version" with git flow - Stack Overflow https://gist.github.com/petervanderdoes/2877083 | gitflow hooks and filters for WordPress theme development https://gist.github.com/petervanderdoes/2878492 | gitflow hooks and filter for gitflow development https://github.com/frankvilhelmsen/meedings/blob/master/semver.sh | meedings/semver.sh at master · frankvilhelmsen/meedings · GitHub http://semver.org/spec/v1.0.0.html | Semantic Versionin

#!/usr/bin/env python
# Parser for Motorola SB6141 Signal page
# Motorola_SB6141_cmSignalData.py <tablename> <column>
# Specify the tablename to return all available (Zabbix LLD format) Bonding Channel Values
# Specity tablename and column to return a specific value for the table and channel
# Data based on Model Name: SB6141, Firmware Name: SB_KOMODO-1.0.6.16-SCM00-NOSH
# Downstream: Frequency, Signal to Noise Ratio, Downstream Modulation, Power Level
# Upstream: Frequency, Ranging Service ID, Symbol Rate, Power Level, Upstream Modulation, Ranging Status
# Signal Stats (Codewords): Total Unerrored Codewords, Total Correctable Codewords, Total Uncorrectable Codewords
javascript:(function(){function FormatJSON(oData,sIndent){if(arguments.length<2){var sIndent="";}var sIndentStyle=" ";var sDataType=RealTypeOf(oData);console.log(sDataType);if(sDataType=="array"){if(oData.length==0){return"[]";}var sHTML="[";}else{var iCount=0;$.each(oData,function(){iCount++;return;});if(iCount==0){return"{}";}var sHTML="{";}var iCount=0;$.each(oData,function(sKey,vValue){if(iCount>0){sHTML+=",";}if(sDataType=="array"){sHTML+=("\n"+sIndent+sIndentStyle);}else{sHTML+=("\n"+sIndent+sIndentStyle+"\""+sKey+"\""+": ");}switch(RealTypeOf(vValue)){case"array":case"object":sHTML+=FormatJSON(vValue,(sIndent+sIndentStyle));break;case"boolean":case"number":sHTML+=vValue.toString();break;case"null":sHTML+="null";break;case"string":sHTML+=("\""+vValue+"\"");break;default:sHTML+=("TYPEOF: "+typeof(vValue));}iCount++;});if(sDataType=="array"){sHTML+=("\n"+sIndent+"]");}else{sHTML+=("\n"+sIndent+"}");}return sHTML;}function SortObject(oData){var oNewData={};var aSortArray=[];$.each(oData,function(sKey){a
@christianchristensen
christianchristensen / .gitignore
Created November 21, 2011 17:43
Git ignore file for committing hudson/jenkins configs to version control.
*.log
jobs/*/workspace
jobs/*/builds
jobs/*/lastStable
jobs/*/lastSuccessful
jobs/*/nextBuildNumber
updates
.owner
@christianchristensen
christianchristensen / .gitignore
Last active June 14, 2020 23:16
Simple PHP Graph data-structure.
/vendor