.git broken, restart

This commit is contained in:
dangerboot
2026-01-23 08:55:18 +01:00
commit d1be8ebdca
206 changed files with 8431 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =7
let g:netrw_dirhist_7='/home/archi/machine/networking'
let g:netrw_dirhist_6='/home/k/bs/shy-ni/haikus'
let g:netrw_dirhist_5='/home/k/bs/shy-ni/scenes'
let g:netrw_dirhist_4='/home/k/bs/shy-ni'
let g:netrw_dirhist_3='/home/k/bs/shy-ni/haikus'
let g:netrw_dirhist_2='/home/k/bs/shy-ni'
let g:netrw_dirhist_1='/home/k/machine/networking'
+19
View File
@@ -0,0 +1,19 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* template.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nidionis <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/04 16:20:59 by nidionis #+# #+# */
/* Updated: 2024/09/05 14:15:32 by nidionis ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include <stdio.h>
int main(int argc, char **argv)
{
return (0);
}
View File
@@ -0,0 +1,25 @@
#!/usr/bin/bash
if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then
echo "Usage: $0 arg1 [arg2] [arg3]"
exit 1
fi
# interactive session check
if [ -t 0 ]; then
echo -n "Delete existing output files? [y/N]: "
read ans
case "$ans" in
y|Y) rm -f *.school ;;
*) echo "Aborted"; exit 0 ;;
esac
fi
# process input file
while IFS= read -r line; do
new_f="${line%.*}.school"
f > "$new_f"
done < "$FILE"
exit 0
+58
View File
@@ -0,0 +1,58 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
def parse_args():
parser = argparse.ArgumentParser(
description="Template script using argparse"
)
parser.add_argument(
"-i", "--input",
type=str,
help="Input file path",
required=True
)
parser.add_argument(
"-o", "--output",
type=str,
help="Output file path",
required=False
)
parser.add_argument(
"-v", "--verbose",
action="store_true",
help="Enable verbose mode"
)
parser.add_argument(
"--mode",
choices=["fast", "slow"],
default="fast",
help="Choose mode of operation"
)
return parser.parse_args()
def main():
args = parse_args()
if args.verbose:
print("[INFO] Verbose mode is on")
print(f"[INFO] Input file: {args.input}")
print(f"[INFO] Output file: {args.output or 'stdout'}")
print(f"[INFO] Mode selected: {args.mode}")
# Example processing
with open(args.input, 'r') as f:
data = f.read()
result = data.upper() if args.mode == "fast" else data.lower()
if args.output:
with open(args.output, 'w') as f:
f.write(result)
else:
print(result)
if __name__ == "__main__":
main()
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/bash
if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then
echo "Usage: $0 arg1 [arg2] [arg3]"
exit 1
fi
# interactive session check
if [ -t 0 ]; then
echo -n "Delete existing output files? [y/N]: "
read ans
case "$ans" in
y|Y) rm -f *.school ;;
*) echo "Aborted"; exit 0 ;;
esac
fi
# process input file
while IFS= read -r line; do
new_f="${line%.*}.school"
f > "$new_f"
done < "$FILE"
exit 0
+12
View File
@@ -0,0 +1,12 @@
services:
web:
build: .
ports:
- "8000:5000"
develop:
watch:
- action: sync
path: .
target: /code
redis:
image: "redis:alpine"