- Download ATmega's support pack from Microchip's website
- Unzip the relevant files
unzip -j Atmel.ATmega_DFP.x.y.zzz.atpack \
| FROM alpine | |
| RUN apk --no-cache add #python3 py3-pip git | |
| WORKDIR /app | |
| RUN adduser -h /app -D user | |
| #RUN git clone --depth=1 URI . | |
| #COPY ["file", "./"] |
| FROM debian:stable-slim | |
| RUN apt update \ | |
| && apt install -y chromium curl unzip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| #RUN useradd -m -d /app user | |
| WORKDIR /app | |
| RUN curl -L -o file.zip \ |
unzip -j Atmel.ATmega_DFP.x.y.zzz.atpack \
| # gen a new RSA key | |
| ssh-keygen -t rsa -b 4096 -f /home/user/.ssh/whatever | |
| # .ssh/config | |
| Host host.local | |
| PreferredAuthentications publickey | |
| IdentityFile ~/.ssh/whatever |
| #!/bin/sh | |
| # | |
| # A hook script to verify what is about to be committed. | |
| # Called by "git commit" with no arguments. The hook should | |
| # exit with non-zero status after issuing an appropriate message if | |
| # it wants to stop the commit. | |
| files=$(git diff --cached --name-only --diff-filter=ACM | grep "\.py$") | |
| pass=true |
| #!/bin/sh | |
| # | |
| # Converts `masscan`'s JSON output to JSON lines that can be | |
| # parsed by `jq` or `python -m json.tool --json-lines`. | |
| # masscan (1.0.4) outputs an array with a trailing comma, which is invalid. | |
| # This basically breaks the array into its elements, one per line. | |
| # | |
| # Example: | |
| # [ | |
| # {...}, |
| FROM alpine | |
| RUN apk --no-cache add python3 py3-pip git | |
| WORKDIR /app | |
| RUN adduser -h /app -D user | |
| RUN git clone --depth=1 https://github.com/sdgathman/pyspf/ . | |
| RUN python3 setup.py install |
| #!/usr/bin/env python3 | |
| import sys | |
| import ipaddress | |
| if len(sys.argv) != 2: | |
| print("Usage: {} <file>".format(sys.argv[0])) | |
| sys.exit(-1) | |
| with open(sys.argv[1]) as f: | |
| for line in f.readlines(): |
| FROM alpine:3.13 | |
| RUN apk add --no-cache bash procps drill git coreutils curl | |
| RUN addgroup testssl | |
| RUN adduser -G testssl -g "testssl user" -s /bin/bash -D testssl | |
| RUN ln -s /home/testssl/testssl.sh /usr/local/bin/ | |
| USER testssl |