Skip to content

Instantly share code, notes, and snippets.

View mttjohnson-jf's full-sized avatar

Matt Johnson mttjohnson-jf

  • Jotform
  • United States
View GitHub Profile
@mttjohnson-jf
mttjohnson-jf / test_http_redirects.sh
Last active January 31, 2024 23:21 — forked from mttjohnson/test_http_redirects.sh
Testing HTTP Redirects
# The check_url recursive function
check_url() {
this_url="${1}"
curl_format=$(echo "
http_code| %{http_code}
http_version| %{http_version}
\n")
# (
# cat << EOF
# curl -w "${curl_format}" -o /dev/null -D - -sk "${this_url}"
@mttjohnson-jf
mttjohnson-jf / ssl_certificate_validation.sh
Last active October 17, 2023 16:02 — forked from mttjohnson/ssl_certificate_validation.sh
SSL Certificate Validation
# Verify SSL
ssl_domain=mydomainnametotest.com
openssl rsa -noout -modulus -in $ssl_domain.key | openssl sha256
openssl req -noout -modulus -in $ssl_domain.csr | openssl sha256
openssl x509 -noout -modulus -in $ssl_domain.crt | openssl sha256
# Output text of certificate
openssl x509 -text -in /etc/nginx/ssl/$ssl_domain.crt
# Get details of all certs in .crt bundle file to verify certificate chain
@mttjohnson-jf
mttjohnson-jf / translate_transcribe_videos.md
Last active October 6, 2023 16:58 — forked from mttjohnson/README.md
Add English subtitles to videos with Turkish language audio

Dependencies

Install the following dependencies

brew install pipenv
brew install ffmpeg
pipenv install --python 3.10

Instructions

@mttjohnson-jf
mttjohnson-jf / searching_user_gists.md
Created December 21, 2022 16:14
Searching User Gists