Skip to content

Commit

Permalink
Add slurp standalone command
Browse files Browse the repository at this point in the history
  • Loading branch information
statico committed Apr 1, 2024
1 parent f718ce4 commit f245384
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .vscode-mac.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,8 @@
"’": true,
"‘": true
},
"terminal.integrated.enableImages": true
"terminal.integrated.enableImages": true,
"markdown.copyFiles.destination": {
"images/${fileName}": ""
}
}
3 changes: 2 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ alias gcanes='gcane --gpg-sign'
alias gcanoe='gcne'
alias gcanoes='gcne --gpg-sign'
alias gcanv='git commit --amend --no-verify'
alias gcd1='git clone --depth=1'
alias gcia='git commit --amend'
alias gcnv='git commit --no-verify'
alias gd='git diff'
Expand All @@ -170,6 +171,7 @@ alias gist='gist -p -c'
alias gk='gitk &>/dev/null'
alias gl1='git log -n 1'
alias gl='git quicklog -n 12'
alias glg='git quicklog --grep'
alias gll='git quicklog-long'
alias gls='git log --show-signature'
alias gm='git merge'
Expand Down Expand Up @@ -231,7 +233,6 @@ alias rxvt-invert="echo -n '[?5t'"
alias rxvt-scrollbar="echo -n '[?30t'"
alias scp='scp -C -p'
alias screen='screen -U'
alias slurp='wget -t 5 -c -nH -r -k -p -N --no-parent'
alias st='git status'
alias stt='git status -uall'
alias t='tmux attach'
Expand Down
19 changes: 19 additions & 0 deletions bin/slurp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

set -eo pipefail

# Original alias: wget -t 5 -c -nH -r -k -p -N --no-parent

# Scrapes a page and subdirectories
wget \
--tries=5 \
--continue \
--no-host-directories \
--recursive \
--convert-links \
--timestamping \
--no-parent \
--directory-prefix=slurp \
--no-verbose \
$@

0 comments on commit f245384

Please sign in to comment.