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 | |
GROUP_ID="xxxx" | |
BOT_TOKEN="xxxx" | |
# this 3 checks (if) are not necessary but should be convenient | |
if [ "$1" == "-h" ]; then | |
echo "Usage: `basename $0` \"text message\"" | |
exit 0 | |
fi |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
</title> | |
</head> |
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 | |
namespace App\Helpers; | |
use Sunra\PhpSimple\HtmlDomParser; | |
class UJPCrawler | |
{ |
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
#!/usr/bin/env | |
MONITORDIR="/home/_______/public_html/wp-content/uploads/" | |
inotifywait -m -r -e create --format '%w%f' "${MONITORDIR}" | while read NEWFILE | |
do | |
jpegoptim --strip-all ${NEWFILE} | |
done |