这篇文章旨在为刚接触 wechat_spider 的人提供一个快速了解这个项目基本原理的途径。
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/ cp ~/.gnupg/secring.gpg /path/to/backups/ cp ~/.gnupg/trustdb.gpg /path/to/backups/ # or, instead of backing up trustdb...
|-- Not my code: originally from https://redd.it/3t6s7k (author deleted; failed to ask for permission).|
|-- Only tested on Windows. Date is set to dd/mmm/yy and time to machine-wide format.|
|-- Save as "mpvhistory.lua" in your mpv scripts dir. Log will be saved to mpv default config directory.|
|-- Make sure to leave a comment if you make any improvements/changes to the script!|
|local HISTFILE = (os.getenv("APPDATA") or os.getenv("HOME").."/.config").."/mpv/mpvhistory.log";|
|local title, logfile;|
|* Copyright 2011, Engineer Marco Renzi|
|* Licensed under the BSD license.|
|* Redistribution and use in source and binary forms, with or without|
|* modification, are permitted provided that the following conditions are met:|
|* * Redistributions of source code must retain the above copyright|