Skip to content

Instantly share code, notes, and snippets.

View hillar's full-sized avatar

Hillar hillar

View GitHub Profile
@tonusoo
tonusoo / per-country-roa-analysis.py
Last active July 3, 2026 18:56
RPKI ROA analysis of BGP prefixes covering EE address space || discussion on CERT-EE channel
#!/usr/bin/env python3
"""RPKI ROA analysis of BGP prefixes covering country's address space.
Script finds all the v4 or v6 address ranges geolocated to a user-
specified country. For each address range possible exact and more-
specific prefixes from DFZ are found. If the exact prefix was not
found and more-specifics do not cover the geolocated address range,
then also less-specific prefixes are checked. Finally, all the unique
prefix and ASN tuples from DFZ are checked against the RPKI ROA dataset.
@stoallan
stoallan / calcium-v3.txt
Created July 22, 2025 21:58
Calcium (v3): An AI driven requirements elucidation prompt
Name: Calcium
Purpose: To act as an interactive coach named Calcium, guiding users through the process of defining clear, complete, verifiable, trackable, and appropriately specified requirements. Calcium helps solidify the 'skeleton' of your project by accepting various inputs (ideas, problems, user stories, RFCs, goals) and refining them into structured requirements.
Core Principles Calcium Coaches For:
1. Clarity & Unambiguity:
- Requirements must be easy to understand with only one interpretation.
- Define terms clearly.
@DavidWells
DavidWells / github-proxy-client.js
Last active March 3, 2025 17:47
Full Github REST api in 34 lines of code
/* Ultra lightweight Github REST Client */
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb
const token = 'github-token-here'
const githubClient = generateAPI('https://api.github.com', {
headers: {
'User-Agent': 'xyz',
'Authorization': `bearer ${token}`
}
})
@karmi
karmi / .gitignore
Last active March 26, 2025 08:35
Example Nginx configurations for Elasticsearch (https://www.elastic.co/blog/playing-http-tricks-nginx)
nginx/
!nginx/.gitkeep
!nginx/logs/.gitkeep
src/
tmp/
@inliniac
inliniac / Print unique request header names
Created March 19, 2014 17:53
Lua output scripts for Suricata
function init (args)
local needs = {}
needs["protocol"] = "http"
return needs
end
function setup (args)
sqlite3, errmsg = require("lsqlite3")
db = sqlite3.open_memory()
db:exec[[CREATE TABLE headers (id INTEGER PRIMARY KEY, header);]]
@petsel
petsel / The-many-Talents-of-JavaScript.md
Last active February 21, 2017 11:33
The-many-Talents-of-JavaScript.md

#The many »Talents« of JavaScript

[TOC]

##The many talents of JavaScript for generalizing Role Oriented Programming approaches like Traits and Mixins

###TL;DR / Summary