Skip to content

Instantly share code, notes, and snippets.

View denzuko's full-sized avatar
💬
twitter.com/denzuko

Dwight Spencer (denzuko@mastodon.social) denzuko

💬
twitter.com/denzuko
View GitHub Profile
@denzuko
denzuko / bbslink.py
Last active March 5, 2024 14:11
bbslink.mpy door menu - InterBBS Server
@denzuko
denzuko / Dockerfile
Last active October 29, 2023 22:28
Docker based tasks for Airflow, k8s, and nomad.
FROM python:3.9.18-alpine3.18
RUN pip install pipx invoke[invocations] scrapy scapy beautifulsoup ansible[dockerpy,pywinrm]
WORKDIR /src
COPY tasks.py /src
ENTRYPOINT invoke
CMD --list
@denzuko
denzuko / docker-swarm-architecture.md
Created October 23, 2023 04:10 — forked from scyto/docker-swarm-architecture.md
My Docker Swarm Architecture
---
## Execute: docker compose up -D ./docker-compose.yml
version: '3'
services:
autoscale:
image: gianarb/orbiter:latest
healthcheck:
test: ["CMD", "exit 0"]
interval: 25s
@denzuko
denzuko / docker-compose.yml
Created October 12, 2023 02:07 — forked from sairamkrish/docker-compose.yml
Airflow - Docker swarm setup
version: "3.8"
# This should give a high level idea of the approach.
# The complete solution is too complex and involves multiple internal microservices.
# I have tried to capture core things to consider while some else needs to achieve Docker swarm based auto scalout of workers.
services:
webserver:
image: customized/airflow:prod
environment:
@denzuko
denzuko / installer.rsc
Last active August 5, 2023 02:03
MVP hosts.txt for RouterOS
/tool fetch url="https://gist.github.com/denzuko/a33801e23cc907b72a23d51dd9d763e9/raw/260569b91ae569591585f1b3be91bb98cb2d8ccd/%2520mvprbl.rsc" mode=http
:log info "Downloaded mvprbl.rsc"
/ip firewall filter add chain=output dst-address-list=host_mvprbl action=allow
:foreach i in=[/ip firewall address-list find ] do={
:if ( [/ip firewall address-list get $i list] == "host_mvprbl") do={ /ip firewall address-list remove $i }
}
:log Remove old MVP remote blocklist entries
/import mvprbl.rsc
@denzuko
denzuko / LICENSE
Last active June 9, 2023 02:37 — forked from justjkk/LICENSE
Parsing JSON with lex and yacc
The MIT License (MIT)
Copyright (c) 2015 J Kishore Kumar
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:
@denzuko
denzuko / Makefile
Last active May 30, 2023 13:50
Weaponising Ansible
.PHONY: all clean
all: start install
config: reload install
start:
@vagrant up
stop:
@denzuko
denzuko / Makefile
Last active January 31, 2023 21:22
CTF Flags, Styleguide, and Toolset
MD_FILES=$(shell find . -name \*.md)
# HTML
HTML_FILES=$(MD_FILES:.md=.html)
BUILD_HTML_FILES=$(HTML_FILES:%=build/%)
# PDF
PDF_FILES=$(MD_FILES:.md=.pdf)
BUILD_PDF_FILES=$(PDF_FILES:%=build/%)
EXTRA_PDFS=sample-midterm-solutions.pdf
@denzuko
denzuko / MailinatorAliases
Last active January 20, 2023 09:57 — forked from nocturnalgeek/MailinatorAliases
A list of alternate domains that point to @mailinator.com
@binkmail.com
@bobmail.info
@chammy.info
@devnullmail.com
@letthemeatspam.com
@mailinater.com
@mailinator.net
@mailinator2.com
@notmailinator.com
@reallymymail.com