Skip to content

Instantly share code, notes, and snippets.

View ychaouche's full-sized avatar

Yassine Chaouche ychaouche

View GitHub Profile
@koshatul
koshatul / sslCertSplit.sh
Created July 16, 2018 03:07
SSL CA bundle split and openssl on each certificate
#!/bin/bash
set +e
CA_BUNDLE="${1}"
shift
if [ ! -s "${CA_BUNDLE}" ]; then
echo "usage: ${0} <ca bundle file> [openssl commands]"
echo "example: ${0} ca-bundle.pem -noout -subject -issuer"
@cataska
cataska / gist:b1875754128853bfb139
Last active April 21, 2022 10:02
Emacs key binding alias
(defmacro defkbalias (old new)
`(define-key (current-global-map) ,new
(lookup-key (current-global-map) ,old)))
;; now "C-x -" equals to "C-x 2"
(defkbalias (kbd "C-x 2") (kbd "C-x -"))