Setup foo,bar,baz boolean vars
zstyle ':example:foo' doit yes
zstyle ':example:bar' doit no
# leave baz unset
The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
Syncthing: https://syncthing.net/
Syncthing is a free, open-source peer-to-peer file synchronization application available for Windows, Mac, Linux, Android, Solaris, Darwin, and BSD. It can sync files between devices on a local network, or between remote devices over the Internet. Data security and data safety are built into the design of the software.
This is written using Linux Mint 21.2 x86_64 using kernel 5.15.0-89-generic.
I couldn't find good directions for doing this, so here we go.
package main | |
// ref: https://blog.golang.org/go-slices-usage-and-internals | |
// 1234 <-- digits | |
import ( | |
"fmt" | |
"io/ioutil" | |
"regexp" | |
) |
. | |
├── books | |
│ ├── handlers.go | |
│ └── models.go | |
├── config | |
│ └── db.go | |
└── main.go |
CREATE TABLE books ( | |
isbn char(14) NOT NULL, | |
title varchar(255), | |
author varchar(255), | |
price decimal(5,2) | |
); | |
INSERT INTO books (isbn, title, author, price) VALUES | |
('978-1503261969', 'Emma', 'Jayne Austen', 9.44), | |
('978-1514274873', 'Journal of a Soldier', NULL, 5.49), |
There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.
All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.
What do these lines do? Make predictions and then scroll down.
func print(pi *int) { fmt.Println(*pi) }
account default | |
host mail.messagingengine.com | |
port 587 | |
protocol smtp | |
auth on | |
from [email protected] | |
user [email protected] | |
password topsecretpassword! | |
tls on | |
tls_nocertcheck |
There are a number of good introductory SQL resources available for free and online. There are also some paid resources which I recommend for beginners, that are very effective, and well worth expensing in my opinion.
A couple of notes: