Get Golang version: https://golang.org/dl/
wget https://dl.google.com/go/go1.11.1.linux-amd64.tar.gz
tar -xvf go1.11.1.linux-amd64.tar.gz
sudo mv go /usr/local
Get Golang version: https://golang.org/dl/
wget https://dl.google.com/go/go1.11.1.linux-amd64.tar.gz
tar -xvf go1.11.1.linux-amd64.tar.gz
sudo mv go /usr/local
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: user-log-reader | |
namespace: default | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- pods |
disable_cache = true | |
disable_mlock = true | |
ui = true | |
listener "tcp" { | |
address = "0.0.0.0:8200" | |
tls_disable = 0 | |
tls_cert_file = "/etc/letsencrypt/live/vault.example.com/fullchain.pem" | |
tls_key_file = "/etc/letsencrypt/live/vault.example.com/privkey.pem" | |
} | |
storage "file" { |
[Unit] | |
Description=vault service | |
Requires=network-online.target | |
After=network-online.target | |
ConditionFileNotEmpty=/etc/vault/config.json | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/vault | |
Environment=GOMAXPROCS=2 | |
Restart=on-failure |
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: log-reader
namespace: default
rules:
- apiGroups:
- ""
resources:
#!/bin/bash | |
# This is not an official Google product. | |
# Copyright 2016 Google Inc. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
INNER JOIN: returns rows when there is a match in both tables.
LEFT JOIN / LEFT OUTER JOIN: returns all rows from the left table, even if there are no matches in the right table.
RIGHT JOIN / RIGHT OUTER JOIN: returns all rows from the right table, even if there are no matches in the left table.
FULL JOIN / FULL OUTER JOIN / OUTER JOIN: returns rows when there is a match in one of the tables.
SELF JOIN: is used to join a table to itself, as if the table were two tables, temporarily renaming at least one table in the SQL statement.
<?php | |
$x = 0.0001; | |
for ($i = 0; $i <= 1000000; $i++) { | |
$x += sqrt($x); | |
} | |
echo "OK!"; | |
?> |
Error message
could not create lock file "postmaster.pid": Permission denied
HINT: The file seems accidentally left over, but it could not be removed. Please remove the file by hand and try again. postmaster.pid
Solution
image: docker:latest | |
variables: | |
REPOSITORY_URL: <AWS ACCOUNT ID>.dkr.ecr.eu-central-1.amazonaws.com/<ECS REPOSITORY NAME> | |
REGION: eu-central-1 | |
TASK_DEFINTION_NAME: <TASK DEFINITION NAME> | |
CLUSTER_NAME: <CLUSTER NAME> | |
SERVICE_NAME: <SERVICE NAME> | |
services: |