Skip to content

Instantly share code, notes, and snippets.

View juliedavila's full-sized avatar
🎃
Content

Julie Davila juliedavila

🎃
Content
View GitHub Profile
@juliedavila
juliedavila / 8k.xml
Created July 28, 2023 14:11
Here’s a detailed example of how a cybersecurity incident might be represented in XBRL format.
<us-gaap:DocumentType contextRef="DisclosureDate">8-K</us-gaap:DocumentType>
<us-gaap:DocumentPeriodEndDate contextRef="DisclosureDate">2023-07-28</us-gaap:DocumentPeriodEndDate>
<us-gaap:EntityRegistrantName contextRef="DisclosureDate">XYZ Corporation</us-gaap:EntityRegistrantName>
<us-gaap:EntityCentralIndexKey contextRef="DisclosureDate">0001234567</us-gaap:EntityCentralIndexKey>
<us-gaap:MaterialEvent contextRef="DisclosureDate" id="MaterialEvent1">
<us-gaap:EventType contextRef="DisclosureDate">Cybersecurity Incident</us-gaap:EventType>
<us-gaap:EventDate contextRef="DisclosureDate">2023-07-28</us-gaap:EventDate>
<us-gaap:EventDescription contextRef="DisclosureDate">The Company identified a material cybersecurity incident that resulted in unauthorized access to the Company's internal systems. The Company's Incident Response Team detected unusual network activity and immediately initiated an investigation with the assistance of third-party cybersecurity experts. Some customer data may have been ac
@juliedavila
juliedavila / archive-ignore.sh
Created April 6, 2020 18:45
BASH one-liner to automatically ignore what appears in your .gitignore when using git archive; ignores comment lines
grep "^[^#]" .gitignore | xargs -I {} echo "{} export-ignore" > .gitattributes
@juliedavila
juliedavila / keybase.md
Last active August 17, 2020 14:34
keybase.md

Keybase proof

I hereby claim:

  • I am juliedavila on github.
  • I am defionscode (https://keybase.io/defionscode) on keybase.
  • I have a public key ASD9kjXndL1sZKFKJMu1Zib9EnDg1E8mmhP0Wl0oKQBctwo

To claim this, I am signing this object:

class TonicRaw {
constructor (rawText) {
this.isTonicRaw = true
this.rawText = rawText
}
valueOf () { return this.rawText }
toString () { return this.rawText }
}
@juliedavila
juliedavila / LICENSE.txt
Last active January 15, 2020 16:46
WYRWPL
DO WHAT YOU REALLY WANT TO PUBLIC LICENSE
Version 1, January 2020
Released under CC0 1.0 Universal
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT YOU REALLY WANT TO PUBLIC LICENSE
@juliedavila
juliedavila / init-aws.js
Created January 3, 2020 14:33
@architect/utils init-aws-.js
let exists = require('fs').existsSync
let homeDir = require('os').homedir()
let {join} = require('path')
let updater = require('../updater')
/**
* Initialize AWS configuration, in order of preference:
* - @aws pragma + ~/.aws/credentials file
* - Environment variables
* - Dummy creds (if absolutely necessary)
{"lastUpload":"2022-03-28T18:54:54.204Z","extensionVersion":"v3.4.3"}
@juliedavila
juliedavila / challenge.js
Last active December 11, 2018 21:44
sequential cbs
const combineFetch = (fns, cb) => {
const out = []
return id => {
const next = data => {
if (data) out.push(data)
if (fns.length) {
const fn = fns.shift()
return fn(id, next)
}
return cb(out)
@juliedavila
juliedavila / add-line.sh
Created November 13, 2018 21:04
A an example Ansible module written in bash
#!/bin/bash
### DOCUMENTATION
#######
## This is a simple module that simply appends a provided line to the specified file
## It is intended to give sufficient content in order for anyone to develop Ansible modules in bash
#######
# ARGS #
## line
## path
@juliedavila
juliedavila / gen-iam.js
Last active November 8, 2018 19:54
IAM role perms ip
function getTableResources (tableNames, accountNumber) {
let tableResources = []
tableNames.forEach(name => {
const resources = [
`arn:aws:dynamodb:*:${accountNumber}:table/${name}`,
`arn:aws:dynamodb:*:${accountNumber}:table/${name}/stream/*`,
`arn:aws:dynamodb:*:${accountNumber}:table/${name}/index/*`
]
tableResources = tableResources.concat(resources)
})