Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
#!/usr/bin/env bash | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/architecture/build-ha-vpn-connections-google-cloud-aws | |
# - https://cloud.google.com/vpc/docs/private-service-connect | |
##################################################################### | |
export PROJECT_ID=$(gcloud config get-value project) | |
export PROJECT_USER=$(gcloud config get-value core/account) # set current user |
### Configure variables | |
These variables will be used for this snippet. Please substitute accordingly. | |
```bash | |
export RootCAName="root_ca" | |
export InterCAName="inter_ca" | |
export CommonName="hashidemos.io" | |
export InterCommonName="inter.hashidemos.io" | |
export Root_CA_ttl="730h" | |
export Inter_CA_ttl="350h" | |
export Cert_ttl="8h" |
global | |
daemon | |
nbproc 1 | |
user haproxy | |
group haproxy | |
log 127.0.0.1:514 local0 | |
pidfile /var/run/haproxy.pid | |
stats socket /var/run/haproxy.stat mode 777 | |
spread-checks 5 | |
ssl-default-bind-options no-sslv3 no-tls-tickets force-tlsv12 |
import jenkins.model.Jenkins | |
def numCancels = 0; | |
Jenkins.instance.getAllItems(Job.class).each{ | |
def job = it | |
for (build in job.builds) { | |
if (build.isBuilding()) { build.doStop(); numCancels++; } | |
} | |
} |
#!/usr/bin/env bash | |
# As root | |
# Make config and data dirs | |
mkdir /etc/composer -p || exit 1 | |
mkdir /var/lib/composer -p | |
# Set composer home dir to global location | |
cat << EOF > /etc/profile.d/composer.sh | |
#!/usr/bin/env bash |
# maximum capability of system | |
user@ubuntu:~$ cat /proc/sys/fs/file-max | |
708444 | |
# available limit | |
user@ubuntu:~$ ulimit -n | |
1024 | |
# To increase the available limit to say 200000 | |
user@ubuntu:~$ sudo vim /etc/sysctl.conf |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |