From: <tomas@tuxteam.de>
To: emacs-orgmode@gnu.org
Subject: Re: How to properly set up reminders for paying cellphone fees in org?
Date: Sat, 2 May 2020 10:12:44 +0200 [thread overview]
Message-ID: <20200502081244.GC7696@tuxteam.de> (raw)
In-Reply-To: <87y2qaokhn.fsf@mbork.pl>
[-- Attachment #1: Type: text/plain, Size: 1430 bytes --]
On Sat, May 02, 2020 at 09:37:40AM +0200, Marcin Borkowski wrote:
>
> On 2020-04-30, at 07:02, Kyle Meyer <kyle@kyleam.com> wrote:
>
> > And note that a utility like datefudge or libfaketime is useful for
> > testing these sorts of things out. For example:
> >
> > $ datefudge "2020-02-18" emacs [...]
>
> Shameless plug: I wrote about this use-case of datefudge sime time ago:
> http://mbork.pl/2019-08-05_datefudge_and_agenda_testing
>
> (I don't know libfaketime).
It just plays games with LD_PRELOAD to trick the application (which is
supposed to use the usual libs when asking for time, but most do that).
Infinitely more lightweight than a container or a VM. On Debian:
tomas@trotzki:~$ apt show libfaketime
Package: libfaketime
[...]
Download-Size: 31.2 kB
APT-Sources: http://ftp.de.debian.org/debian buster/main amd64 Packages
Description: Report faked system time to programs (preload library)
The Fake Time Preload Library (FTPL, a.k.a. libfaketime) intercepts
various system calls which programs use to retrieve the current date
and time [...] FTPL allows you to specify both absolute dates (e.g.,
2004-01-01) and relative dates (e.g., 10 days ago).
You might need a VM for an app which bypasses the "usual libraries",
but then, I don't know whether I would like to have such a thing on
my box. Probably not without a good reason :-)
Cheers
-- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2020-05-02 8:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 4:19 How to properly set up reminders for paying cellphone fees in org? Vladimir Nikishkin
2020-04-30 5:02 ` Kyle Meyer
2020-04-30 6:22 ` Vladimir Nikishkin
2020-04-30 22:04 ` Kyle Meyer
2020-05-02 7:37 ` Marcin Borkowski
2020-05-02 8:12 ` tomas [this message]
2020-05-02 11:46 ` Marcin Borkowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200502081244.GC7696@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).