diff --git a/tldr/katana b/tldr/katana new file mode 100644 index 00000000..d1989547 --- /dev/null +++ b/tldr/katana @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# katana + +> A fast crawler focused on execution in automation pipelines offering both headless and non-headless crawling. +> See also: `gau`, `scrapy`, `waymore`. +> More information: . + +- Crawl a list of URLs: + +`katana -list {{https://example.com,https://google.com,...}}` + +- Crawl a [u]RL using headless mode using Chromium: + +`katana -u {{https://example.com}} -headless` + +- Use [p]a[s]sive sources (Wayback Machine, Common Crawl, and AlienVault) for URL discovery: + +`cat {{example.com}} | katana -passive` + +- Pass requests through a proxy (http/socks5) and use custom [H]eaders from a file: + +`katana -proxy {{http://127.0.0.1:8080}} -headers {{path/to/headers.txt}} -u {{https://example.com}}` + +- Specify the crawling [s]trategy, [d]epth of subdirectories to crawl, and rate limiting (requests per second): + +`katana -strategy {{depth-first|breadth-first}} -depth {{value}} -rate-limit {{value}} -u {{https://example.com}}` + +- Crawl a list of domains, each for a specific amount of seconds, and write results to an [o]utput file: + +`cat {{path/to/domains.txt}} | katana -crawl-duration {{value}} -output {{path/to/output.txt}}` diff --git a/tldr/linux/blkpr b/tldr/linux/blkpr new file mode 100644 index 00000000..48839b1a --- /dev/null +++ b/tldr/linux/blkpr @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# blkpr + +> Register, reserve, release, preempt, and clear persistent reservations on a block device that supports Persistent Reservations. +> More information: . + +- Register ([c]ommand) a new reservation with a given [k]ey on a given device: + +`blkpr {{-c|--command}} register --key {{reservation_key}} {{path/to/device}}` + +- Set the [t]ype of an existing reservation to exclusive access: + +`blkpr -c reserve -k {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}` + +- Preempt the existing reservation with a given [K]ey and replace it with a new reservation: + +`blkpr -c preempt {{-K|--oldkey}} {{old_key}} --key {{new_key}} -t write-exclusive {{path/to/device}}` + +- Release a reservation with a given [k]ey and [t]ype on a given device: + +`blkpr -c release --key {{reservation_key}} -t {{reservation_type}} {{path/to/device}}` + +- Clear all reservations from a given device: + +`blkpr -c clear -k {{key}} {{path/to/device}}`