This file contains hidden or 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
#!/usr/bin/perl | |
use strict; | |
use LWP::Simple; | |
my $url = "https://www.nationalgeographic.com/photography/photo-of-the-day"; | |
my $desc_regex = qr/description\" content=\"(.*?)\"/mp; | |
my $url_regex = qr/twitter:image:src\" content=\"(.*?)\"/mp; | |
my $path_regex = qr/[^\/]+$/mp; |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# 1. Install hunspell | |
# $ pacman -S hunspell | |
# 2. Download a dictionary and install it in a path listed by `hunspell -D` | |
# $ open http://wiki.services.openoffice.org/wiki/Dictionaries | |
# 3. Move this file into your repository | |
# $ mv commit-msg /path/to/repo/.git/hooks |
This file contains hidden or 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 | |
ng_json_url="https://www.nationalgeographic.com/photography/photo-of-the-day/_jcr_content/.gallery.json" | |
path="$HOME/Pictures/Wallpapers/" | |
mkdir -p $path | |
echo "Pinging NG API..." | |
# Fetching API response. |
This file contains hidden or 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
# | |
# Prompt character | |
# | |
# ------------------------------------------------------------------------------ | |
# Configuration | |
# ------------------------------------------------------------------------------ | |
PREFIXES="πππππΈπ½π«β½π½π»ππ¨π΅π¦πΎπ¦π³π¦ββ½π―πΎπ‘πΊπΈππ¬βπΎβ°βͺπ±" | |
SPACESHIP_CHAR_PREFIX="${SPACESHIP_CHAR_PREFIX=""}" | |
SPACESHIP_CHAR_SUFFIX="${SPACESHIP_CHAR_SUFFIX=""}" |
This file contains hidden or 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 | |
# author: Whizzzkid ([email protected]) | |
# Base URL. | |
bing="http://www.bing.com" | |
# API end point. | |
api="/HPImageArchive.aspx?" | |
# Response Format (json|xml). |