Skip to content

Instantly share code, notes, and snippets.

View notjustanyjoe's full-sized avatar

Joseph Salas notjustanyjoe

  • Albuquerque, NM
View GitHub Profile
@AfroThundr3007730
AfroThundr3007730 / add-dod-certs.sh
Last active June 25, 2024 14:11
Import DoD root certificates into linux CA store
#!/bin/bash
# Import DoD root certificates into linux CA store
# Version 0.3.0 updated 20240304
# SPDX-License-Identifier: GPL-3.0-or-later
add_dod_certs() {
local bundle cert certdir file form tmpdir url update
# Location of bundle from DISA site
url='https://public.cyber.mil/pki-pke/pkipke-document-library/'
bundle=$(curl -s $url | awk -F '"' 'tolower($2) ~ /dod.zip/ {print $2}')
@MetalArend
MetalArend / swarm.yml
Last active June 16, 2024 10:11
Run a GitLab Runner on your Swarm
version: '3.4'
secrets:
# Find your registration token at: "Your project" > "Settings" > "CI/CD" > "Runners settings" > "Specific Runners" (look for registration token)
# Register it as `GITLAB_REGISTRATION_TOKEN`: `docker secret create GITLAB_REGISTRATION_TOKEN YOUR_REGISTRATION_TOKEN`
GITLAB_REGISTRATION_TOKEN:
external: true
# Find your personal access token at: "Your user account" > "Settings" > "Access Tokens" > "Create personal access token" (for api)
# Register it as `GITLAB_PERSONAL_ACCESS_TOKEN`: `docker secret create GITLAB_PERSONAL_ACCESS_TOKEN <YOUR ACCESS TOKEN>`