deprecate unused scripts
Signed-off-by: Ferit Yiğit BALABAN <fyb@fybx.dev>
This commit is contained in:
parent
b4565d76bb
commit
1dddc37e34
@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cliphist list | wofi --show dmenu | cliphist decode | wl-copy
|
21
deprecated/resync_vault.py
Normal file
21
deprecated/resync_vault.py
Normal file
@ -0,0 +1,21 @@
|
||||
import os
|
||||
import git
|
||||
from datetime import datetime
|
||||
|
||||
folder_path = "/home/ferit/shoka/400-499 vault"
|
||||
|
||||
if not os.path.exists(os.path.join(folder_path, ".git")):
|
||||
repo = git.Repo.init(folder_path)
|
||||
else:
|
||||
repo = git.Repo(folder_path)
|
||||
|
||||
os.chdir(folder_path)
|
||||
|
||||
repo.remotes.origin.pull()
|
||||
repo.index.add("*")
|
||||
|
||||
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
repo.index.commit(f"{timestamp} ewdows usual")
|
||||
|
||||
repo.remote("origin").push()
|
||||
|
Loading…
x
Reference in New Issue
Block a user