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 bash | |
set -e | |
help() { | |
cat <<- DESCRIPTION >&2 | |
Shim to run nikto in a container. | |
SETUP | |
git clone https://github.com/sullo/nikto |
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
// Zed settings | |
// | |
// For information on how to configure Zed, see the Zed | |
// documentation: https://zed.dev/docs/configuring-zed | |
// | |
// To see all of Zed's default settings without changing your | |
// custom settings, run the `open default settings` command | |
// from the command palette or from `Zed` application menu. | |
{ | |
"languages": { |
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
id: editor | |
namespace: company.team | |
tasks: | |
- id: hello | |
type: io.kestra.plugin.scripts.python.Script | |
namespaceFiles: | |
enabled: true | |
script: "{{ read('scripts/hello.py') }}" |
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
id: ansible | |
namespace: company.team | |
tasks: | |
- id: ansible_task | |
type: io.kestra.plugin.ansible.cli.AnsibleCLI | |
inputFiles: | |
inventory.ini: | | |
localhost ansible_connection=local | |
myplaybook.yml: | |
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 python | |
import sys | |
import csv | |
import re | |
from pathlib import Path | |
python_script = Path(sys.argv[0]) | |
vault_path = Path(sys.argv[1] if len(sys.argv) > 1 else "../../..").resolve() | |
file_path = Path(sys.argv[2] if len(sys.argv) > 2 else ".").resolve() |
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
services: | |
cosmos-server: | |
image: azukaar/cosmos-server:latest | |
container_name: cosmos-server | |
hostname: cosmos-server | |
restart: on-failure:3 | |
# ports: | |
# - 80:80 | |
# - 443:443 | |
# - 4242:4242/udp |
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 bash | |
set -euo pipefail | |
# trap exit signals 2, 1, 15 | |
trap "exit" SIGINT SIGHUP SIGTERM | |
cat << 'DESCRIPTION' >/dev/null | |
USAGE: | |
backup.sh [SRC] [DEST] [EXT] [TLD] [SUB_DIR] [LOG_PATH] |
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 bash | |
# shellcheck disable=SC2120 | |
# exit on signals: 2, 1, 15 | |
trap 'exit' SIGINT SIGHUP SIGTERM | |
# $USER | |
[[ -n $(logname >/dev/null 2>&1) ]] && logged_in_user=$(logname) || logged_in_user=$(whoami) |
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 bash | |
# shellcheck disable=SC1091,SC2317 | |
# shift shim behind real binary | |
export PATH="/usr/local/bin/:${PATH}" | |
# env vars | |
git_root="$(git rev-parse --show-toplevel 2>/dev/null)" | |
script_dir=$(dirname "$(readlink -f "$0")") |
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
# syntax=docker/dockerfile:1.7 | |
FROM ubuntu:20.04 | |
ARG PYTHON_VERSION="3.11" | |
ENV TZ=US/Chicago | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN <<EOF | |
#!/usr/bin/env bash |
NewerOlder