Skip to content

Instantly share code, notes, and snippets.

View Porrapat's full-sized avatar

Porrapat Petchdamrongskul Porrapat

View GitHub Profile
# 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"
# 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")
# 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
@Porrapat
Porrapat / mail-test.php
Created November 6, 2015 08:24 — forked from Dreyer/mail-test.php
Quick & Dirty PHP Mail Test Script
<?php
/*
DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED!
*/
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = 'webmaster@example.com';