diff options
| author | user@node5.net <user@node5.net> | 2025-08-03 01:00:06 +0200 |
|---|---|---|
| committer | user@node5.net <user@node5.net> | 2025-08-03 01:00:06 +0200 |
| commit | 93c10851318eebf547f4a77f31a3029331520b14 (patch) | |
| tree | 69b8be790bef1152c58750d7ad16ce742420135f /Cheat sheets | |
| parent | f5bbe606770a4327535e459f106bd4a7158eb6e0 (diff) | |
Flat structure, delete various half completed
Diffstat (limited to 'Cheat sheets')
| -rw-r--r-- | Cheat sheets/Commands.md | 51 | ||||
| -rw-r--r-- | Cheat sheets/Git.md | 12 |
2 files changed, 0 insertions, 63 deletions
diff --git a/Cheat sheets/Commands.md b/Cheat sheets/Commands.md deleted file mode 100644 index a27bd8e..0000000 --- a/Cheat sheets/Commands.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -description: Handy commands i use on my Linux distro machines -created: 2024-01-01 ---- - - -## Convert markdown to HTML -e.g. to preview a markdown file -Reqires [python-markdown](https://python-markdown.github.io/install/) - -```bash -python3 -m markdown README.md > /tmp/README.html -``` - -To load extensions like code blocks: -```bash -python3 -m markdown -x fenced_code -x codehilite -x tables README.md > /tmp/README.html -``` - -## List packages -Arch -``` -pacman -Q -``` - -Debian -```bash -dpkg -l -``` - -## List package files -Arch -```bash -pacman -Ql cowsay -``` - -Debian -```bash -dpkg -L cowsay -``` - -## Check USB eject progress -The OS will lie, and tell you that it's done writing a file, while in reality it's not to flush this cache type: -```bash -sync -``` - -To monitor progress: -```bash -watch -n 0.5 grep 'Dirty' /proc/meminfo -``` \ No newline at end of file diff --git a/Cheat sheets/Git.md b/Cheat sheets/Git.md deleted file mode 100644 index 5297eda..0000000 --- a/Cheat sheets/Git.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -created: 2024-01-01 -description: Handy git commands ---- - -### See changes since last commit -```bash -git diff HEAD~0 -``` - -### Commit parts of a file -[filip-prochazka.com - Git: commit only parts of a file](https://filip-prochazka.com/blog/git-commit-only-parts-of-a-file) |
