|  | 
| 1 |  | -# source_control_sentry | 
| 2 |  | -Source control utility. Run actions at any change in a directory. | 
|  | 1 | +## [SCS] Source Control Sentry<br> | 
|  | 2 | +Backup/Restore files.<br> | 
|  | 3 | +Run actions on any change in a directory.<br> | 
|  | 4 | +Create hard copies and display file diffs.<br> | 
|  | 5 | +Verify content, ownserships and rights.<br> | 
|  | 6 | +Can execute one -or more- commands, or reload a browser tab, at a file change.<br> | 
|  | 7 | +Restore files on demand.<br> | 
|  | 8 | +Automatize dev flow. Example, run a test script, or compile at a file change.<br> | 
|  | 9 | +Recursive to the whole directory tree.<br> | 
|  | 10 | +Backup all files versions, keeping the flow by timestamp.<br> | 
|  | 11 | +Exclude git hidden files. Works well on top of git. Exclude nohup.out as well.<br> | 
|  | 12 | +Can inject some javascript into a browser console tab, at a file change.<br> | 
|  | 13 | + | 
|  | 14 | +By default, without parameters, starts to watch the current directory. | 
|  | 15 | +Display diffs at a file change. | 
|  | 16 | + | 
|  | 17 | +### PARAMS: | 
|  | 18 | +<pre> | 
|  | 19 | + -e --exec command | 
|  | 20 | + Execute command (Use quotes if necessary) | 
|  | 21 | + -r --reload program_name | 
|  | 22 | + Reload program_name (must have F5 capabilities) | 
|  | 23 | + -x --inject <js file> | 
|  | 24 | + javascript injection in browser console | 
|  | 25 | + --purge  | 
|  | 26 | + Delete cache | 
|  | 27 | + -b --browse  | 
|  | 28 | + Explore diffs changes and restore files | 
|  | 29 | + </pre> | 
|  | 30 | + | 
|  | 31 | +### Browse historic and restore files | 
|  | 32 | + | 
|  | 33 | +Browse current DIR historic and restore files. | 
|  | 34 | +Those are all changes made in the current DIR, by date, while the current program was running | 
|  | 35 | +-b --browse | 
|  | 36 | + | 
|  | 37 | +### Examples: | 
|  | 38 | + | 
|  | 39 | +### Reload focused tabs of many browsers | 
|  | 40 | +-r firefox -r chromium | 
|  | 41 | + | 
|  | 42 | +### Run commands | 
|  | 43 | + ./dev -r firefox -e "ls -ltrapR" | 
|  | 44 | + | 
|  | 45 | +### Inject alert("xss") in the currently focused Firefox tab | 
|  | 46 | + -x script.js | 
|  | 47 | + | 
|  | 48 | + Can be used on top of any text editor CTR+Z + Fat fingers = lost code | 
|  | 49 | + | 
0 commit comments