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.0 | |
FROM lukemathwalker/cargo-chef:latest-rust-slim-bookworm AS base | |
WORKDIR /app | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
libwebkit2gtk-4.0-dev \ | |
build-essential \ | |
curl \ |
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 | |
# Function to log using gum | |
logger() { | |
local level msg OPTIND log_file log_dir log_path | |
level="" | |
msg="" | |
log_dir="/tmp" | |
log_file="gum.log" | |
log_path="${log_dir}/${log_file}" |
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 http.server | |
import os | |
import socketserver | |
from pathlib import Path | |
PORT = 8000 | |
if os.getenv("WORK_DIR") is not None: |
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
#cloud-config | |
# QCow2 UEFI/GPT Bootable disk image | |
# https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img | |
output: { all: '| tee -a /var/log/cloud-init.log' } | |
timezone: "America/Chicago" | |
hostname: ubuntu |
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 | |
. /etc/os-release | |
PRETTY_NAME=`awk -F= '$1=="PRETTY_NAME" { print $2 ;}' /etc/os-release | tr -d '"'` | |
VERSION_ID=`awk -F= '$1=="VERSION_ID" { print $2 ;}' /etc/os-release` | |
UPTIME_DAYS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 / 86400) | |
UPTIME_HOURS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 / 3600) | |
UPTIME_MINUTES=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 % 3600 / 60) | |
cat > /etc/motd << EOF |
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 keymap | |
// | |
// For information on binding keys, see the Zed | |
// documentation: https://zed.dev/docs/key-bindings | |
// | |
// To see the default key bindings run `zed: open default keymap` | |
// from the command palette. | |
[ | |
{ | |
"context": "Workspace", |
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() |
NewerOlder