- local https://github.com/kubernetes-sigs/kind (or just use minikube if it works for you)
- cloud https://cloud.google.com/kubernetes-engine (for PersistentVolume and Ingress, I needed to try the real deal)
- practice environment: https://github.com/arush-sal/cka-practice-environment
[user] | |
name = Julien Bisconti | |
email = ****** | |
[core] | |
excludesfile = ~/.gitignore | |
pager = diff-so-fancy | less --tabs=1,5 -R | |
editor = /usr/bin/vim | |
[alias] | |
wow = log --all --graph --decorate --oneline --simplify-by-decoration |
Now and then, people ask me how to learn Go. Note that this is just my opinion, do what works for you.
The best book to learn Go and how to think in Go: https://www.gopl.io/
Don't worry about learning generics, learn the mindset and the standard library, it will save you hours of pain later.
Must read:
Every so often, you may find yourself needing to preserve a website in its current state. Whether this is in advance of a significant website change, general documentation, or the possibility that the site needs to be taken offline, it is a good idea to archive the site so that it is navigable locally and without the need for a server.
Introducing HTTrack HTTrack Website Copier will do just that, download a website to a local directory, build all the directories, get HTML, images, and other files from the server to your computer.
HTTrack has a GUI for Windows that works really well: http://www.httrack.com . You can also use this tool from the command line. See the following steps to archive websites using the HTTrack command line tools.
MacOS Installation: First, you will need to install HTTrack locally. On macOS, https://brew.sh/ is the package manager of choice (as opposed to MacPorts). Homebrew is simpler to set up but does require you
The start.sh
script is using kwok and Go.
To delete the cluster: kowkctl delete cluster --name fake
func badgedl(pct float64) error { | |
color := "" | |
switch { | |
case pct < 50: | |
color = "orange" | |
case pct < 60: | |
color = "yellow" | |
case pct < 70: | |
color = "yellowgreen" | |
case pct < 80: |
package main | |
import ( | |
"bytes" | |
"crypto/ecdsa" | |
"crypto/elliptic" | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" |
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/docker/docker/api/types" | |
"github.com/docker/docker/client" | |
) |
<scheme name="Kant Dark" version="142" parent_scheme="Darcula"> | |
<option name="FONT_SCALE" value="1.0" /> | |
<metaInfo> | |
<property name="created">2022-12-24T19:40:03</property> | |
<property name="ide">GoLand</property> | |
<property name="ideVersion">2022.3.1.0.0</property> | |
<property name="modified">2022-12-24T19:40:11</property> | |
<property name="originalScheme">Kant Dark</property> | |
</metaInfo> | |
<option name="LINE_SPACING" value="1.2" /> |
package testutils | |
import "testing" | |
func equal[T comparable](a, b T) bool { | |
return a == b | |
} | |
func Equal[T comparable](t *testing.T, expected, actual T) { | |
if !equal(expected, actual) { |