This commit is contained in:
2024-10-16 11:13:28 +02:00
commit 9718b947bc
10 changed files with 208 additions and 0 deletions

9
ext/id-gen.py Normal file
View File

@@ -0,0 +1,9 @@
from json import dumps
start = 666
name = {
'name': start
}
print(dumps(name))

10
ext/name-gen.py Normal file
View File

@@ -0,0 +1,10 @@
from datetime import datetime
from json import dumps
from sys import argv
name = argv[1]
type = argv[2]
timestamp = datetime.now().strftime('%d.%m.%Y-%H:%M:%S')
name = f'{name}-{type}-{timestamp}'
print(dumps({'name': name}))

2
ext/name-gen.sh Executable file
View File

@@ -0,0 +1,2 @@
#/bin/sh
echo {\"name\":\"$1-$2-`date +'%d.%m.%Y-%H:%M:%S'`\"}