lesstif.com 은 SPKI 를 추출할 사이트 주소로 변경
openssl s_client -servername lesstif.com -connect lesstif.com:443 | \
openssl x509 -pubkey -noout | \
openssl rsa -pubin -outform der | \
openssl dgst -sha256 -binary | \
#!/usr/bin/env bash | |
# list of users create DB | |
users="jira confluence bitbucket bamboo jsm" | |
for u in ${users}; do | |
createuser ${u} --createdb --no-superuser --no-createrole; | |
createdb ${u}db -O ${u} --encoding='UTF-8' --locale=en_US.UTF-8 --template=template0; | |
done; |
PASSWORD1 # Replace literal string 'PASSWORD1' with '***REMOVED***' (default) | |
PASSWORD2==>examplePass # replace with 'examplePass' instead | |
PASSWORD3==> # replace with the empty string | |
regex:password=\w+==>password= # Replace, using a regex | |
regex:\r(\n)==>$1 # Replace Windows newlines with Unix newlines |
# === Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers) === | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated February 2021 ~ | |
# | |
# | |
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
# |
#!/usr/bin/env bash | |
## | |
REPOS_FILES="AppStream BaseOS" | |
PARAM="hn" | |
#KAKAO="mirror.kakao.com\/centos" | |
NAVER="mirror.navercorp.com\/rocky" |
#!/usr/bin/env bash | |
BASE_REPOS=/etc/yum.repos.d/CentOS-Linux-BaseOS.repo | |
PARAM="r:hkn" | |
KAKAO="mirror.kakao.com\/centos" | |
NAVER="mirror.navercorp.com\/centos" | |
if [ "$(id -u)" != "0" ]; then | |
echo "'$0' must be run as root" 1>&2 |
<?php | |
$string = 'hello'; | |
$en_str = phpseclib_mcrypt_encrypt(MCRYPT_3DES, $secretKey, $string, MCRYPT_MODE_ECB); | |
dump(bin2hex($en_str)); | |
$de_str = phpseclib_mcrypt_decrypt(MCRYPT_3DES, $secretKey, $en_str, MCRYPT_MODE_ECB); |
#!/bin/bash | |
VERS="70 71 72 73 74 80" | |
PKGS="php72 php72-php-bcmath php72-php-cli php72-php-common php72-php-gd \ | |
php72-php-gmp php72-php-intl php72-php-json php72-php-mbstring \ | |
php72-php-mysqlnd php72-php-pdo php72-php-sodium \ | |
php72-php-xml php72-runtime php72-php-fpm php72-php-process \ | |
php72-php-pecl-igbinary php72-php-pecl-redis5 php72-php-pecl-zip " |
## copy from https://gist.github.com/cdekkerpossibilit/d023602c29fdf039c7eabadf64f708e9 | |
function Confirm-Choice { | |
param ( | |
[string]$Message | |
) | |
$yes = new-Object System.Management.Automation.Host.ChoiceDescription "&Yes","Yes"; | |
$no = new-Object System.Management.Automation.Host.ChoiceDescription "&No","No"; | |
$choices = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no); | |
$answer = $host.ui.PromptForChoice("", $message, $choices, 1) | |
server { | |
listen 80; | |
server_name gitlab.example.com; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name gitlab.example.com; |