Skip to content

Instantly share code, notes, and snippets.

View zsarge's full-sized avatar

Zack Sargent zsarge

View GitHub Profile
@zsarge
zsarge / SnipeIt Modified Label.php
Created February 11, 2025 17:02
SnipeIT modified label for Norse IoT. This has the barcode and our text.
<?php
namespace App\Models\Labels\Tapes\Brother;
class TZe_12mm_A extends TZe_12mm
{
// this file lives at /var/www/html/snipeit/app/Models/Labels/Tapes/Brother/TZe_12mm_A.php
private const BARCODE_SIZE = 5.00;
private const BARCODE_MARGIN = 0.60;
private const TEXT_SIZE_MOD = 1.00;
@zsarge
zsarge / docker-compose.override.yml
Created April 22, 2025 18:46
STLP Docker Compose
services:
ctfd:
image: ctfd/ctfd
ports:
- "4500:8000"
environment:
- UPLOAD_FOLDER=/var/uploads
- LOG_FOLDER=/var/log/CTFd
- DATABASE_URL=sqlite:///ctfd.db
- WORKERS=1
@zsarge
zsarge / create-kml-file.py
Created May 4, 2025 05:28
KML List of all Firetowers in USA
#!/usr/bin/env python3
"""
This script reads from "urls.txt", which is assumed to be the list of
firetowers from http://nhlr.org/.
From there, it parses all of the webpages, and builds up a "firetowers.kml" file,
which contains the points from the urls found.
Estimated runtime: 15 to 30 minutes, depending on the time slept.