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
| import boto3 | |
| from botocore.vendored import requests | |
| from botocore.exceptions import ClientError | |
| import json | |
| import random | |
| import string | |
| import os | |
| import logging | |
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
| import requests | |
| import json | |
| import pandas as pd | |
| import os | |
| import urllib | |
| API_KEY = os.environ.get('MERAKI_API_KEY') | |
| NETWORK_ID = os.environ.get('MERAKI_NETWORK_ID') | |
| PATH_TO_SAVE = '/Users/Yuji.Terada/Desktop' |
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
| import os | |
| import meraki | |
| MERAKI_API_KEY = os.getenv('MERAKI_API_KEY') | |
| def has_adv_sec(network_id): | |
| try: | |
| response = client.malware_settings.getNetworkSecurityMalwareSettings(network['id']) | |
| return True |
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
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "function_app_name": { | |
| "type": "string", | |
| "defaultValue": "", | |
| "minLength": 2, | |
| "maxLength": 60, | |
| "metadata": { |
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 | |
| echo "$(ls -ltr /dev | grep usb)" |
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
| # For more options and information see | |
| # http://rpf.io/configtxt | |
| # Some settings may impact device functionality. See link above for details | |
| # uncomment if you get no picture on HDMI for a default "safe" mode | |
| #hdmi_safe=1 | |
| # uncomment this if your display has a black border of unused pixels visible | |
| # and your display can output without overscan | |
| #disable_overscan=1 |
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
| import json | |
| from dateutil.parser import parse as dateutil_parser | |
| from datadog_api_client.v2 import ApiClient, ApiException, Configuration | |
| from datadog_api_client.v2.api import logs_api | |
| from datadog_api_client.v2.models import * | |
| from pprint import pprint | |
| # See configuration.py for a list of all supported configuration parameters. | |
| configuration = Configuration() | |
| # Enter a context with an instance of the API client |
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
| import os | |
| import meraki | |
| MERAKI_API_KEY = os.environ.get('MERAKI_API_KEY', None) | |
| MERAKI_ORG_ID = 734417 | |
| NETWORK_TO_EXCLUDE = ['L_669347494617946220', 'L_669347494617948186', 'L_726205439913494157', 'L_726205439913494190', 'N_726205439913505421'] | |
| if MERAKI_API_KEY: |
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
| import os | |
| import meraki | |
| MERAKI_API_KEY = os.environ.get('MERAKI_API_KEY', None) | |
| MERAKI_ORG_ID = os.environ.get('MERAKI_ORGANIZATION_ID', None) | |
| total = 0 |
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
| import os | |
| import datetime | |
| import meraki | |
| TIMEZONE_OFFSETS = { | |
| 'Australia/LHI': 10.5, | |
| 'Australia/Lord Howe': 10, | |
| 'Australia/ACT': 10, | |
| 'Australia/Canberra': 10, |
OlderNewer