Skip to content

Instantly share code, notes, and snippets.

View ashleykleynhans's full-sized avatar
:octocat:

Ashley Kleynhans ashleykleynhans

:octocat:
View GitHub Profile
@gdamjan
gdamjan / ssl-check.py
Last active April 14, 2024 07:16
Python script to check on SSL certificates
# -*- encoding: utf-8 -*-
# requires a recent enough python with idna support in socket
# pyopenssl, cryptography and idna
from OpenSSL import SSL
from cryptography import x509
from cryptography.x509.oid import NameOID
import idna
from socket import socket
@dlenski
dlenski / bagcerts
Created July 17, 2018 03:56
Add "bag attributes" to a certificate chain
#!/bin/bash
#
# This script takes one or more x509 certificates in .PEM format (from
# stdin or files listed on command line) and adds helpful "bag
# attributes" before each certificate. This makes it easier for
# humans to identify the contents of the bundle.
#
# Requires (g)awk and openssl's x509 command line utility.
#
# Output fields included can be specified via openssl-x509 options:
@koshatul
koshatul / README.md
Last active August 18, 2025 14:36
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@Jongbhin
Jongbhin / check_cuda_cudnn.md
Last active November 4, 2024 22:28
[Cuda cudnn version check] #cuda #cudnn #nvidia

To check nvidia driver

modinfo nvidia

To check cuda version

cat /usr/local/cuda/version.txt
@catchdave
catchdave / install_check_mk_osx.sh
Last active February 10, 2025 11:53
Install check_mk agent on OSX
# Clone Repo
git clone https://github.com/ThomasKaiser/Check_MK.git
cd Check_MK
# Remove less common plugins
rm -f agents/plugins/monitor-jss-and-macos-updates agents/plugins/city-temperatures agents/plugins/monitor-kerio agents/plugins/smart*
# Install dependencies
brew install smartmontools osx-cpu-temp
@JohnRoux
JohnRoux / ZATech Freelancer Resources.md
Last active November 18, 2024 12:36
ZATech Freelancer Resources

Before you start freelancing:

John Roux

Are you a senior?

nuclearpengy

Before freelancing ask yourself:

Do you love doing admin? - rock solid admin can be the difference between a happy life and endless battles with SARS. Do you get work done whether or not anyone is asking you and do you currently manage your time well. Could you meet deadlines and get work done and still "have a life"? - When you're freelancing, no one is going to encourage you, motivate you, push you to be the best you can be, you need to want this for yourself.