Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/audy/tbl2asn-forever
Use tbl2asn forever by pretending that it's still 2019
https://github.com/audy/tbl2asn-forever
Last synced: about 21 hours ago
JSON representation
Use tbl2asn forever by pretending that it's still 2019
- Host: GitHub
- URL: https://github.com/audy/tbl2asn-forever
- Owner: audy
- License: mit
- Created: 2020-01-22T19:18:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T18:27:48.000Z (over 4 years ago)
- Last Synced: 2023-10-20T17:57:04.711Z (12 months ago)
- Language: Dockerfile
- Homepage:
- Size: 7.81 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tbl2asn-forever
Proof of concept for tricking the infamous `tbl2asn` into thinking that it's
less than a year old:Replace `/usr/bin/tbl2asn` with a shell script that temporarily modifies the
system time using [libefaketime](https://github.com/wolfcw/libfaketime) while
running the real `tbl2asn`Building this `Dockerfile` demonstrates that you can run a `tbl2asn` binary
that is [more than a year old](https://anaconda.org/bioconda/tbl2asn/files)
without an error message.`docker build --tag tbl2asn .` will run `tbl2asn` with and without faking the
time. You should only see an error message printed to /dev/stderr on the first
invokation.The magic happens here:
```sh
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 \
FAKETIME="2019-01-01 00:00:01" \
/usr/bin/real-tbl2asn $*
```Currently, the Docker image will be built with tbl2asn version `25.6-3`
## Credit
Thanks to [@milot-mirdita](https://github.com/milot-mirdita) for showing me how to time travel with libfaketime.