This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ├── bin => Contains the scripts of your project | |
| │ └── resources => any resources needed for the scripts | |
| ├── docs => Contains documentation and future aspects about your project | |
| ├── CONTRIBUTING.md => Contains information how to contribute code, bugs, documentation etc. | |
| ├── etc => Add configuration files under this directory | |
| │ └── imdb-xplorer.cfg => Configuration file | |
| ├── LICENSE => Add license for your project | |
| ├── lib => Contains any scripts that are included in the scripts in bin | |
| ├── README.md => Contains how to install, test and use your project | |
| ├── setup.sh => install the project on your machine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Copies the file in first argument to a new copy with current date and time as extension. I usually create a backup copy of any file I will tamper to easily revert back to the old one. | |
| # Usage: | |
| # $jbc test.txt | |
| # Copies test.txt into test.txt.yymmdd_HHMMSS, for instance test.txt.210704_112158 | |
| # Put in /usr/bin as jbc (just backup copy) | |
| # Do chmod +x /usr/bin/jbc to make it executable | |
| if [ -z "$1" ] | |
| then | |
| echo "Missing argument" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Console-polyfill. MIT license. | |
| * Modified from https://github.com/paulmillr/console-polyfill | |
| * Make it safe to do console.log() always. | |
| */ | |
| (function(con) { | |
| var dummy = con.log || function() {} | |
| for (var methods = "assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","), func; | |
| (func = methods.pop()) !== undefined;) { | |
| con[func] = con[func] || dummy; |