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
| def print_keys(dictionary, parent_key): | |
| if len(dictionary.keys()) > 0: | |
| for key in dictionary.keys(): | |
| if isinstance(dictionary[key], dict): | |
| print_keys(dictionary[key], parent_key + ":" + key) | |
| elif isinstance(dictionary[key], list): | |
| if isinstance(dictionary[key][0], dict): | |
| print_keys(dictionary[key][0], parent_key + ":" + key + "[x]") | |
| else: | |
| print(parent_key + ":" + 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 json | |
| import requests | |
| url = "https://ioc-fang.github.io/defanging-dataset/defang.json" | |
| r = requests.get(url) | |
| defangings = json.loads(r.text) |
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
| illegalFawn | |
| Honeypylog | |
| phishingalert | |
| --- | |
| JAMESWT_MHT - low | |
| VK_Intel - low | |
| c0d3inj3cT - low | |
| ScumBots |
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
| var json = { | |
| 'events': [{ | |
| 'start_date': { | |
| 'year': '2012' | |
| }, | |
| 'text': { | |
| 'headline': '2012 - A Great Year', | |
| 'text': "2012 was a great year" | |
| }, | |
| }, { |
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
| sudo apt-get update | |
| sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql-contrib | |
| sudo -u postgres psql | |
| <<< | |
| CREATE DATABASE myproject; | |
| CREATE USER myprojectuser WITH PASSWORD 'password'; | |
| ALTER ROLE myprojectuser SET client_encoding TO 'utf8'; |
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 tempfile | |
| import boto3 | |
| s3 = boto3.client('s3') | |
| bucket_name = 'my-bucket' | |
| file_key = 'myfile.txt' | |
| temp_file = tempfile.TemporaryFile() |
This file has been truncated, but you can view the full 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
| [ | |
| { | |
| "fields" : { | |
| "directors" : [ | |
| "Joseph Gordon-Levitt" | |
| ], | |
| "release_date" : "2013-01-18T00:00:00Z", | |
| "rating" : 7.4, | |
| "genres" : [ | |
| "Comedy", |
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 { Injectable } from '@angular/core'; | |
| import { | |
| SpacesLoggingService, | |
| SpacesMessagesService | |
| } from 'spaces-ng'; | |
| import { TcExchangeDbService } from 'threatconnect-ng'; | |
| @Injectable() | |
| export class DatastoreService { |
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
| { | |
| "name" : "Indicator status example", | |
| "type" : "Standard", | |
| "panX" : 20.0, | |
| "panY" : 20.0, | |
| "logLevel" : "DEBUG", | |
| "description" : "", | |
| "version" : "1.2", | |
| "comment" : "Auto-Saved on Thu Jun 06 12:08:18 UTC 2019", | |
| "jobList" : [ { |
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
| # It is helpful to add the following lines to crontab on a linux box: | |
| SHELL=/bin/sh | |
| PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |