Source: https://askubuntu.com/a/465679
$ echo 'en_US' > ~/.config/user-dirs.locale
$ LANG=C xdg-user-dirs-update --forceSource: https://askubuntu.com/a/465679
$ echo 'en_US' > ~/.config/user-dirs.locale
$ LANG=C xdg-user-dirs-update --forceEdit file:
$ sudo nano /etc/default/grubSet (update) next values:
GRUB_DEFAULT=0| package syncmap | |
| import "sync" | |
| // SyncMap is like a Go sync.Map but type-safe using generics. | |
| // | |
| // The zero SyncMap is empty and ready for use. A SyncMap must not be copied after first use. | |
| type SyncMap[K comparable, V any] struct { | |
| mu sync.Mutex | |
| m map[K]V |
| package rpc | |
| type ( | |
| API struct{} | |
| LivenessArgs struct{} | |
| LivenessReply struct{ Ok bool } | |
| ) | |
| // NewAPI returns a new API instance. |
| $ gsettings get org.gnome.desktop.interface color-scheme | |
| # default | |
| $ gsettings set org.gnome.desktop.interface color-scheme prefer-dark |
| # GitLab CI help: <https://docs.gitlab.com/ee/ci/yaml/> | |
| # GitLab environments: <https://docs.gitlab.com/ee/ci/variables/> | |
| variables: | |
| GITLAB_IMAGE: $CI_REGISTRY_IMAGE | |
| GITHUB_IMAGE: ... | |
| stages: | |
| - build |
Small, dependency-free Go helper to discover your machine’s public IPv4 quickly and reliably. It races three strategies under a short overall timeout and returns the first winner:
myip.opendns.com A lookup via OpenDNS resolvers)o-o.myaddr.l.google.com via Google authoritative NS)Each strategy is isolated with short dial/read timeouts and early cancellation. You can supply your own resolvers and tweak the overall budget via functional options.
| // Package serverTiming implements a small Server-Timing middleware and helpers to measure named timings during HTTP | |
| // request handling and emit them as the `Server-Timing` response header as specified by the Performance API. | |
| package serverTiming | |
| import ( | |
| "bufio" | |
| "context" | |
| "errors" | |
| "fmt" | |
| "maps" |