Commit Graph

63 Commits

Author SHA1 Message Date
147695edc4 fetch: change storage implementation
Instead of partitioning over YYYY/mm/dd, take the SHA256 of the URL and
partition over the first, second and tail bytes of it. It has the upside
of being more rsync-friendly and there is no longer a need to keep a
different file, "everything", to look up already retrieved URLs. Also
replace the "url" file with a "meta" file, organized as key=value,
currently holding URL and retrieval date.
2022-08-03 03:33:28 +00:00
68e11fc972 fetch: explain why we call tty(1)
While at it, also use safe test operands.
2022-08-03 03:27:43 +00:00
fc3171ae5e sekrit: use timeout in cp if present 2022-07-30 14:45:04 +00:00
7dbf7e8711 sekrit: replace OPTIND -> $OPTIND inside $(( )) 2022-07-30 14:34:17 +00:00
7277f2057e sekrit: don't make output file read-only
This makes it easier to overwrite the output with `rm -P` or `shred`.
2022-06-17 15:55:36 +00:00
f721826d92 screenshot: replace xwd+netpbm with maim
While at it, add a new keybind for it.
2022-03-20 04:25:18 +00:00
13fae1631f rbucmd: use user@host everywhere 2022-01-16 14:23:14 +00:00
2e152aa82e pstsrv: use curl -x instead of torsocks 2021-12-03 18:20:02 +00:00
699363c409 pstsrv: add pst.moe, retire w1r3.net 2021-12-03 13:53:52 +00:00
506952db72 ZZZ: lock the screen instead of asking the user to do so 2021-11-19 22:23:57 +00:00
52f2d20dbc rbucmd: start ssh-agent only if there isn't one running already 2021-10-16 15:36:12 +00:00
09bfd184a2 fetch: use glob expansion instead of find, for speed 2021-08-02 03:12:01 +00:00
f9f951867c Add script for OpenBSD remote backups 2021-06-25 15:35:13 +00:00
141a56f51b fetch: small fixes
- Use `sha256 -s` instead of piping into `sha256`
- Remove unused name output file
2021-04-11 14:32:18 +00:00
02faa7d7bb nyaasearch: add script for searching nyaa.si with w3m 2021-03-12 00:11:38 +00:00
e71a6eb321 sekrit: add rm command
While at it, fix a typo.
2020-12-03 00:18:11 +00:00
19631627d6 sekrit: remove -f flag for sekrit_add
Not only it parsed the wrong character 2 commits ago, it's also
completely broken: file can't be overwritten, because of `chmod 400`.
2020-12-02 03:53:57 +00:00
f500903cba sekrit: small refactor 2020-12-02 03:44:32 +00:00
c2af544099 sekrit: parse the right flag in sekrit_add 2020-12-02 03:40:04 +00:00
7580a2b588 browser: copy sndiod cookie 2020-11-22 13:57:26 +00:00
8de76cf8b1 Use curl if not running on OpenBSD 2020-11-01 18:51:45 +00:00
cb0696a400 sekrit: check if key exists with cp 2020-10-03 17:29:53 +00:00
a7c8d5e369 sekrit: don't define a default SEKRIT_GPG_ID
And abort operation if no SEKRIT_GPG_ID is provided.
2020-08-26 02:42:12 +00:00
0f6b0e5133 Shell cosmetic changes 2020-08-23 14:48:24 +00:00
a444cdcbfd invidious: respect -T 2020-08-08 23:56:54 +00:00
2bf7cf7f71 pstsrv: add w1r3.net 2020-08-01 20:27:19 +00:00
0c497ffde9 browser: make generic and remove redundant scripts 2020-07-27 21:45:43 +00:00
6a795d70f0 credentials: new otpcli can handle otpauth URIs 2020-07-16 17:07:54 +00:00
bfe6426a9b pstsrv: ensure newline after URL and inform failed upload 2020-07-02 03:09:10 +00:00
ec3f639580 sekrit: add force flag to add subcommand 2020-06-15 02:43:34 +00:00
b37356c964 invidious: allow HTTP URLs too 2020-06-07 14:02:36 +00:00
82b8e95d7e credentials: rename service -> account, 2fa,sfa -> mfa 2020-05-25 16:04:38 +00:00
aa6636e6a5 credentials: redefine SEKRIT_DIR
Instead of adding a prefix to all keys.
2020-05-25 16:04:37 +00:00
a830563ebd credentials: remove -r
It's pointless now with sekrit cp.
2020-05-25 16:04:37 +00:00
1d45d3c561 credentials: use sekrit cp 2020-05-25 16:04:37 +00:00
4657adf4b1 sekrit: bake in clipboard support with cp subcommand 2020-05-25 16:04:37 +00:00
6cdd3337fd sekrit: fix arguments check 2020-05-03 14:48:05 +00:00
d5e71c46f7 Align shell style all over the repo 2020-05-03 14:47:27 +00:00
afb13d9c9c flac2ogg: use the correct variable in loops
While there, adjust the error message to be more aligned to the rest of
the scripts.
2020-05-03 14:00:42 +00:00
17ef04b41a fetch: use a slightly more correct check for TTY stdin 2020-05-03 14:00:41 +00:00
06f9918f2c invidious: change heuristic for using path as ID 2020-05-02 20:48:30 +00:00
3fcbc23542 invidious: handle embed links 2020-05-02 20:48:30 +00:00
7f89a0aaf8 invidious: only allow "known" URLs 2020-05-02 20:43:38 +00:00
0a7dd126e8 invidious: rewrite
- Use API cleverly
- Allow specifying a provider different than invidio.us
- Use torsocks by default
2020-05-02 19:39:59 +00:00
2231ee3e8d pstsrv: fix variable name 2020-04-25 22:41:10 +00:00
43091854f9 Add plumb script for opening files 2020-04-06 23:51:03 +00:00
2395ee7cbd Add pstsrv for centralizing different paste services 2020-04-06 22:44:57 +00:00
649ead1257 fetch: fix showing already archived URLs 2020-03-21 11:54:45 +00:00
01c6a6d22d Merge xsekrit into credentials 2019-12-28 00:12:31 +00:00
83d15c417d credentials: handle all cases with one function 2019-12-27 23:20:28 +00:00