https://github.com/pschroeder89/random-stuff
Just some scripts or snippets for various things
https://github.com/pschroeder89/random-stuff
Last synced: 3 months ago
JSON representation
Just some scripts or snippets for various things
- Host: GitHub
- URL: https://github.com/pschroeder89/random-stuff
- Owner: pschroeder89
- License: mit
- Created: 2019-04-08T16:46:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T18:31:08.000Z (about 6 years ago)
- Last Synced: 2025-02-04T18:49:56.797Z (5 months ago)
- Language: Shell
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Random Stuff
Just some scripts or snippets for various things### Contains:
##### time_machine_script.sh
**Context:**
After building a test metric framework, we needed a way to historically run our script and capture metric stats on a weekly basis since a project's inception.
**Usage:**
To get the number of characters in this README at every minute since the initial commit of this repo, run:
`COMMAND='wc -c README.md' INTERVAL=minute sh time_machine_script.sh`
Example output:
```
Determining first commit epoch time
Determining current epoch time
Running command: wc -c README.md
64 README.md
64 README.md
64 README.md
98 README.md
174 README.md
174 README.md
174 README.md
174 README.md
641 README.md
845 README.md```