Skip to content

Instantly share code, notes, and snippets.

$ keybase pgp select --multi 3660BC4AB81D3472B1FFF0ADC8C71A9539BB323D
You are selecting a PGP key from your local GnuPG keychain, and
will publish a statement signed with this key to make it part of
your Keybase.io identity.
Note that GnuPG will prompt you to perform this signature.
You can also import the secret key to *local*, *encrypted* Keybase
keyring, enabling decryption and signing with the Keybase client.
To do that, use "--import" flag.
$ gpg --edit-key 3660BC4AB81D3472B1FFF0ADC8C71A9539BB323D
gpg (GnuPG) 2.2.17; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Secret key is available.
sec rsa2048/C8C71A9539BB323D
created: 2003-12-10 expires: never usage: SC
trust: ultimate validity: ultimate
$ keybase pgp export --secret | gpg --import --allow-secret-key-import
gpg: key 1B528E4C722DCF04: "Rafael Alvarez <[email protected]>" not changed
gpg: key 1B528E4C722DCF04: secret key imported
gpg: Total number processed: 1
gpg: unchanged: 1
gpg: secret keys read: 1
gpg: secret keys unchanged: 1

Keybase proof

I hereby claim:

  • I am jralvarezc on github.
  • I am jralvarezc (https://keybase.io/jralvarezc) on keybase.
  • I have a public key ASD60xdaL5hOBYLyT5jF6v_YZ7m8-yC78W9BMYAu1H6Kewo

To claim this, I am signing this object:

$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 4.19.66, NixOS, 19.09pre188690.8746c77a383 (Loris)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.2.2`
- channels(root): `"nixos-19.09pre188690.8746c77a383, home-manager"`
- channels(ralvarez): `""`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
$ diff -qr DIRA DIRB | sort -n
$ restic forget --keep-last 1 --keep-within 24h --keep-daily 7 --keep-weekly 12 --keep-monthly 36 --keep-yearly 15
repository 0ac9b387 opened successfully, password is correct
Applying Policy: keep the last 1 snapshots, 7 daily, 12 weekly, 36 monthly, 15 yearly snapshots and all snapshots within 24h of the newest
keep 9 snapshots:
ID Time Host Tags Reasons Paths
---------------------------------------------------------------------------------------
27807352 2019-08-08 23:02:58 auto daily snapshot /home/ralvarez
5f50a4df 2019-08-09 00:36:38 auto daily snapshot /home/ralvarez
210739ff 2019-08-11 22:24:50 auto daily snapshot /home/ralvarez
weekly snapshot
$ nix-env -i rdfind
$ rdfind -dryrun true -checksum sha256 .
$ rdfind -makehardlinks true .
$ ssh-keygen -p -f $HOME/.ssh/id_XXXXX
$ journalctl -f -u XXXXXXXX.service
-- Logs begin at Sat 2019-06-08 19:04:55 -05. --
Aug 11 21:16:07 auto systemd[1]: XXXXXXXX.service: Succeeded.
Aug 11 21:16:07 auto systemd[1]: Started XXXXXXXX.service.
Aug 11 21:20:06 auto systemd[1]: Starting XXXXXXXX.service...