HON95 2 éve
szülő
commit
bee2af0410
3 módosított fájl, 16 hozzáadás és 11 törlés
  1. 13 8
      general/linux-general.md
  2. 1 1
      index.md
  3. 2 2
      make-index.sh

+ 13 - 8
general/linux-general.md

@@ -5,13 +5,6 @@ breadcrumbs:
 ---
 {% include header.md %}
 
-## Resources
-
-### Security
-
-- [Linux Hardening Checklist (trimstray)](https://github.com/trimstray/linux-hardening-checklist)
-- [The Practical Linux Hardening Guide (trimstray)](https://github.com/trimstray/the-practical-linux-hardening-guide)
-
 ## Information
 
 ### Distros
@@ -37,6 +30,11 @@ breadcrumbs:
 
 ## Commands
 
+### General
+
+- Sorting: `sort`
+    - Set `LC_ALL=C` to use byte-value sorting instead of locale-enabled sorting (which can be a bit unpredictable).
+
 ### AAA
 
 - Sudo:
@@ -112,7 +110,7 @@ breadcrumbs:
 - `cowsay`
 - `fortune`
 
-### Monitoring (General)
+### Monitoring
 
 - For more specific monitoring, see the other sections.
 - `htop`:
@@ -403,4 +401,11 @@ Using GPG (from package `gnupg2` on Debian).
 
 1. Install the graphical application `woeusb` from `ppa:nilarimogard/webupd8`.
 
+## Resources
+
+### Security
+
+- [Linux Hardening Checklist (trimstray)](https://github.com/trimstray/linux-hardening-checklist)
+- [The Practical Linux Hardening Guide (trimstray)](https://github.com/trimstray/the-practical-linux-hardening-guide)
+
 {% include footer.md %}

+ 1 - 1
index.md

@@ -57,7 +57,7 @@ _(Alphabetically sorted, so the ordering might seem a bit strange.)_
 - [Open MPI](/hpc/openmpi/)
 - [ROCm](/hpc/rocm/)
 - [Singularity](/hpc/singularity/)
-- [HPC Cluster](/hpc/slurm/)
+- [Slurm](/hpc/slurm/)
 - [Vilje (Supercomputer)](/hpc/vilje/)
 
 ## IoT & Home Automation

+ 2 - 2
make-index.sh

@@ -24,7 +24,7 @@ _(Alphabetically sorted, so the ordering might seem a bit strange.)_
 EOF
 
 # Add categories and pages
-for dir in $(find . -mindepth 1 -type d | sort | sed 's|^\./||'); do
+for dir in $(find . -mindepth 1 -type d | LC_ALL=C sort | sed 's|^\./||'); do
     # Check if the dir contains a name file
     if [[ ! -f $dir/_name ]]; then
         continue
@@ -35,7 +35,7 @@ for dir in $(find . -mindepth 1 -type d | sort | sed 's|^\./||'); do
     echo "## $dir_name" >> "$index_file"
     echo >> "$index_file"
 
-    for file in $(find "$dir" -type f -name '*.md' | sort -t. -k1,1); do
+    for file in $(find "$dir" -type f -name '*.md' | LC_ALL=C sort -t. -k1,1); do
         link="$(echo $file | sed 's|^|/|' | sed 's|\.md$|/|')"
         name="$(grep -Po -m1 '(?<=^title: ).+$' $file | sed -e 's|^\"||' -e "s|^'||" -e 's|\"$||' -e "s|'$||" || true)"
         if [[ $name == "" ]]; then