Compare commits

..

No commits in common. "0abc2818e8185227de37f4e1c7c8c31011b75b68" and "d2934bf8a3e4147830bb790813c77121ef78dad0" have entirely different histories.

7 changed files with 45 additions and 47 deletions

View File

@ -4,8 +4,6 @@ EDITOR ?= vi
FZF != command -v sk || command -v fzy || command -v fzf || \ FZF != command -v sk || command -v fzy || command -v fzf || \
{ echo install a fuzzy finder && exit 1 ;} { echo install a fuzzy finder && exit 1 ;}
spill_contents = sed -e '1,/---/d'
help: ## Print the help message help: ## Print the help message
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \ @awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
sort | \ sort | \
@ -13,18 +11,13 @@ help: ## Print the help message
articles != find * -type f -name "*.md" articles != find * -type f -name "*.md"
dirs != ls -d */ categories != ls -d */
categories = $(patsubst %/, %, $(dirs))
databases = $(patsubst %, .dbs/%.rec, $(categories)) databases = $(patsubst %/, .dbs/%.rec, $(categories))
default += $(databases) default += $(databases)
$(foreach dir, $(categories), \ $(databases): .dbs/%.rec: %/ | .dbs/
$(eval .dbs/$(dir).rec: $(wildcard $(dir)/*)) \
)
$(databases): .dbs/%.rec: %/
$(info making $(@F)) $(info making $(@F))
@mkdir -p $(@D) @mkdir -p $(@D)
for entry in $(shell find $< -type f -name "*.md") ; do \ for entry in $(shell find $< -type f -name "*.md") ; do \
@ -36,15 +29,13 @@ $(databases): .dbs/%.rec: %/
done > $@ done > $@
for entry in $(shell find $< -type f -name "*.md"); do \ for entry in $(shell find $< -type f -name "*.md"); do \
recset $@ -e "file = '$${entry}'" -f wordcount --set-add="$$(wc -w < $${entry})" ;\ recset $@ -e "file = '$${entry}'" -f wordcount --set-add="$$(wc -w < $${entry})" ;\
recset $@ -e "file = '$${entry}'" -f content --set-add="$$($(spill_contents) $${entry})" ;\
done done
db.rec: $(databases) db.rec: $(databases)
printf '%s\n' '%rec: guide' > $@ printf '%s\n' '%rec: guide' > $@
printf '%s\n' '%key: title' >> $@
printf '%s\n' '%type: wordcount int' >> $@ printf '%s\n' '%type: wordcount int' >> $@
printf '%s\n\n' '%sort: title' >> $@ printf '%s\n\n' '%sort: title' >> $@
recsel $^ >> $@ cat $^ >> $@
recsel $@ -e "requires != ''" -CR title,requires |\ recsel $@ -e "requires != ''" -CR title,requires |\
while read title requires; do \ while read title requires; do \
IFS=', ' && for provider in $$requires; do \ IFS=', ' && for provider in $$requires; do \

34
basics/kernel.md Normal file
View File

@ -0,0 +1,34 @@
---
title: "kernel"
tags: [ "Basics" ]
---
## Living Space
Kernel modules live in lib/modules/$(uname -r)
## Change
Load them with
```bash
sudo modprobe ath9k
```
Or remove one with
```bash
sudo modprove uvcvideo
```
The PC's irritating speaker beep can be really annoying. Disable it with:
```bash
sudo modprobe -r pcspeaker
```
Permanently disable a module by blacklisting it in `/etc/modprobe.d`:
```bash
echo 'blacklist pcspkr' > /etc/modprobe.d/*nobeep*.conf
```

View File

@ -1,5 +1,5 @@
--- ---
title: "git subtree" title: "git"
tags: [ "data", "git", "subtree" ] tags: [ "data", "git", "subtree" ]
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "gpg with vim" title: "gpg"
tags: [ "vim", "data", "GPG" ] tags: [ "vim", "data", "GPG" ]
requires: [ "GPG Basics", "vim basics" ] requires: [ "GPG Basics", "vim basics" ]
--- ---

View File

@ -1,6 +1,6 @@
--- ---
title: "Ach Linux GPU Setup" title: "fonts"
tags: [ "arch", "GPU" ] tags: [ "distros" ]
--- ---
# Step 1: Multilib # Step 1: Multilib
@ -60,3 +60,4 @@ You should see 'true' here.
```bash ```bash
sudo pacman -S --needed lib32-mesa vulkan-radeon lib32-vulkan-radeon vulkan-icd-loader lib32-vulkan-icd-loader xf86-video-amdgpu sudo pacman -S --needed lib32-mesa vulkan-radeon lib32-vulkan-radeon vulkan-icd-loader lib32-vulkan-icd-loader xf86-video-amdgpu
``` ```

View File

@ -1,5 +1,5 @@
--- ---
title: "make help target" title: "Makefiles"
tags: [ "system", "make", "help" ] tags: [ "system", "make", "help" ]
--- ---

View File

@ -1,36 +1,8 @@
--- ---
title: "kernel modules" title: "kernel"
tags: [ "system" ] tags: [ "system" ]
--- ---
Kernel modules live in lib/modules/$(uname -r)
## Change
Load them with
```sh
modprobe ath9k
```
Or remove one with
```sh
modprove uvcvideo
```
The PC's irritating speaker beep can be really annoying. Disable it with:
```sh
modprobe -r pcspeaker
```
Permanently disable a module by blacklisting it in `/etc/modprobe.d`:
```sh
echo 'blacklist pcspkr' > /etc/modprobe.d/*nobeep*.conf
```
Check which kernel modules are loaded into memory: Check which kernel modules are loaded into memory:
```sh ```sh