Skip to content

Instantly share code, notes, and snippets.

View akhan3's full-sized avatar

Aamir Khan akhan3

View GitHub Profile
@akhan3
akhan3 / curl-ca.md
Created October 8, 2021 13:31 — forked from olih/curl-ca.md
Curl with custom CA certificates

Using curl with custom CA certificates

This document describes how to use curl with both custom and official CA SSL certificates.

Prerequisite

You would need first to install curl , see http://curl.haxx.se/docs/install.html. Using a package manager such as yum, brew, ... for your platform should be the easiest though.

Example for Mac OS:

@akhan3
akhan3 / show_cterm_256_colors.sh
Created June 26, 2020 16:31
256 colors in terminal
#!/bin/bash
for i in {0..255} ; do
printf "\x1b[38;5;${i}mcolour${i} "
if [ $((i % 24)) -eq 0 ]; then
echo;
fi
done