Skip to content

Instantly share code, notes, and snippets.

View airtonGit's full-sized avatar

Airton F Sauer Oliveira airtonGit

View GitHub Profile
@airtonGit
airtonGit / router.cfg
Last active November 16, 2023 00:25 — forked from marfillaster/router.cfg
MikroTik RouterOS v7 dual DHCP WAN recursive failover w/ PCC load-balancing; and recursive ECMP
# feb/11/2022 11:00:55 by RouterOS 7.2rc3
# software id = 9QK9-C798
#
# model = RB5009UG+S+
# serial number = XXXXXXXXXX
/ip settings set allow-fast-path=no
/interface bridge add admin-mac=FF:FF:FF:FF:FF:FF auto-mac=no name=bridge
Value Description Reference
100 Continue [RFC7231, Section 6.2.1]
101 Switching Protocols [RFC7231, Section 6.2.2]
102 Processing [RFC2518]
103 Early Hints [RFC8297]
104-199 Unassigned
200 OK [RFC7231, Section 6.3.1]
201 Created [RFC7231, Section 6.3.2]
202 Accepted [RFC7231, Section 6.3.3]
// Utilizador pode chamar passando qualquer objeto que implemente io.Writer, inclusive os.File
func escreverInfo(destino io.Writer){
(…)
}
// Utilizador é obrigado a chamar com parametro *os.File
func escreverInfo(destino *os.File){
(…)
}
// continuação, exemplo de uso de MsgOla
func enviaMsg(msg IMsgBasica){
(…)
}
//criando objeto MsgOla
msg := &MsgOla{}
msg.SetTexto("Olá duck typing!")
// msg é aceito pela interface IMsgBasica por duck typing
enviaMsg(msg)
// Exemplo em GO
type IMsgBasica interface{
SetTexto(valor string)
}
// Exemplo de objeto
type MsgOla struct{
(…)
}
// Ao definir este método MsgOla "se parece" com IMsgBasica
// logo implementa a interface e poderá ser utilizada
// Exemplo em Java
void enviaMsg(IMsgBasica msg){
// quem precisar chamar este método deve fornecer como
// parâmetro algum objeto que implemente a
// interface IMsgBasica
}
// Exemplo de objeto necessário
class MsgOla implements IMsgBasica{
(…)
}
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql

video: https://youtu.be/8EXS9wR0VRc

A lean organization understands customer value and focuses its key processes to continuously increase it. The ultimate goal is to provide perfect value to the customer through a perfect value creation process that has zero waste.

To accomplish this, lean thinking changes the focus of management from optimizing separate technologies, assets, and vertical departments to optimizing the flow of products and services through entire value streams that flow horizontally across technologies, assets, and departments to customers.

Eliminating waste along entire value streams, instead of at isolated points, creates processes that need less human effort, less space, less capital, and less time to make products and services at far less costs and with much fewer defects, compared with traditional business systems. Companies are able to respond to changing customer desires with high variety, high quality, low cost, and with very fast throughput times. Also, information management becom