Skip to content

Instantly share code, notes, and snippets.

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

Dwight Spencer ([email protected]) denzuko

💬
twitter.com/denzuko
View GitHub Profile
@denzuko
denzuko / docker-swarm-architecture.md
Created October 23, 2023 04:10 — forked from scyto/docker-swarm-architecture.md
My Docker Swarm Architecture
@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 / 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 / 00-Intro
Last active January 6, 2023 17:41 — forked from Lanny/README.md
File Hierarchy Preview
Leverging FZF for a user interface one can do fuzzy searching with a directory tree and document preview.
The PTF.py creates that tree then colors the path thus giving a graph of the item searched.
Example Usage includes:
- More advance Poorman's Mindmap
- Person/Contact Graph as a filesystem
- Asset Mapping (with pass(1) and LDAP file system structures)
- Maps with stow
- Project Management / Kanboard
@denzuko
denzuko / stunnel.conf
Created October 1, 2022 07:30 — forked from nealey/stunnel.conf
stunnel configuration to connect to SSL+IRC
[slashnet]
client = yes
accept = 58697
connect = us.slashnet.org:6697
@denzuko
denzuko / README
Last active December 14, 2021 09:31 — forked from artiee/README
Test setup for requirejs, backbone, underscore, handlebars...
Create the structure above and download the required libraries
*** You must run this on server (e.g. on a local Apache or Node.js) because RequireJS's text-plugin won't be able to fetch the required handlebar-templates due to browser-security. ***
@denzuko
denzuko / Makefile
Last active March 2, 2020 00:35 — forked from aldemirenes/android_build_run.sh
Shell scripts for Android development without needing to use Android Studio
PACKAGE_NAME := $(shell basename "$(shell pwd)")
APP_PID := $(shell adb shell ps | awk -F q=$(PACKAGE_NAME) '$0 ~ q { print $2 }')
APKFILE := app/build/outputs/apk/apk-debug.apk
.PHONY: all clean build logs install
all: build install logs
build:
@./gradlew assembleDebug
@denzuko
denzuko / ansible-log-analyzer.py
Created September 30, 2019 00:45 — forked from dgoodwin/ansible-log-analyzer.py
Ansible Log Scraper
#!/usr/bin/env python
#
# Usage: ansible-log-analyzer.py [LOGFILE]
import re
import sys
from datetime import datetime, timedelta
TASK_RE = re.compile(r'(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3}) p=\d+ u=[\w-]* \|\s*TASK: \[(.*)\]')