Skip to content

Instantly share code, notes, and snippets.

View NCommander's full-sized avatar
🏠
Working from home

NCommander (Michael Casadevall) NCommander

🏠
Working from home
View GitHub Profile
/* nova_dkp.c: NOVA moving head disk simulator Copyright (c) 1993-2008, Robert M. Supnik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL ROBERT M SUPNIK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC

License: GPL v3 Build Status codecov Code Climate

Network Data Recorder

NDR runs on Secured By THEM network sensors and provides network scanning and upload to a centralized server. Written in Python, the recorder is designed to be a self-contained system that is "set it and forget it" with centralized management, automatic updates, and evolving threat detection.

mcasadevall@perdition ~/KSP_RO/git/Principia $ clang++ -c -std=c++14 -stdlib=libc++ -O3 -g -fPIC -fexceptions -ferror-limit=1 -fno-omit-frame-pointer -DPROJECT_DIR='std::experimental::filesystem::path("ksp_plugin_adapter/")' -DSOLUTION_DIR='std::experimental::filesystem::path("./")' -DTEMP_DIR='std::experimental::filesystem::path("/tmp")' -DNDEBUG -m64 -I. -Ideps/glog/src -Ideps/protobuf/src -Ideps/Optional -Ideps/eggsperimental_filesystem/ tools/generate_configuration.cpp -o obj/tools/generate_configuration.o
In file included from tools/generate_configuration.cpp:2:
In file included from ./tools/generate_configuration.hpp:6:
In file included from ./geometry/named_quantities.hpp:4:
In file included from ./geometry/grassmann.hpp:8:
In file included from ./base/not_null.hpp:9:
deps/glog/src/glog/logging.h:713:32: warning: comparison of two values with different enumeration types ('const
principia::serialization::Frame_SolarSystemTag' and 'const principia::serialization::Frame_PluginTag') [-Wenum-compare]
mcasadevall@perdition ~/KSP_RO/git/Principia $ clang++ -c -std=c++14 -stdlib=libc++ -ftemplate-backtrace-limit=0 -O3 -g -fPIC -fexceptions -ferror-limit=1 -fno-omit-frame-pointer -DPROJECT_DIR='std::experimental::filesystem::path("ksp_plugin_adapter/")' -DSOLUTION_DIR='std::experimental::filesystem::path("./")' -DTEMP_DIR='std::experimental::filesystem::path("/tmp")' -DNDEBUG -m64 -I. -Ideps/glog/src -Ideps/protobuf/src -Ideps/Optional -Ideps/eggsperimental_filesystem/ tools/generate_configuration.cpp -o obj/tools/generate_configuration.o
In file included from tools/generate_configuration.cpp:2:
In file included from ./tools/generate_configuration.hpp:6:
In file included from ./geometry/named_quantities.hpp:4:
In file included from ./geometry/grassmann.hpp:8:
In file included from ./base/not_null.hpp:9:
deps/glog/src/glog/logging.h:713:32: warning: comparison of two values with different enumeration types ('const
principia::serialization::Frame_SolarSystemTag' and 'const principia::serialization::Frame
root@lighthouse:/# apt-get install python-letsencrypt-apache=0.7.0-0ubuntu0.16.04.1~ppa1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2 apache2-bin apache2-data apache2-utils certbot letsencrypt libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libicu55 liblua5.1-0 libpython-stdlib libpython2.7-minimal
libpython2.7-stdlib libxml2 python python-acme python-certbot python-certbot-apache python-cffi-backend python-chardet python-configargparse python-configobj python-cryptography
python-enum34 python-funcsigs python-idna python-ipaddress python-josepy python-letsencrypt python-minimal python-mock python-openssl python-parsedatetime python-pbr python-pkg-resources
python-pyasn1 python-requests python-rfc3339 python-setuptools python-six python-tz python-urllib3 python-zope.component python-zope.event python-zope.hookable python-zope.interface
python2.7 python2.7-minimal
@NCommander
NCommander / patreom.pem
Created June 8, 2021 05:51
patreon.com strange certificate
Certificate for patreon.com in PEM form, which fails certificate transparency as of Mon 07 Jun 2021 09:50:55 PM EDT
-----BEGIN CERTIFICATE-----
MIIFLDCCBNOgAwIBAgIQC4lqI1vmSNYE1n3TR0zF1jAKBggqhkjOPQQDAjBKMQsw
CQYDVQQGEwJVUzEZMBcGA1UEChMQQ2xvdWRmbGFyZSwgSW5jLjEgMB4GA1UEAxMX
Q2xvdWRmbGFyZSBJbmMgRUNDIENBLTMwHhcNMjEwNjA4MDAwMDAwWhcNMjIwNjA3
MjM1OTU5WjBrMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQG
A1UEBxMNU2FuIEZyYW5jaXNjbzEZMBcGA1UEChMQQ2xvdWRmbGFyZSwgSW5jLjEU
MBIGA1UEAxMLcGF0cmVvbi5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARl
RLSxyV1eNZ0BxQvUVNuSfhhuD9kRnPA0IkyUdDCBjsFIo5fRCxNvKzwF4x2KstMU
@NCommander
NCommander / gist:a0739292ad62d92bf2c7586b448b27a5
Created September 11, 2021 08:12
Reading BIOS disk geometry on VENIX/86 ...
| Attempt to get disk geometry
| Paramter is which disk drive to read
.globl _bhgeo
_bhgeo:
push bp
mov bp, sp
mov dl, *4(bp)
{
"resourceType": "Bundle",
"type": "collection",
"entry": [
{
"fullUrl": "resource:0",
"resource": {
"resourceType": "Patient",
"name": [
{
{
"iss": "https://spec.smarthealth.cards/examples/issuer",
"nbf": 1639490372.558,
"vc": {
"type": [
"https://smarthealth.cards#health-card",
"https://smarthealth.cards#immunization",
"https://smarthealth.cards#covid19"
],
"credentialSubject": {
@NCommander
NCommander / gist:6111c08a5d6be85d483727b15803b0c7
Last active January 7, 2022 06:32
Implement RFC 7638 with python-jose
#!/usr/bin/env python3
"""Quick and dirty python-jose kid generator
This is needed because jose doesn't offer a way to generate the key
thumbprint in a RFC 7638 complaint matter, and it's the only library
that can handle both EC signatures, and is MIT license compatible
"""
import base64