Skip to content

Instantly share code, notes, and snippets.

View anezjonathan's full-sized avatar

idoxtreme anezjonathan

View GitHub Profile
@anezjonathan
anezjonathan / mailer.conf
Created August 3, 2021 11:00 — forked from igalic/mailer.conf
disable sendmail on FreeBSD, completely.
# if with the below rc.conf and periodic.conf settings you somehow still see logs like
# Nov 28 03:01:00 webproxy sendmail[41991]: My unqualified host name (webproxy) unknown; sleeping for retry
# Nov 28 03:02:00 webproxy sendmail[41991]: unable to qualify my own domain name (webproxy) -- using short name
# Nov 28 03:56:50 webproxy sendmail[74256]: My unqualified host name (webproxy) unknown; sleeping for retry
# Nov 28 03:56:51 webproxy sendmail[87297]: My unqualified host name (webproxy) unknown; sleeping for retry
# Nov 28 03:57:51 webproxy sendmail[74256]: unable to qualify my own domain name (webproxy) -- using short name
# Nov 28 03:57:51 webproxy sendmail[87297]: unable to qualify my own domain name (webproxy) -- using short name
# we can kill it off like this:
@anezjonathan
anezjonathan / Makefile
Created August 3, 2021 10:54 — forked from igalic/Makefile
Makefile to create a root-ca, an intermediate signing CA. It can also be used to quickly create keys and Certificates and sign them with that intermediate CA. You should put the root-ca into your Trust Store (preferably as the only CA;) and make sure your programs validate it correctly.
root_DN = /CN=Esotericsystems Root Authority/C=AT/
issuing_DN = /CN=Esotericsystems Issuing Authority/C=AT/
passphrase:
echo -n changeme > $@
#
# Create param files, keys and Self-Signed Certificate for the Root CA
#
root-ca-dsa.param: passphrase

Create your own certificate authority

CA Key erstellen:

openssl genrsa -aes256 -out ca-key.pem 4096

CA erstellen:

openssl req -x509 -new -nodes -extensions v3_ca -key ca-key.pem -days 3650 -out ca-root.pem -sha512 -subj '/C=DE/ST=Hessen/L=Heusenstamm/O=OnkelDom/OU=Ops/CN=onkeldom.lan/[email protected]'
@igalic
igalic / mailer.conf
Last active March 22, 2023 12:45
disable sendmail on FreeBSD, completely.
# if with the below rc.conf and periodic.conf settings you somehow still see logs like
# Nov 28 03:01:00 webproxy sendmail[41991]: My unqualified host name (webproxy) unknown; sleeping for retry
# Nov 28 03:02:00 webproxy sendmail[41991]: unable to qualify my own domain name (webproxy) -- using short name
# Nov 28 03:56:50 webproxy sendmail[74256]: My unqualified host name (webproxy) unknown; sleeping for retry
# Nov 28 03:56:51 webproxy sendmail[87297]: My unqualified host name (webproxy) unknown; sleeping for retry
# Nov 28 03:57:51 webproxy sendmail[74256]: unable to qualify my own domain name (webproxy) -- using short name
# Nov 28 03:57:51 webproxy sendmail[87297]: unable to qualify my own domain name (webproxy) -- using short name
# we can kill it off like this:
@corny
corny / wireguard.yml
Created June 15, 2020 13:17
Wireguard with Ansible and networkd
---
- name: Install wireguard
apt: name=wireguard
- name: Read private key
slurp:
src: /etc/systemd/network/99-wg0.netdev
register: netdev
ignore_errors: yes
@kevinelliott
kevinelliott / 1-macOS-10.15-catalina-setup.md
Last active December 30, 2024 04:52
macOS 10.15 Catalina Mostly-Automated Setup

To support my open-source work, consider adding me on Patreon.

macOS 10.15 Catalina Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.15 Catalina.

Controversy

The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.

@felixqueisler
felixqueisler / Minimal 2019.alfredappearance
Created June 11, 2019 12:58
Alfred Theme Minimal 2019
{
"alfredtheme" : {
"result" : {
"textSpacing" : 5,
"subtext" : {
"size" : 10,
"colorSelected" : "#FEFFFEC4",
"font" : "System",
"color" : "#C6C6C665"
},
@ChrisTollefson
ChrisTollefson / Boot Camp Assistant - USB Install Disk.md
Last active April 24, 2025 04:53
Boot Camp Assistant - Enabling creation of bootable USB disks for installing Windows
@mmalone
mmalone / example.sh
Created February 12, 2019 22:14
Using `step certificate` without the online step CA
# Create a root certificate and signing key.
$ step certificate create "Root CA" root.crt root.key --profile root-ca
Please enter the password to encrypt the private key:
Your certificate has been saved in root.crt.
Your private key has been saved in root.key.
# Create an intermediate certificate & signing key. This isn't
# required; we could use the root to sign directly which is
# probably fine for local dev and removes the need to bundle later.
$ step certificate create "Intermediate CA" int.crt int.key --profile intermediate-ca --ca root.crt --ca-key root.key
#!/bin/sh
# XXX: 雑
mkdir -p ~/.piping
if [ "$1" = "-w" ]; then
mkfifo ~/.piping/"$2" || exit 1
cat > ~/.piping/"$2"
rm ~/.piping/"$2"
elif [ "$1" = "-r" ]; then
cat ~/.piping/"$2"