This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# USAGE: ./xkcd_fetch.sh [-r] | |
# Get random xkcd_commics | |
# Idea by https://github.com/Error916/xkcd-retriver | |
viewer=sxiv | |
dest_img=/tmp/xkcd_image.png | |
# when random is not mention it defaults to latest | |
json_url='https://xkcd.com/info.0.json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Generating random domain names | |
temp_file=`mktemp` | |
get_word() { | |
word=$( | |
xidel -s https://www.thisworddoesnotexist.com/ --css "#definition-word" | |
) | |
if (( ${#word} < 8 )); then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
# pdf_contrast.py | |
Modify contrast of pdf | |
## Install | |
``` | |
pip install Pillow pdf2image img2pdf tqdm | |
``` | |
> Save this file as pdf_contrast.py |