- Make sure mysql-client is installed. If not, then :
sudo apt install mysql-client
or
sudo apt-get install mysql-client
- Open php.ini
; PHP's default character set is set to UTF-8.
#!/bin/bash | |
# Author: kenshin17 | |
# OS: Centos 7 | |
# Description: Script install NDP Proxy Daemon, active full subnet ipv6. | |
IPv6SUBNET="xxxx:xxxx:xxxx:xxxx::/64" | |
echo "######################## CONFIG SYSCTL #########################" | |
echo "net.ipv6.conf.all.accept_ra = 2" >> /etc/sysctl.conf | |
echo "net.ipv6.conf.eth0.accept_ra = 2" >> /etc/sysctl.conf |
FROM php:7.4-fpm-alpine | |
WORKDIR /var/www/html | |
# Setup GD extension | |
RUN apk add --no-cache \ | |
freetype \ | |
libjpeg-turbo \ | |
libpng \ | |
freetype-dev \ |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
#!/usr/bin/env bash | |
NODESAPI=/api/v1/nodes | |
function getNodes() { | |
kubectl get --raw $NODESAPI | jq -r '.items[].metadata.name' | |
} | |
function getPVCs() { | |
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\ |
sudo apt install mysql-client
or
sudo apt-get install mysql-client
; PHP's default character set is set to UTF-8.
# | |
# Name: nginx-tls.conf | |
# Auth: Gavin Lloyd <gavinhungry@gmail.com> | |
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
# | |
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
# to SSL/TLS are not included here. | |
# | |
# Additional tips: | |
# |
acl httponly_cookie res.hdr(Set-Cookie),lower -m sub httponly | |
rspirep ^(set-cookie:.*) \1;\ HttpOnly if !httponly_cookie |
#!/bin/bash | |
# File : compile-postgreSQL-11.5-Ubuntu-16.04.LTS.sh | |
# OS : Ubuntu 16.04.6 LTS | |
# LastUpdate : 10:06 2019.10.07 | |
# Description : Compile PostgreSQL 11.5 on Ubuntu | |
########################################### | |
##POSTGRESQL : /postgres/pgscript/postgres-stop.sh | /postgres/pgscript/postgres-restart.sh <<<<<RESTART>>>>> | |
# | CONFIG FILE : /postgres/pgdata/{postgresql.conf,pg_hba.conf} | |
# | CONNECT DBA : /postgres/pgscript/postgres-connect-dba.sh |