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
# Curl to list of website and get it's title html tag | |
# Useful for checking code quality of many websites. | |
# requirement : you must install HTML-XML-utils first by | |
# sudo apt-get install html-xml-utils | |
now=$(date) | |
URLs=( | |
"google.com" |
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
# Login To Laravel Web App And Scrape Some Data : Customize for Laravel Web App | |
# requirement : you must install HTML-XML-utils first by | |
# sudo apt-get install html-xml-utils | |
# provide your information here | |
url=https://xxx.xxx.com | |
username=YOUR_USERNAME_HERE | |
password=YOUR_PASSWORD_HERE | |
result=$(curl -c form-cookie.txt -sL "$url/login") |
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
# Simple Check Website (With Send Slack Message to Channel) | |
# How to use | |
# ====================================== | |
# chmod -R 777 checkwebsite.sh | |
# ./checkwebsite.sh | |
# Can install as crontab and output to log file. Something like | |
# * * * * * bash ./checkwebsite.sh >> /www/checkwebsite/html/checkwebsite.log | |
# To Do More |
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 | |
/* | |
DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED! | |
*/ | |
ini_set( 'display_errors', 1 ); | |
error_reporting( E_ALL ); | |
$from = 'webmaster@example.com'; |
NewerOlder