Skip to content

Instantly share code, notes, and snippets.

{
"id": "45c0996e-ac5e-4271-80e1-a09a16391a27",
"name": "Sonoff Mini",
"values": [
{
"key": "sonoff_ip",
"value": "10.0.1.32",
"enabled": true
},
{
{
"id": "45c0996e-ac5e-4271-80e1-a09a16391a27",
"name": "Sonoff Mini",
"values": [
{
"key": "sonoff_ip",
"value": "10.0.1.32",
"enabled": true
},
{
@Jeimerson
Jeimerson / Self-Signed SSL with SAN.md
Created February 6, 2025 08:35 — forked from KeithYeh/Self-Signed SSL with SAN.md
Create self-signed SSL certificate with SubjectAltName(SAN)

How to create a self-signed SSL Certificate with SubjectAltName(SAN)

After Chrome 58, self-signed certificate without SAN is not valid anymore.

Step 1: Generate a Private Key

openssl genrsa -des3 -out example.com.key 2048

Step 2: Generate a CSR (Certificate Signing Request)

@Jeimerson
Jeimerson / pg-fail2ban.md
Created November 29, 2024 21:33 — forked from rc9000/pg-fail2ban.md
postgres fail2ban configuration with user locking
@Jeimerson
Jeimerson / freepbx-asterisk11-install-g729-g723-codec.sh
Last active November 20, 2024 10:41 — forked from troykelly/freepbx-asterisk14-install-g729-g723-codec.sh
Install free G729 and G723 codec on FreePBX running Asterisk 14
#!/usr/bin/env bash
# This is for x64 Intel CPU with SSSE4 instructions
# To check your CPU type, run: cat /proc/cpuinfo and look for "sse4_1" in the "flags" line then this script works
# To check x32 vs x64, run: getconf LONG_BIT
# If your CPU isnt an x64 or have sse4 support, then get your .so file version at: http://asterisk.hosting.lv/
# Tested on Centos x64 - on a FreePBX Distro 13 x64
echo -------
echo This installs the open source version of the g729 and g723.1 codecs
echo You may need to buy licenses to use these codecs - it is your responsibility.
echo -------
@Jeimerson
Jeimerson / Export RHV to QCOW2.md
Created January 11, 2024 11:06 — forked from williamcaban/Export RHV to QCOW2.md
Customizing and Expanding QCOW2 Images

Export RHV/Ovirt VM to qcow2 format

  1. Configure export domain in RHV or Ovirt

  2. Export the VM to the export domain. A new directory with the vdisk uuid will be created and the VM will be exported to it.

    • A sample export /exportfs/export_domain/<vdisk_uuid>/images/<disk_id>
  3. Mount the export domain ito a Linux mcahine and go into the <vdisk_uuid>/images

  4. In the folder there iwll be a file with a uuid representing the <disk_id> and a meta file

  5. Use qemu-img convert to convert to qcow2 format

mkdir /tmp/update
#update the host
hbsd-update -t /tmp/update -T
#update the jail
hbsd-update -t /tmp/update -DT -r /usr/jails/jail-01
hbsd-update -t /tmp/update -DT -r /usr/jails/jail-02
@Jeimerson
Jeimerson / .vimrc
Created March 13, 2023 01:12 — forked from lattera/.vimrc
vimrc for FreeBSD development
" Modeline and Notes {
" vim: set foldmarker={,} foldlevel=0 spell:
" }
" Basics {
set nocompatible " explicitly get out of vi-compatible mode
set noexrc " don't use local version of .(g)vimrc, .exrc
set background=dark " we plan to use a dark background
set cpoptions=aABceFsmq
" |||||||||
@Jeimerson
Jeimerson / 000-HAproxy-Varnish-Apache-Wordpress-Letsencrypt
Created March 9, 2023 00:43 — forked from sys0dm1n/000-HAproxy-Varnish-Apache-Wordpress-Letsencrypt
HAproxy, Varnish and Apahce configuration files compatible for Wordpress with Apache webserver with Let's Encrypt
Configuration files to setup Wordpress with Apache2 webserver, Varnish caching server and HAproxy for loadbalancing with support for Lets Encrypt
@Jeimerson
Jeimerson / haproxy.wordpress-over-https.cfg
Created March 6, 2023 16:42 — forked from drmalex07/haproxy.wordpress-over-https.cfg
Example configuration for wordpress under HAProxy
## Frontend
frontend http-in
bind 0.0.0.0:80
reqadd X-Forwarded-Proto:http
acl host-is-foo hdr(host) -i foo.example.com www.foo.example.com