See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
# Source: https://gist.github.com/808108069f709572f1bc372c65f6b5c0 | |
########### | |
# Prepare # | |
########### | |
# Option 1: | |
# Create a Kubernetes cluster | |
# Install NGINX Ingress | |
# Install Argo CD |
# Source: https://gist.github.com/84324e2d6eb1e62e3569846a741cedea | |
#################### | |
# Create a Cluster # | |
#################### | |
minikube start | |
############################# | |
# Deploy Ingress Controller # |
package main | |
import ( | |
"encoding/xml" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"strings" |
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"sync" | |
"syscall" | |
"time" |
# Based on http://fearby.com/article/update-openssl-on-a-digital-ocean-vm/ | |
$ sudo apt-get update | |
$ sudo apt-get dist-upgrade | |
$ wget ftp://ftp.openssl.org/source/openssl-1.0.2j.tar.gz # Check the last version | |
$ tar -xvzf openssl-1.0.2h.tar.gz | |
$ cd openssl-1.0.2h | |
$ ./config --prefix=/usr/ | |
$ make depend |
// Crear un programa que declare dos funciones anónimas. Una que cuente del 0 al 200 y otra que cuente de 200 a 0. | |
// Mostrar cada número con un identificador único para cada goroutine. | |
// Crear goroutines a partir de estas funciones. | |
// No permitir que main regrese hasta que ambas goroutines hayan terminado de correr. | |
// https://play.golang.org/p/wjhbcgFg-g | |
package main | |
// Agregar imports. |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"sync" |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net" | |
"regexp" | |
"strconv" | |
) |