Skip to content

Instantly share code, notes, and snippets.

View klcodanr's full-sized avatar

Dan Klco klcodanr

View GitHub Profile
#!/bin/bash
# The MIT License
#
# Copyright (c) 2022 Dan Klco
#
# 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
const fs = require("fs");
const Path = require("path");
const winston = require("winston");
const {
FileSystemUploadOptions,
FileSystemUpload,
} = require("@adobe/aem-upload");
const log = winston.createLogger({
format: winston.format.simple(),
@klcodanr
klcodanr / Dockerfile
Last active September 8, 2023 13:34
pre-push GIT hook for warning on pushes to main / master / release branches
FROM ubuntu:focal
# Install Dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
vim \
&& rm -rf /var/lib/apt/lists/*
# Setup GIT