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
{ | |
"type": "bundle", | |
"id": "bundle--6a8d1a72-e854-43a7-a11b-b096cc486374", | |
"objects": [ | |
{ | |
"id": "location--02098275-3ee6-4a3d-8bb5-2caf87b4aca0", | |
"spec_version": "2.1", | |
"type": "location", | |
"country": "US", | |
"administrative_area": "US-DC", |
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
%% | |
% Copyright (c) 2017 - 2023, Pascal Wagler; | |
% Copyright (c) 2014 - 2023, John MacFarlane | |
% | |
% All rights reserved. | |
% | |
% Redistribution and use in source and binary forms, with or without | |
% modification, are permitted provided that the following conditions | |
% are met: | |
% |
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
local gpgGroup = vim.api.nvim_create_augroup('customGpg', { clear = true }) | |
-- autocmds execute in the order in which they were defined. | |
-- https://neovim.io/doc/user/autocmd.html#autocmd-define | |
vim.api.nvim_create_autocmd({ 'BufReadPre', 'FileReadPre' }, { | |
pattern = '*.gpg', | |
group = gpgGroup, | |
callback = function () | |
-- Make sure nothing is written to shada file while editing an encrypted file. |
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
{ | |
"objects": [ | |
{ | |
"labels": [ | |
"source--eiq-fusion" | |
], | |
"name": "EclecticIQ Fusion Center", | |
"external_references": [ | |
{ | |
"source_name": "external-url", |
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
$ date && LEIN_JVM_OPTS= LEIN_FAST_TRAMPOLINE=1 lein trampoline run -m tmpproj && date | |
Fri Jun 10 21:57:11 CEST 2022 | |
WARNING: update-keys already refers to: #'clojure.core/update-keys in namespace: io.aviso.exception, being replaced by: #'io.aviso.exception/update-keys | |
Hello | |
Fri Jun 10 21:58:12 CEST 2022 | |
$ |
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
{ | |
"type": "bundle", | |
"id": "bundle--a6fb81b8-46c7-40de-85be-bee510f08d1b", | |
"objects": [ | |
{ | |
"type": "campaign", | |
"spec_version": "2.1", | |
"id": "campaign--12a111f0-b824-4baf-a224-83b80237a094", | |
"lang": "en", | |
"created": "2017-02-08T21:31:22.007Z", |
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
{ | |
"type": "bundle", | |
"id": "bundle--a6fb81b8-46c7-40de-85be-bee510f08d1b", | |
"objects": [ | |
{ | |
"type": "campaign", | |
"spec_version": "2.1", | |
"id": "campaign--12a111f0-b824-4baf-a224-83b80237a094", | |
"lang": "en", | |
"created": "2017-02-08T21:31:22.007Z", |
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 os | |
from http.server import HTTPServer, BaseHTTPRequestHandler, SimpleHTTPRequestHandler | |
class CustomHTTPRequestHandler(SimpleHTTPRequestHandler): | |
def do_POST(self): | |
filename = os.path.basename(self.path) | |
file_length = int(self.headers['Content-Length']) | |
with open(filename, 'wb') as output_file: |
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
{ | |
"id": "bundle--f39d5a20-939b-44d8-ab7b-42edff352317", | |
"objects": [ | |
{ | |
"type": "identity", | |
"id": "identity--18d1436d-9d9d-4c05-8d88-bc4a39ff6bce", | |
"created": "2019-01-01T01:00:00.123Z", | |
"modified": "2019-01-01T01:00:00.123Z", | |
"name": "EclecticIQ", | |
"identity_class": "organization", |
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 code is an example of how STIX1.2 ids to STIX2 ids conversion | |
# would work with UUID5 allowed in identifiers by STIX2 spec | |
# | |
# by sergey@eclecticiq.com | |
import uuid | |
stix12_to_stix2_obj_type_mappings = { | |
'indicator': ['indicator'], |
NewerOlder