update - Commit f41b61bb - notes
| skipped 80 lines |
81 | 81 | | |
82 | 82 | | # Format used to generate links between notes. |
83 | 83 | | # Either "wiki", "markdown" or a custom template. Default is "markdown". |
84 | | - | link-format = "markdown" |
| 84 | + | link-format = "wiki" |
85 | 85 | | # Indicates whether a link's path will be percent-encoded. |
86 | 86 | | # Defaults to true for "markdown" format and false for "wiki" format. |
87 | 87 | | #link-encode-path = true |
| skipped 113 lines |
| skipped 34 lines |
35 | 35 | | |
36 | 36 | | ## Important Links |
37 | 37 | | |
| 38 | + | - [[4eaa7d83]] |
| 39 | + | |
| 40 | + | ### External |
| 41 | + | |
38 | 42 | | - [BalenaOS Device Manifest Viewer](https://balenaos-manifest.balena.io/) |
39 | 43 | | |
40 | 44 | | ## SD Card Recommendations |
| skipped 3 lines |
| 1 | + | --- |
| 2 | + | title: Code Snippets |
| 3 | + | date: March 02, 2022 |
| 4 | + | tags: |
| 5 | + | - work |
| 6 | + | - code |
| 7 | + | - snippets |
| 8 | + | --- |
| 9 | + | |
| 10 | + | #### Stop and remove all balena containers on a balena device |
| 11 | + | |
| 12 | + | Refresh a balena device by stopping and removing all containers and volumes |
| 13 | + | |
| 14 | + | ```shell |
| 15 | + | balena rm -f $(balena ps --filter label=io.balena.supervised=true -q) |
| 16 | + | balena volume rm -f $(balena volume ls --filter label=io.balena.supervised=true -q) |
| 17 | + | ``` |
| 18 | + | |
| 19 | + | #### Refresh /var/lib/docker |
| 20 | + | |
| 21 | + | Free up space by cleaning docker folders (_must re-pull all images/containers_) |
| 22 | + | |
| 23 | + | ```shell |
| 24 | + | systemctl stop balena-supervisor |
| 25 | + | systemctl stop balena |
| 26 | + | rm -rf /var/lib/docker/{aufs,overlay2,containers,image,tmp} |
| 27 | + | systemctl start balena |
| 28 | + | update-balena-supervisor |
| 29 | + | ``` |
| 30 | + | |
| 31 | + | #### Check SD Card Manufacturing Date |
| 32 | + | |
| 33 | + | ```shell |
| 34 | + | cat /sys/block/mmcblk0/device/date |
| 35 | + | ``` |
| 36 | + | |
| 37 | + | #### Get SD Card Information |
| 38 | + | |
| 39 | + | ```shell |
| 40 | + | udevadm info -a -n /dev/mmcblk0 |
| 41 | + | ``` |
| 42 | + | |
| 1 | + | page: |
| 2 | + | headHtml: | |
| 3 | + | <link href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-tomorrow.css" rel="stylesheet" /> |
| 4 | + | <script src="https://cdn.jsdelivr.net/combine/npm/prismjs@1.23.0/prism.min.js,npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script> |
| 5 | + | <script> |
| 6 | + | window.MathJax = { |
| 7 | + | startup: { |
| 8 | + | ready: () => { |
| 9 | + | MathJax.startup.defaultReady(); |
| 10 | + | } |
| 11 | + | } |
| 12 | + | }; |
| 13 | + | </script> |
| 14 | + | <script async="" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> |
| 15 | + | |
Page is in error, reload to recover