Simple example of a Go function that uses generics and takes a string or slice of strings as arguments.
foo("Hello, world")
foo([]string{"Hello, world", "こんにちは、世界"})| package main | |
| import "fmt" | |
| // View it online: https://go.dev/play/p/GUuSXWcLUZ- | |
| func main() { | |
| // IEEE 754 | |
| a := 0.1 | |
| b := 0.2 |
| #!/bin/sh | |
| USER_NAME_LOGIN="keinos" | |
| USER_NAME_FULL="KEINOS" | |
| USER_SSH_KEY_URL="https://github.com/KEINOS.keys" | |
| # --------------------------------------------------------------- | |
| # Set repository mirror to the closest | |
| # --------------------------------------------------------------- | |
| # Detect and add fastest mirror and enable the community repo |
The below list is the diff of apk list --installed between before and after apk add chromium firefox.
alsa-lib-1.2.9-r3
aom-libs-3.6.1-r0
at-spi2-core-2.48.3-r0
avahi-libs-0.8-r13
brotli-libs-1.0.9-r15
cairo-1.17.8-r2
cairo-gobject-1.17.8-r2This gist explains how to reboot the NanoPi NEO2 NAS before the CPU temperature rises too high and the device crashes.
$ sudo crontab -l
# Check CPU temperature every 30 min (reboot if over 70°C)
*/30 * * * * /root/cron_jobs/onheat_reboot.sh > /root/cron_jobs/onheat_reboot.log 2>&1steps:
- uses: actions/checkout@v3This gist repository is an example of a Gistargazer API ID file deployment.
42f5f23053ab59ca480f480b8d01e1fd") is the Gistargazer API user ID.https://gist.githubusercontent.com///raw/gistargazer.jsonHardware information to prepare for Linux migration before Apple support ends.
$ date -R
Mon, 15 May 2023 08:41:18 +0900
$ sw_vers
ProductName: macOS
ProductVersion: 12.6.5
BuildVersion: 21G531