Files are being copied :D
This commit is contained in:
commit
7130c07100
3 changed files with 197 additions and 0 deletions
31
sshare
Executable file
31
sshare
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import getpass
|
||||
import importlib.util
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
def main():
|
||||
config = Config()
|
||||
|
||||
subprocess.run([
|
||||
"scp",
|
||||
"-r",
|
||||
f"-P {config.ssh_port}",
|
||||
f"/home/gnarwhal/Pictures/Screenshots/Screenshot from 2024-07-31 06-34-57.png",
|
||||
f"{config.ssh_user}@{config.ssh_domain}:{config.ssh_dir}",
|
||||
])
|
||||
|
||||
|
||||
class Config:
|
||||
def __init__(self):
|
||||
self.ssh_port = 2222
|
||||
self.ssh_user = getpass.getuser()
|
||||
self.ssh_domain = "monodon.me"
|
||||
self.ssh_dir = "~/sshare/"
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue