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 | |
use Psr\Log\LoggerInterface; | |
class PsrLoggerWrapper implements LoggerInterface | |
{ | |
private WC_Logger_Interface $logger; | |
public function __construct(WC_Logger_Interface $logger = null) | |
{ |
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 | |
# | |
# Add a cron job to run this script every 15 minutes. | |
# crontab -e | |
# 5,35 * * * * /home/YOUR_USER_NAME/Documents/unsplash.sh | |
# | |
USER=$(whoami) | |
# to find api_key, explore requests on webcam display page (for ex https://api.skaping.com//media/search and look for POST api_key) |
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 | |
# | |
# Add a cron job to run this script every 11 minutes. | |
# crontab -e | |
# */11 * * * * /home/YOUR_USER_NAME/script/wallpaper-gnome-grand-bornand-webcam.sh | |
# | |
USER=$(whoami) | |
# Le Grand-Bornand Mont Lachat de Châtillon - 2100 m |
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 | |
/* | |
* This file is part of the Twig Extension TruncateHtmlExtension. | |
* | |
* Author Leon Radley <[email protected]> | |
* Rewrite by Instabledesign | |
* | |
* | |
* Truncate Html string without stripping tags |