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
<?php | |
class ConfigParser { | |
/** | |
* Holding the available services in the XML | |
* @var array | |
*/ | |
private $services = array(); | |
/** | |
* Store the parsed SimpleXMLElement for usage | |
* @var SimpleXMLElement |
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 | |
# Usage: earthporn [+format] [-time] [logfile] | |
# Dependencies: bash, wget, mktemp... and well, date and sleep | |
imgfile=~/.earthporn | |
# Help and version functions | |
help () { | |
echo "Randomly picks one of the amazing photos at http://imgur.com/r/earthporn" | |
echo "and sets it as the background image." |