Skip to content

Instantly share code, notes, and snippets.

View pystardust's full-sized avatar
💭
s_:(_:)_g

Harshith pystardust

💭
s_:(_:)_g
  • in a simulation
View GitHub Profile
@pystardust
pystardust / pdf_contrast.py
Created May 1, 2022 21:09
Change contrast of pdf using python
"""
# pdf_contrast.py
Modify contrast of pdf
## Install
```
pip install Pillow pdf2image img2pdf tqdm
```
> Save this file as pdf_contrast.py
@pystardust
pystardust / random_names.bash
Last active November 6, 2021 18:59
random domain names
#!/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
@pystardust
pystardust / xkcd_fetch.sh
Last active October 18, 2021 19:02
xkcd
#!/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'