# Ensure the script is executable.
chmod +x install.sh
# Run installer script
./install.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Lowercase all file names in git repository | |
# SPDX-License-Identifier: 0BSD | |
# FIXME: recurse subdirectories | |
for file in *; do | |
lowercase_name=$(echo $file | awk '{ print tolower($0) }') | |
# https://stackoverflow.com/a/30654833/8507637 | |
git mv "${file}" "_${lowercase_name}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// SPDX-License-Identifier: MIT | |
// Decode binary from base64 | |
const fs = require("fs"); | |
const process = require("process"); | |
const util = require("util"); | |
process.argv.forEach(function (val, index, array) { | |
const txt = fs.readFileSync(val); | |
const bin = Buffer.from(txt,'base64').toString(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: MIT | |
FROM alpine:latest | |
# Install nginx and enable gzip compression | |
RUN apk update && \ | |
apk upgrade && \ | |
apk add nginx && \ | |
mkdir -p /run/nginx && \ | |
touch /run/nginx/nginx.pid && \ | |
sed -i 's/#gzip on;/gzip on;/g' /etc/nginx/nginx.conf |
This is a work in progress.
Note: this requires software in the edge repository.
apk upgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2020 Lucas Ramage <ramage.lucas@protonmail.com> | |
# SPDX-License-Identifier: UPL-1.0 | |
# Create generic three-node cluster | |
# Based on: https://github.com/oracle/vagrant-projects/blob/master/Kubernetes/Vagrantfile | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// SPDX-License-Identifier: MIT | |
// Convert CSV to JSON | |
const csv2json = require("csvjson-csv2json"); | |
const fs = require("fs"); | |
const process = require("process"); | |
const util = require("util"); | |
process.argv.forEach(function (val, index, array) { | |
if(val.includes(".csv")) { |
Application Security Testing Playlist.