Skip to content

Instantly share code, notes, and snippets.

View vjarnot's full-sized avatar

Voytek Jarnot vjarnot

View GitHub Profile
@vjarnot
vjarnot / import_dod_certs_mac.sh
Last active March 29, 2023 17:03 — forked from dcode/import_dod_certs_mac.sh
Install and trust DoD CA certificates on MacOS (tested on Ventura). NOTE: This will do a password prompt for each certificate - no way around it. Original here: https://gist.github.com/dcode/2fcac5735c6812ea8c25798ff38224b7
#!/bin/bash
#export CERT_URL='https://dl.dod.cyber.mil/wp-content/uploads/pki-pke/zip/certificates_pkcs7_DoD.zip'
export CERT_URL='https://dl.dod.cyber.mil/wp-content/uploads/pki-pke/zip/unclass-certificates_pkcs7_DoD.zip'
# Download & Extract DoD root certificates
cd ~/Downloads/
/usr/bin/curl -LOJ ${CERT_URL}
/usr/bin/unzip -o $(basename ${CERT_URL})
@vjarnot
vjarnot / gist:49c6c1e7fe46f20d00ab315e650adcc3
Created September 13, 2018 15:03 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream