[AHK_V2] Unconventional use of Pastebin.com API. Sync your files!

Post your working scripts, libraries and tools
micasa
Posts: 24
Joined: 29 Dec 2018, 04:21

[AHK_V2] Unconventional use of Pastebin.com API. Sync your files!

04 Apr 2019, 22:18

Download the program here:
https://pastebin.com/t56KZsku

It's over 1,800 lines long, so I don't think I should post it on the forum. Usage instructions are included at the top of the program.
The program makes use of @jNizM's BcryptMd5 and BcryptMD5_file functions. Thank you @jNizM!

Here are the features and hotkeys:

;FEATURES:
;
;0. Correctly handles UTF-8 http request responses from pastebin.com
;1. Syncs specified files and folder to reflect updated files, deleted files,
;and changed filenames on pastebin.com (creates timestamped backup copies locally
;of all changed, deleted, and renamed files)(currenty supports files that match
;extensions .txt, .md, .ahk, .xml, .py, .pl, .php, .ps1, .js, .csv, and
;.tsv -- More extensions can be added by simply adjusting the regular expression
;on lines 597 and 624)
;2. Backup pastes based on regular expression (creates time_stamped local folder
;of downloaded pastes)
;3. Delete pastes based on regular expression (creates timestamped backup copies
;stored locally)
;4. List pastes based on regular expression
;5. Log into Pastebin.com (automates your browser through programmatic key
;strokes) (currently works when Opera is default browser)
;6. Add files/folders to your sync path via hotkey (highlight files/folders with
;mouse and press hotkey)
;7. Remove files/folders to your sync path via hotkey (highlight files/folders
;with mouse and press hotkey)
;8. Display help message
;
;HOTKEYS (numbers correspond to the above 1 through 8):
;
;1. Create or sync new paste from files/folders = ^!1 (Ctrl+Alt+1)
;2. Backup pastes = ^!2 (Ctrl+Alt+2)
;3. Delete pastes = ^!3 (Ctrl+Alt+3)
;4. List pastes = ^!4 (Ctrl+Alt+4)
;5. Log into pastebin = ^!5 (Ctrl+Alt+5)
;6. Add files/folders to sync file = ^!6 (Ctrl+Alt+6)
;7. Remove files/folders from sync file = ^!7 (Ctrl+Alt+7)
;8. Help message = ^!h (Ctrl+Alt+h)

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Relayer and 35 guests