hon@hon.one hace 3 años
padre
commit
d605eb6a27
Se han modificado 5 ficheros con 29 adiciones y 9 borrados
  1. 3 1
      config/virt-cont/docker.md
  2. 4 6
      index.md
  3. 1 1
      se/general/web-security.md
  4. 1 1
      se/lang-plat/cuda.md
  5. 20 0
      se/lang-plat/go.md

+ 3 - 1
config/virt-cont/docker.md

@@ -35,7 +35,7 @@ Using **Debian**.
     - For local networks (not Swarm overlays), it defaults to pool `172.17.0.0/12` with `/16` allocations, resulting in a maximum of `2^(16-12)=16` allocations.
 1. (Recommended) Change default DNS servers for containers:
     - In `/etc/docker/daemon.json`, set `"dns": ["1.1.1.1", "2606:4700:4700::1111"]` (example using Cloudflare) (3 servers max).
-    - It defaults to `8.8.8.8` and `8.8.4.4` (Google).
+    - It defaults to `8.8.8.8` and `8.8.4.4` (Google)."userland-proxy": false
 1. (Optional) Change the logging options (JSON file driver):
     - It defaults to the JSON file driver with a single file of unlimited size.
     - Configured globally in `/etc/docker/daemon.json`.
@@ -43,6 +43,8 @@ Using **Debian**.
     - Set the max file size: `"log-opts": { "max-size": "10m" }`
     - Set the max number of files (for log rotation): `"log-opts": { "max-file": "5" }`
     - Set the compression for rotated files: `"log-opts": { "compress": "enabled" }`
+1. (Recommended) Disable the userland proxy (no longer recommended to use):
+    - In `/etc/docker/daemon.json`, set `"userland-proxy": false`.
 1. (Optional) Enable Prometheus metrics endpoint:
     - This only exports internal Docker metrics, not anything about the containers (use cAdvisor for that).
     - In `/etc/docker/daemon.json`, set `"experimental": true` and `"metrics-addr": "[::]:9323"`.

+ 4 - 6
index.md

@@ -145,14 +145,12 @@ Random collection of config notes and miscellaneous stuff. _Technically not a wi
 
 - [Database Management Systems (DBMSes)](/se/general/dbmses/)
 - [Software Licensing](/se/general/licensing/)
+- [Web Security](/se/general/security/)
 
-### HPC
-
-- [CUDA](/se/general/cuda/)
-
-### Web
+### Languages & Frameworks
 
-- [Web Security](/se/web/security/)
+- [CUDA](/se/lang-frame/cuda/)
+- [Go](/se/lang-plat/go/)
 
 ## Guides
 

+ 1 - 1
se/web/security.md → se/general/web-security.md

@@ -2,7 +2,7 @@
 title: Web Security
 breadcrumbs:
 - title: Software Engineering
-- title: Web
+- title: General
 ---
 {% include header.md %}
 

+ 1 - 1
se/hpc/cuda.md → se/lang-plat/cuda.md

@@ -2,7 +2,7 @@
 title: CUDA
 breadcrumbs:
 - title: Software Engineering
-- title: HPC
+- title: Languages & Platforms
 ---
 {% include header.md %}
 

+ 20 - 0
se/lang-plat/go.md

@@ -0,0 +1,20 @@
+---
+title: CUDA
+breadcrumbs:
+- title: Software Engineering
+- title: Languages & Platforms
+---
+{% include header.md %}
+
+## Useful Commands
+
+- Update dependencies (all modules): `go get -d -u ./...`
+    - `-u` to upgrade minor or patch versions of dependencies in `go.mod`.
+    - `-d` to download only, not build or install anything.
+    - Indirect dependencies are pinned.
+- Cleanup dependencies: `go mod tidy`
+    - Unused dependencies are removed from `go.mod`.
+- Lint (using `golint`): `golint ./...`
+- Build: `go build -o <binary> <main-file>`
+
+{% include footer.md %}