This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################### | |
# | |
# Analyze ServiceNow Update Sets | |
# | |
# Usage: | |
# | |
# Get Information on Parent Update Set | |
# | |
# Get-SNUpdateSet -File /path/to/update_set.xml | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################### | |
# > class Person(DataCache): | |
# ... def __init__(self,file): | |
# ... # Auto-cache JSON every 10 seconds | |
# ... super().__init__(file,["first_name","last_name","age"],10) | |
# | |
# > person = Person('/home/user/person.json') | |
# > person.Insert({"first_name":'Andy'}) | |
# > person.Insert({"first_name":'Jim'}) | |
# > person.Update(2,{'last_name':'Carlson'}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################# | |
# | |
# USCBGeocoder - perform Address-to-LatLng geocoding using | |
# US Census Bureau API | |
# | |
# Usage: | |
# | |
# gc = USCBGeocoder() | |
# gc.SetBenchmark(id=2020) | |
# gc.GetCoords('401 S 2nd St',zip='62701') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################ | |
# | |
# hpink.sh | |
# | |
# Display available capacity and model of ink cartridge | |
# | |
# Tested with HP OfficeJet 3830 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################## | |
# | |
# iptcli.rc - Bash resoruce file to facilitate iptables auto-complete interface | |
# | |
# Usage: | |
# | |
# 1. Create iptcli alias: | |
# | |
# alias iptcli="bash --rcfile /path/to/.iptcli.rc" | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################## | |
# linksys_jnap.py | |
# | |
# Call JNAP API endpoints on Linksys Routers | |
# | |
# Tested with WRT3200ACM | |
# | |
# Available Actions: | |
# | |
# ## Name ## ## Action URL ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
###################################################### | |
# | |
# Terminal-based web radio player (requires ffplay) | |
# | |
# Usage: | |
# | |
# 1) Create M3U playlist file using the following syntax: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################# | |
# | |
# Resample image content in PDF | |
# | |
# Usage: | |
# | |
# resample_pdf.sh -i <input file> -r <resample_resolution> -o <output_file> | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Key Code Tester</title> | |
</head> | |
<body> | |
This is an interactive way to view JavaScript keyup and keydown keyCodes including the shift, alt, and ctrl modifier codes.<br/><br/> | |
Key Codes:<br/> | |
<div style="margin-left:50px;height:200px;width:200px;overflow:auto;" id="codeview"></div> | |
<script type="text/javascript"> | |
document.body.onload = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
KBUtil - Create Keyboard shortcut driven events | |
Usage: | |
var kb = new KBUtil(); | |
kb.addKey(function() { | |
console.log("You pressed a"); | |
},KBUtil.KEY_A); |