Skip to content

Instantly share code, notes, and snippets.

@LubinLew
LubinLew / Create CA and CA-Signed Certificates.md
Last active July 2, 2024 01:28
Create CA and CA-Signed Certificates

Create CA and CA-Signed Certificates


Create CA

#!/bin/bash
set -e
cd `dirname $0`
##########################################################
@LubinLew
LubinLew / gin-client-cert-verify.md
Last active February 5, 2023 02:19
Go-gin Client Certificate Verification

Go-gin Client Certificate Verification

1. Generate Certs

mkdir -p certs/{CA,server,client}
cd certs

### CA
@LubinLew
LubinLew / install_apache_artemis.sh
Created May 7, 2024 13:39
Install Apache Artemis(MQTT Broker)
#!/bin/bash
set -e
cd `dirname $0`
##################################################################
ARTEMIS_VERSION="2.33.0"
ARTEMIS_FILE="apache-artemis-$ARTEMIS_VERSION-bin.tar.gz"
ARTEMIS_HOME="/opt/apache-artemis-${ARTEMIS_VERSION}"
#!/bin/bash
set -e
cd `dirname $0`
###########################################
PAHO_VERSION="1.1.0"
PAHO_GZFILE="v${PAHO_VERSION}.tar.gz"
PAHO_DIR="paho.mqtt.embedded-c-${PAHO_VERSION}"
# download
@LubinLew
LubinLew / install_python2.md
Created June 3, 2024 06:58
Install Python2
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
sudo tar xzf Python-2.7.18.tar.xz
cd Python-2.7.18
./configure --enable-optimizations
 make altinstall
@LubinLew
LubinLew / vmware_share.md
Created June 23, 2024 01:07
VMware Shared Folder
mkdir -p /mnt/hgfs

cat >> /etc/fstab <<EOF
vmhgfs-fuse /mnt/hgfs  fuse defaults,allow_other,_netdev   0   0                        
EOF

mount -a