summaryrefslogtreecommitdiff
path: root/content/shell-snippets.md
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2023-11-17 21:14:43 +0100
committerMiran Bastaja <miran.bastaja04@gmail.com>2023-11-17 21:14:43 +0100
commit0c08d40a703ec4b4e377a8bb3decf0227b43ab3a (patch)
tree2ae3f6673c2026fc8551bb58e2cc72e6d1d4fb3b /content/shell-snippets.md
parent30bf6cf27469ae30db01e99305e12d3051037763 (diff)
Update post naming scheme
Make naming scheme always include date in the URL. Also update existing post title to better fit the new naming scheme requirements.
Diffstat (limited to 'content/shell-snippets.md')
-rw-r--r--content/shell-snippets.md26
1 files changed, 0 insertions, 26 deletions
diff --git a/content/shell-snippets.md b/content/shell-snippets.md
deleted file mode 100644
index 7607d77..0000000
--- a/content/shell-snippets.md
+++ /dev/null
@@ -1,26 +0,0 @@
-+++
-title = "Shell snippets"
-date = "2023-11-15"
-updated = "2023-11-15"
-+++
-## Scraping images from open tabs
-```zsh
-cat export.json \
- | jaq --raw-output '..["url"]? | strings' \
- | rg --fixed-strings "wallhaven.cc/w" \
- | gallery-dl --input-file -
-```
-I exported my current session to json with tab session manager. This command
-takes that json export (referred to as `export.json`), finds all the urls
-that contain `wallhaven.cc/w` (i.e. all urls that are wallhaven images) and
-passes them to gallery-dl. Gallery-dl then neatly downloads all of those images
-in their original quality.
-
-This workflow could be made better by creating a version of tab session manager
-that exports in a simpler (or more configurable format), and I could also turn
-this into a script that takes the wanted website formats as an argument.
-Invocation of the script might look something like:
-```zsh
-tabsession-dl --format "wallhaven.cc/w" --format "reddit.com/r" \
- --input-file export.json
-```