Build Go Docker containers:
- https://hasura.io/blog/the-ultimate-guide-to-writing-dockerfiles-for-go-web-apps-336efad7012c/
- https://github.com/shahidhk/go-docker
Project with Makefile:
Go Modules:
Build Go Docker containers:
Project with Makefile:
Go Modules:
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": "sts:AssumeRole", | |
"Principal": { | |
"Service": "ec2.amazonaws.com" | |
}, | |
"Effect": "Allow", | |
"Sid": "" |
Double check that security_driver = "none"
is uncommented in /etc/libvirt/qemu.conf
and restart sudo systemctl restart libvirtd
for permission denied issue
cd /tmp/
mkdir -p ~/.local/share/terraform/plugins/registry.terraform.io/dmacvicar/libvirt/0.6.2/linux_amd64
wget https://github.com/dmacvicar/terraform-provider-libvirt/releases/download/v0.6.2/terraform-provider-libvirt-0.6.2+git.1585292411.8cbe9ad0.Ubuntu_18.04.amd64.tar.gz
tar -xvf terraform-provider-libvirt-0.6.2+git.1585292411.8cbe9ad0.Ubuntu_18.04.amd64.tar.gz
mv ./terraform-provider-libvirt ~/.local/share/terraform/plugins/registry.terraform.io/dmacvicar/libvirt/0.6.2/linux_amd64/
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: color | |
labels: | |
name: color | |
--- | |
kind: Deployment | |
apiVersion: apps/v1 | |
metadata: |
From:
Service Account:
# spinnaker-service-account.yml
apiVersion: v1
kind: ServiceAccount
Pritunl's letsencrypt cerificate expired and trying to access pritunl's ui presented a NET::ERR_CERT_INVALID
error and for some reason you cant bypass it. While I couldnt restart the server at that time, I had to look at a way to access the UI to change the web domain to convert the SSL termination to a Load Balancer.
Thanks to this post: https://stackoverflow.com/questions/58802767/no-proceed-anyway-option-on-neterr-cert-invalid-in-chrome-on-macos you can do:
I am tinkering around with databases and want to make notes of performance optimizations by adding indexes.
I have 2 tables:
mysql> show tables;
+----------------------+
| Tables_in_customerdb |
+----------------------+
Related:
import requests
import json
def get_top_ten():
ids = requests.get('https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty').json()[0:10]
for id in ids: