Skip to content

Instantly share code, notes, and snippets.

@dmerner
dmerner / ipmi-updater.py
Last active May 4, 2023 13:10 — forked from HQJaTu/ipmi-updater.py
Supermicro IPMI certificate updater
#!/usr/bin/env python3
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python
# This file is part of Supermicro IPMI certificate updater.
# Supermicro IPMI certificate updater is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
@Fastidious
Fastidious / mobileconfig-letsencrypt.md
Created November 3, 2018 01:14
Sign mobileconfig files with Letsencrypt
#!/bin/bash

certs="/etc/letsencrypt/live/myersnet.net"

openssl smime \
    -sign \
    -signer ${certs}/cert.pem \
    -inkey ${certs}/privkey.pem \
 -certfile ${certs}/chain.pem \
@HQJaTu
HQJaTu / ipmi-updater.py
Last active April 22, 2024 19:00
Supermicro IPMI certificate updater
#!/usr/bin/env python3
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python
# This file is part of Supermicro IPMI certificate updater.
# Supermicro IPMI certificate updater is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
@t4sk
t4sk / wif.md
Last active August 1, 2023 20:15
How to convert private key to WIF

How to convert private key to WIF

0. Overview

WIF = base58check encode ([version byte][private key][checksum])

version byte = 80 for mainnet, ef for testnet and regtest

checksum = first 4 bytes of double SHA256 of private key
@mdpuma
mdpuma / Integrate rspamd with cpanel
Last active April 25, 2024 14:01
Integrate rspamd with cpanel
* go to whm -> exim configuration manager
* choose advanced editor
* search spamd & replace with this:
spamd_address = 127.0.0.1 11333 variant=rspamd
set smtputf8_advertise_hosts = *
* find and disable greylisting block
* find and disable acl_smtp_data:default_check_message_pre
@magnetikonline
magnetikonline / README.md
Last active June 24, 2018 13:30
Cancel Ubuntu Grub2 menu after failed boot/shutdown.

Cancel Ubuntu Grub2 menu after failed boot/shutdown

Use the following values in /etc/default/grub:

GRUB_HIDDEN_TIMEOUT=2
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_RECORDFAIL_TIMEOUT=2