See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
I use Obsidian git on PC, and this workaround (since the plugin doesn't support mobile) to seamlessly* sync my notes to and from my phone. Using these instructions you create an automation for pulling every time you open Obsidian, and pushing every time you close it.
* you can still get merge conflicts...
termux-setup-storage, give it permissions.| a | |
| abandon | |
| ability | |
| able | |
| abortion | |
| about | |
| above | |
| abroad | |
| absence | |
| absolute |
| ZigZag-Encoding | |
| --------------- | |
| Maps negative values to positive values while going back and | |
| forth (0 = 0, -1 = 1, 1 = 2, -2 = 3, 2 = 4, -3 = 5, 3 = 6 ...) | |
| (i >> bitlength-1) ^ (i << 1) | |
| with "i" being the number to be encoded, "^" being | |
| XOR-operation and ">>" would be arithemtic shifting-operation |
| docker run -v /Users/mbreese/tmp:/tmp1 -w /tmp1 -i centos:7 /bin/bash -s <<EOF | |
| date > foo | |
| echo 'foo' >> foo | |
| cat /etc/redhat-release >> foo | |
| whoami >> foo | |
| EOF |
| #!/bin/bash | |
| ## Script start time | |
| START=$(date +%s) | |
| ## Total run time | |
| DURRATION=$((60 * 60 * 24)) | |
| ## Total running time | |
| UPTIME=$(($(date +%s) - $START)) |