Skip to content

Instantly share code, notes, and snippets.

View spurgeonbj's full-sized avatar
🏠
Working from home

Spurgeon spurgeonbj

🏠
Working from home
  • India
View GitHub Profile
@mfdj
mfdj / wildcard_ssl_certificate.sh
Last active October 29, 2022 11:08
Bash script that uses openssl to generate a wildcard certificate suitable for use in a local testing environment: not vetted for a production/public internet purposes. Usage: `$ ./wildcard.sh yourdomain.local` — generates a private key, certificate request, and ssl certificate.
#!/usr/bin/env bash
DOMAIN=$1
if [ -z "$DOMAIN" ]; then
echo -n 'Enter root domain (no www): '
read input_d
DOMAIN=$input_d
fi
@jonatasnona
jonatasnona / gist:2625083
Created May 7, 2012 00:07
APT: Removing broken packages in a bad inconsistent state
# rm /var/lib/dpkg/info/flashplugin-nonfree.prerm
# dpkg --remove --force-remove-reinstreq <package>
@zspine
zspine / countries.csv
Last active May 30, 2024 00:48
Country Code, ISO and Nationality ( Please use https://mledoze.github.io/countries/ )
CCA2 Name CCA3 Nationality
AD Andorra AND Andorran
AE United Arab Emirates ARE Emirati
AF Afghanistan AFG Afghan
AG Antigua and Barbuda ATG Antiguan, Barbudan
AI Anguilla AIA Anguillian
AL Albania ALB Albanian
AM Armenia ARM Armenian
AN Netherlands Antilles ANT Dutch
AO Angola AGO Angolan