Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Marcos Raudkett marcosraudkett

🎯
Focusing
View GitHub Profile
@marcosraudkett
marcosraudkett / IpApi.class.php
Last active Mar 4, 2020
IpApi Class (ip-api.com)
View IpApi.class.php
<?php
/**
* IpApi class (ip-api.com)
*
*
* PHP version 7
*
*
* @category IpApi
View README.md

Full EasyAjax

"return_json" Usage

$easyajax = new easyajax();

$easyajax->eajax_status = 'success'; //this can either be success or error (single + mandatory)

$easyajax->eajax_message = 'message'; //your message to user (single + mandatory)

@marcosraudkett
marcosraudkett / README.md
Last active Jul 10, 2018
Full ajax (user -> ajax -> php -> php (json response) -> ajax -> user)
View README.md
@marcosraudkett
marcosraudkett / motion_detector.MD
Last active May 1, 2019
Raspberry Pi - Motion Detector w/ Camera & Remote Terminal (FTP Upload and Preview on Website) - Realtime & Email Notification
View motion_detector.MD

Motion Detector in Raspberry Pi / DIY IoT Platform

Platform

Platform for this can be found -> https://github.com/OGkaaos/Chaos-IoT

About

I will be soon updating this and adding the backend of the code, pretty much what it does is you have a raspberry pi with a HC-SR501 (pin18) motion detector and PiCamera and with this code and the server side code which is in php the raspberry pi can communicate with the server side script and it notifies the user that motion has been detected and takes a photo and then uploads it to the server with and on the website the user will also be notified in real-time. I also made a remote terminal for

@marcosraudkett
marcosraudkett / readme.md
Last active Nov 19, 2017
Automatic Sitemap Creator on Your Website's Search Engine.
View readme.md

Sitemap Creator (Search Query)

Instructions

  • Add the script inside your search engine file
  • Change domains to your own domain
  • Change $_GET["q"]; to your own.

What it does

It searches the sitemap.xml file for existing keyword and if the keyword does not exist it will add it to sitemap.xml file.

  • User makes a search on your site.
@marcosraudkett
marcosraudkett / Website Crawler JSON Output
Last active Dec 10, 2018
Crawl a Target Website and Get Page Titles, Description, Keywords And Print Data In JSON
View Website Crawler JSON Output
<?php
header('Content-type: application/json');
/* our target website. */
$link = $_GET["q"];
function file_get_contents_curl($url) {
$ch = curl_init();
@marcosraudkett
marcosraudkett / Website Crawler to MySQL
Last active Apr 4, 2018
Crawl a Target Website and Get Page Titles, Description, Keywords And Save Data to MySQL
View Website Crawler to MySQL
<?php
/* Database Connection & Other Files. */
include ("../class/require.php");
//curl
function file_get_contents_curl($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);