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/sh | |
#|-*- mode:lisp -*-|# | |
#| | |
exec ros -Q -- $0 "$@" | |
|# | |
(progn ;;init forms | |
(ros:ensure-asdf) | |
#+quicklisp (ql:quickload '(usocket) :silent t) | |
) |
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/sh | |
#|-*- mode:lisp -*-|# | |
#| | |
exec ros -Q -- $0 "$@" | |
|# | |
(progn ;;init forms | |
(ros:ensure-asdf) | |
#+quicklisp (ql:quickload '(usocket flexi-streams) :silent t) | |
) |
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
# 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 [email protected] | |
import uuid | |
stix12_to_stix2_obj_type_mappings = { | |
'indicator': ['indicator'], |
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
{ | |
"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 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 | |
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 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
{ | |
"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 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
{ | |
"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 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
$ 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 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
{ | |
"objects": [ | |
{ | |
"labels": [ | |
"source--eiq-fusion" | |
], | |
"name": "EclecticIQ Fusion Center", | |
"external_references": [ | |
{ | |
"source_name": "external-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
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. |