Como Instalar e Usar o Docker no Ubuntu 18.04 PostedNovember 16, 2018 113.3k views DockerUbuntu 18.04
By Brian Hogan
Become an author
Uma versão anterior deste tutorial foi escrita por finid.
"Weeks of programming can save you hours of planning." - A Harckernews pt-BR "Semanas de programação podem te economizar horas de planejamento" - Hackernews
How to Optimize MySQL Queries for Speed and Performance | |
original url: https://dzone.com/articles/how-to-optimize-mysql-queries-for-speed-and-perfor | |
In this guide, we will take you through the steps of optimizing SQL queries and databases on your Alibaba Cloud Elastic Compute Service (ECS) instance. This will guarantee stability, scalability, reliability and speed of applications and websites running on your Alibaba Cloud instance. | |
Prerequisites | |
A valid Alibaba cloud account. If you don't have one already, you can sign up for an Alibaba Cloud and enjoy $300 worth in Free Trial. | |
A server running your favorite operating system that can support MySQL (e.g. Ubuntu, Centos, Debian). | |
MySQL database server. |
Monday, June 29, 2015 | |
The Distributed System ToolKit: Patterns for Composite Containers | |
Having had the privilege of presenting some ideas from Kubernetes at DockerCon 2015, I thought I would make a blog post to share some of these ideas for those of you who couldn’t be there. | |
Over the past two years containers have become an increasingly popular way to package and deploy code. Container images solve many real-world problems with existing packaging and deployment tools, but in addition to these significant benefits, containers offer us an opportunity to fundamentally re-think the way we build distributed applications. Just as service oriented architectures (SOA) encouraged the decomposition of applications into modular, focused services, containers should encourage the further decomposition of these services into closely cooperating modular containers. By virtue of establishing a boundary, containers enable users to build their services using modular, reusable components, and this in turn leads to services |
git credential-manager uninstall | |
git credential-manager install | |
You can configure an individual repo to use a specific user / email address | |
which overrides the global configuration. From the root of the repo, run | |
git config user.name "Your Name Here" | |
git config user.email [email protected] |
When altering the MySQL configuration, be alert to the changes and how they affect your database. Even when following the instructions of programs such as MySQLTuner, it is best to have some understanding of the process.
The MySQL configuration file stored in the following location: /etc/mysql/my.cnf.
Note
Prior to updating your MySQL configuration, create a backup of the my.cnf file:
cp /etc/mysql/my.cnf ~/my.cnf.backup
#!/bin/bash | |
docker exec running-container-id sh -c 'exec mysqlcheck -uroot -p"$MYSQL_ROOT_PASSWORD" nome-banco' |
package main | |
import ( | |
"fmt" | |
"bytes" | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"time" |
func serveReverseProxy(target string, res http.ResponseWriter, req *http.Request) { | |
//parse the url | |
url, err := url.Parse(target) | |
if err != nil { | |
panic(err.Error()) | |
} | |
//create de reverse proxy | |
proxy := httputil.NewSingleHostReverseProxy(url) | |
//Update the headers to allow for SSL redirection |
INSERT INTO tabelaDestino | |
SELECT null, campo1, campo2, CURRENT_TIMESTAMP, alias1.campoA | |
FROM tabelaOrigem | |
INNER JOIN tabelaRelacionada1 alias1 ON alias1.id = alias2.fk_id | |
WHERE | |
alias1.active = true | |
; |