a1 und a2

This commit is contained in:
0qln
2025-10-20 09:40:01 +02:00
commit fc833b39ba
36 changed files with 2220 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [[ ! -d "/home/oq/repos/betriebessysteme" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/home/oq/repos/betriebessysteme")"
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
exit 1
fi
# rebuild the cache forcefully
_nix_direnv_force_reload=1 direnv exec "/home/oq/repos/betriebessysteme" true
# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/home/oq/repos/betriebessysteme/.envrc"
# Also update the timestamp of whatever profile_rc we have.
# This makes sure that we know we are up to date.
touch -r "/home/oq/repos/betriebessysteme/.envrc" "/home/oq/repos/betriebessysteme/.direnv"/*.rc
+1
View File
@@ -0,0 +1 @@
/nix/store/7h5wwp171gc8snx8mg2v3v5g54zb7sdz-nix-shell-env
File diff suppressed because it is too large Load Diff
+1
View File
@@ -0,0 +1 @@
use nix
+1
View File
@@ -0,0 +1 @@
.direnv
Executable
+1
View File
@@ -0,0 +1 @@
whoami
Executable
+1
View File
@@ -0,0 +1 @@
who
Executable
+1
View File
@@ -0,0 +1 @@
finger
Executable
+1
View File
@@ -0,0 +1 @@
last --help
Executable
+1
View File
@@ -0,0 +1 @@
man man
Executable
+1
View File
@@ -0,0 +1 @@
man mesg
Executable
+1
View File
@@ -0,0 +1 @@
man whatis
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
info -a --subnodes ls
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
uname -pv
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
uptime
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
echo ~
Executable
+1
View File
@@ -0,0 +1 @@
ls -a ~
Executable
+1
View File
@@ -0,0 +1 @@
cat /etc/passwd
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
wc -wl /etc/passwd
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
head -n 7 /etc/passwd
tail -n 7 /etc/passwd
Executable
+2
View File
@@ -0,0 +1,2 @@
touch ~/.hidden-file
mkdir ~/.hidden-dir
Executable
+1
View File
@@ -0,0 +1 @@
mv ~/.hidden-file ~/.hidden-dir/
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
yesterday="$(date -d "yesterday 13:00" '+%Y-%m-%d')"
touch -d "$yesterday" ~/.hidden-dir/.hidden-file
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
f1="/usr/include/linux"
f2="/usr/bin/X11/X"
realpath -s --relative-to="$f1" "$f2"
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
f1="/var/log/cups"
f2="/root"
realpath -s --relative-to="$f1" "$f2"
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
touch "*"
ls -a "*"
rm "*"
Executable
+1
View File
@@ -0,0 +1 @@
ls -a ~
Executable
+1
View File
@@ -0,0 +1 @@
cat /etc/passwd
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
wc -wl /etc/passwd
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
head -n 7 /etc/passwd
tail -n 7 /etc/passwd
Executable
+2
View File
@@ -0,0 +1,2 @@
touch ~/.hidden-file
mkdir ~/.hidden-dir
Executable
+1
View File
@@ -0,0 +1 @@
mv ~/.hidden-file ~/.hidden-dir/
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
yesterday="$(date -d "yesterday 13:00" '+%Y-%m-%d')"
touch -d "$yesterday" ~/.hidden-dir/.hidden-file
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
f1="/usr/include/linux"
f2="/usr/bin/X11/X"
realpath -s --relative-to="$f1" "$f2"
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
f1="/var/log/cups"
f2="/root"
realpath -s --relative-to="$f1" "$f2"
+11
View File
@@ -0,0 +1,11 @@
with import <nixpkgs> {};
mkShell {
packages = [
gnumake
libgcc
bsd-finger
];
shellHook = ''
'';
}