Skip to content

Instantly share code, notes, and snippets.

View kidino's full-sized avatar

Iszuddin Ismail kidino

View GitHub Profile
@kidino
kidino / gist:5562087
Last active December 17, 2015 05:59
Modified captcha helper for CodeIgniter. Add this as /application/helpers/MY_captcha_helper.php - random spacing between letters - random colors - set font_size
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
@kidino
kidino / malaysia-webhosting-x-powered-by
Last active August 29, 2015 13:56
Malaysia's Web Hosting and X-Powered-By
Old Gist. Do check
https://github.com/kidino/Malaysia-s-Web-Hosts-and-X-Powered-By
2 February2014
http://www.exabytes.com.my/ - PHP/5.3.27
http://www.internet-webhosting.com/ - PHP/5.4.24
http://www.emerge.com.my/index.html - ASP.NET
http://www.serverfreak.com/ - PHP/5.3.28
https://www.shinjiru.com.my/ - ASP.NET
@kidino
kidino / PayPalEmail.php
Created October 27, 2014 03:48
Fix for BoxBilling for bb-library/Payment/Adapter/PayPalEmail.php
<?php
/**
* BoxBilling
*
* LICENSE
*
* This source file is subject to the license that is bundled
* with this package in the file LICENSE.txt
* It is also available through the world-wide-web at this URL:
* http://www.boxbilling.com/LICENSE.txt
@kidino
kidino / phpMalCodeScan.php
Created November 6, 2015 08:24
Find PHP scripts with eval() (potentially infected with malicious code)
<?php
/*
Plugin Name: php Malicious Code Scanner
Plugin URI: http://www.mikestowe.com/phpmalcode
Description: The php Malicious Code Scanner checks all files for one of the most common malicious code attacks, the eval( base64_decode() ) attack...
Version: 1.3 alpha
Author: Michael Stowe
Author URI: http://www.mikestowe.com
Credits: Based on the idea of Er. Rochak Chauhan (http://www.rochakchauhan.com/), rewritten for use with a cron job
License: GPL-2
@kidino
kidino / check.php
Last active April 6, 2017 13:51
PHP Simple Uptime Monitoring. Can be used in cron or command line.
<?php
error_reporting(E_STRICT | E_ALL);
$url_to_check = 'http://domain.zyz';
$downtime_message = 'WEBSITE IS DOWN : '. $url_to_check;
$uptime_message = 'WEBSITE IS BACK ONLINE : '.$url_to_check;
$notify_email = 'me@domain.xyz';
$from_ok = 'UPTIME OK';
$from_error = 'UPTIME ERROR';
@kidino
kidino / index.html
Created August 25, 2017 12:55
Suspended Website Template
<!--
_____ __ __ _____ ____ ___ ____ ___ ___ ___
/ ___/| | |/ ___/| \ / _]| \ | \ / _]| \
( \_ | | ( \_ | o ) [_ | _ || \ / [_ | \
\__ || | |\__ || _/ _]| | || D || _]| D |
/ \ || : |/ \ || | | [_ | | || || [_ | |
\ || |\ || | | || | || || || |
\___| \__,_| \___||__| |_____||__|__||_____||_____||_____|
@kidino
kidino / token-login.php
Created December 1, 2018 03:02
Login to WordPress web with JWT
<?php
/*
JWT TOKEN LOGIN -- Automatically logs a user in a WordPress site with JWT
This script allows you to log a user into a WordPress site automatically
based on his/her JSON Web Token (JWT). This assumes that you use the
following plugin and set it up properly on your WordPress site to enable
JWT authentication via REST API.
JWT Authentication for WP REST API
@kidino
kidino / Sample Teachers MySQL Table
Created April 14, 2019 02:56
A small sample table for learning and practicing MySQL
CREATE TABLE teachers
(teacher_id INT AUTO_INCREMENT PRIMARY KEY,
formal_title VARCHAR(25),
name_first VARCHAR(100),
name_last VARCHAR(100),
email_address VARCHAR(255));
INSERT INTO teachers
(formal_title, name_first, name_last, email_address)
VALUES
@kidino
kidino / teacher.html
Created April 19, 2019 03:00
Teacher Fusio Table
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Teacher</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css">
<script src="assets/js/jquery.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
@kidino
kidino / carousel-javascript.html
Last active April 27, 2020 23:56
Customizing Elementor Pro Image Carousell - Javascript