Skip to content

Instantly share code, notes, and snippets.

View sjsakib's full-sized avatar
🦥

Sharfin Jahan Sakib sjsakib

🦥
View GitHub Profile
@sjsakib
sjsakib / README.md
Last active February 6, 2020 21:59
This script gets a random featured image from unsplash.com and sets it as your desktop background. Works on `gsettings` supported linux distros. Tested on Ubuntu 19.10 (Gnome). Requires the `requests` module to be installed. It takes some time to download the photo. So, wait patiently after executing the script. You can use `anacrontab` to run i…

This script gets a random featured image from unsplash.com and sets it as your desktop background. Works on gsettings supported linux distros. Tested on Ubuntu 19.10 (Gnome). Requires the requests module to be installed.

It takes some time to download the photo. So, wait patiently after executing the script.

You can use anacrontab to run it daily or weekly. See http://bit.ly/371ybhq

@judy2k
judy2k / parse_dotenv.bash
Created March 22, 2017 13:34
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)