This file contains 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
cd $env:temp | Invoke-Expression; Invoke-RestMethod -Method Get -URI https://raw.githubusercontent.com/TheJumpCloud/support/master/scripts/windows/InstallWindowsAgent.ps1 -OutFile InstallWindowsAgent.ps1 | Invoke-Expression; ./InstallWindowsAgent.ps1 -JumpCloudConnectKey "undefined" |
This file contains 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
data = | |
{ | |
"ValueText": [ | |
{ | |
"value": "Liam's Test Estimate", | |
"typeCode": "Estimate Name" | |
}, | |
{ | |
"value": "GJGJGJGJ", | |
"typeCode": "AccessKey" |
This file contains 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
{ | |
"template": { | |
"A": { | |
"1": "Green", | |
"2": "Red", | |
"3": "Orange" | |
}, | |
"B": { | |
"1": "Blue", | |
"2": "Taupe", |
This file contains 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
# This blurb will find entries in a list of dictionaries that match a pattern | |
# This requires Python 3.6 or greater since I'm using f-strings to print the variable (WAY easier than .format()) | |
# Import json library to work with the data_blob string (which is a JSON object) | |
import json | |
data_blob = '''{ | |
"id": "0001", | |
"type": "donut", | |
"name": "Cake", |
This file contains 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
# Import the Python JSON library so we can work with JSON objects | |
import json | |
# Use a multi-line variable (designated with ''' at the start and end) to load the JSON object into a variable called vlan_blob | |
# You could also directly reference the file using the 'with' command | |
data_blob = '''{ | |
"TABLE_vlanbrief":{ | |
"ROW_vlanbrief":[ | |
{ | |
"vlanshowbr-vlanid":"1", |
This file contains 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
Term | Switch | Essentials | Advantage | Premium | |
---|---|---|---|---|---|
36 | N9K-C9348GC-FXP | $5,240.88 | $7,886.16 | $16,079.04 | |
60 | N9K-C9348GC-FXP | $6,600.00 | $9,900.00 | $22,011.00 | |
36 | N9K-C93180YC-FX | $15,771.96 | $18,729.00 | $38,187.00 | |
60 | N9K-C93180YC-FX | $19,801.20 | $23,761.20 | $52,828.20 | |
36 | N9K-C9508 | $30,823.92 | $73,977.84 | - | |
60 | N9K-C9508 | $41,752.80 | $100,206.00 | - |
NewerOlder