Skip to content

Instantly share code, notes, and snippets.

View codingchili's full-sized avatar
🍉
Got my co-pilot on auto-pilot.

Robin D codingchili

🍉
Got my co-pilot on auto-pilot.
View GitHub Profile
@codingchili
codingchili / penetration-testing-note
Created April 9, 2020 09:45
Penetration testing disclaimer
Subject: Vulnerability Assessment and Penetration Testing Authorization
Date: [insert todays date]
The purpose of this memo is to grant authorization to specific members of the information security team to conduct vulnerability assessments and penetration tests against this organization's assets. To that end, this file attests to the following:
1) Robin Duda, [email protected] have permission to test the organization's website to find vulnerabilities. This permission is granted from [insert start date] until [insert end date].
2) [Insert name of approver] has the authority to grant this permission for testing the organization's Information Technology assets.
[Insert additional permissions and/or restrictions if any.]
@codingchili
codingchili / custom-element.js
Created October 5, 2020 11:37
Example of a custom element using only platform standards.
import {Styles} from 'styles.js';
import '/component/rabbit-button.js'
import '/component/rabbit-input.js'
/**
* Search field is a custom element that includes a
* button and a text field. The component consumes
* a search string and produces a list of search hits.
*
* The search hits are fed into the slotted component.
@codingchili
codingchili / custom-element-lit.js
Created October 5, 2020 11:47
custom element demo with lit-html
import {render, html} from 'lit-html.js';
import {Styles} from 'styles.js';
import '/component/rabbit-button.js'
import '/component/rabbit-input.js'
import '/component/search-grid.js'
/**
* Search field is a custom element that includes a
* button and a text field. The component consumes
* a search string and produces a list of search hits.
@codingchili
codingchili / console_paste.js
Created April 21, 2022 13:49
Netacad2PDF (requires a _lot_ of memory)
function extract_chapter_links() {
return [...document.querySelectorAll('a.navlink')]
.map(link => {
return {
name: link.querySelector('.navlink_name').innerText,
label: link.querySelector('.navlink_label').innerText,
href: link.href
}
}).filter(link => !link.href.includes('#'));
}
@codingchili
codingchili / soda.sh
Last active April 26, 2025 17:39
lists commits with files changed for matching emails
#!/bin/bash
# Usage: ./find_commits.sh inputfile.txt filter_domain
FILTER_DOMAIN="$1"
AUTHORS_FILE="authors.txt"
ATTRIBUTION_FILE="attribution.txt"
# Colors for terminal output
RESET='\033[0m'
GREEN='\033[32m'
@codingchili
codingchili / soka.sh
Created April 26, 2025 17:22
finds unique email domains among contributors in given path (org attribution)
#!/bin/bash
# Colors
GREEN="\033[0;32m"
BLUE="\033[0;34m"
YELLOW="\033[1;33m"
RED="\033[0;31m"
RESET="\033[0m"
FILEPATH="$1"