commit 4c80d69b492677792651df31808e8b5a704c8035 Author: PhatPhuckDave Date: Thu Aug 15 22:35:48 2024 +0200 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..8560cd4 --- /dev/null +++ b/README.md @@ -0,0 +1,86 @@ +# My personal tools + +## cln +**Create symbolic links given a custom set of commands** + +Mainly created out of frustration of windows ""symbolic"" links +This tool creates real symbolic links on any platform following the syntax of: +`source,destination,force?` +It respects existing files (be them real files or symbolic links) +Unless force is set to *t* in which case only existing symbolic links are deleted (overwriten) +Real files will never be deleted by this tool + +The commands can be given by: +- stdin +- a file +- command line arguments +- a directory + +Example: +- stdin + - `echo "this,that" | cln` +- command line arguments + - `sync this,that foo,bar "path containing spaces",baz` +- files + - `cln -f ` +- directory + - `cln -r ` + - This mode looks for "sync" files recursively within the given directory and executes commands in those sync files + +Given its ability to read files for commands it can be used to manage a "standard" set of symbolic links + +## fiter +**Iterate over files and rename them incrementally** +Example: +Given +``` +video1.mp4 +video2.mp4 +video3.mp4 +image1.png +image2.png +executable.exe +``` +Running `fiter *` would result in: +``` +00001.mp4 +00002.mp4 +00003.mp4 +00005.png +00006.png +00007.exe +``` +The order is **not guranteed** + +Running `fiter *.mp4` on the same folder would give: +``` +00001.mp4 +00002.mp4 +00003.mp4 +image1.png +image2.png +executable.exe +``` + +The tool will not delete any files by overwriting existing ones +And thanks to that it will fail when running on files that have already been renamed by it +For such scenarios use `fiter -f ` +*-f* renames all files to \.bak before renaming them back to their new iterative name +This means that it can run on files that already have iterative names because none are being overwriten +**It also means that, on failure, files are left as .bak** + +## fmoditer +**Iterate over files and rename them to their mod time** + +Works pretty much the same way as *iter* with the exception of *-f* which is not supported by *fmoditer* + +## vsclean +**"clean" vscode recent projects by deleting non existing entries and adding new folders** + +Reads given directories and adds all folders in directories to vscode's recent projects +The idea is that all projects in a "projects" folder should be accessible to vscode +Doing this manually requires opening every folder one by one + +It also removes non existent entries from recent projects and recent files + +## \ No newline at end of file diff --git a/cln.exe b/cln.exe new file mode 120000 index 0000000..33ea676 --- /dev/null +++ b/cln.exe @@ -0,0 +1 @@ +C:/Users/Administrator/Seafile/Projects-Go/GoProjects/synclib/main.exe \ No newline at end of file diff --git a/fiter.exe b/fiter.exe new file mode 120000 index 0000000..61a0e55 --- /dev/null +++ b/fiter.exe @@ -0,0 +1 @@ +C:/Users/Administrator/Seafile/Projects-Go/GoProjects/fiter/main.exe \ No newline at end of file diff --git a/fmoditer.exe b/fmoditer.exe new file mode 120000 index 0000000..dca7b8a --- /dev/null +++ b/fmoditer.exe @@ -0,0 +1 @@ +C:/Users/Administrator/Seafile/Projects-Go/GoProjects/fmoditer/main.exe \ No newline at end of file diff --git a/sync b/sync new file mode 100644 index 0000000..bc8c16f --- /dev/null +++ b/sync @@ -0,0 +1,4 @@ +"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\fiter\main.exe",fiter.exe +"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\fmoditer\main.exe",fmoditer.exe +"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\project-scanner\main.exe",vsclean.exe +"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\synclib\main.exe",cln.exe \ No newline at end of file diff --git a/sync2bin b/sync2bin new file mode 100644 index 0000000..e69de29 diff --git a/vsclean.exe b/vsclean.exe new file mode 120000 index 0000000..74c4a71 --- /dev/null +++ b/vsclean.exe @@ -0,0 +1 @@ +C:/Users/Administrator/Seafile/Projects-Go/GoProjects/project-scanner/main.exe \ No newline at end of file