This file contains hidden or 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 | |
$url = 'https://www.toptal.com/developers/cssminifier/api/raw'; | |
// init the request, set various options, and send it | |
$ch = curl_init(); | |
curl_setopt_array($ch, [ | |
CURLOPT_URL => $url, | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_POST => true, |
This file contains hidden or 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 | |
$month = date('m'); | |
$day = date('d'); | |
$year = date('Y'); | |
function isJewishLeapYear($year) { | |
if ($year % 19 == 0 || $year % 19 == 3 || $year % 19 == 6 || | |
$year % 19 == 8 || $year % 19 == 11 || $year % 19 == 14 || | |
$year % 19 == 17) |
This file contains hidden or 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 | |
error_reporting(E_ALL); | |
/** | |
* A 'fake' Codeigniter framework for testing codeigniter-redis | |
* I seriously wrote this because it was faster than setting up another CI install, so I can | |
* work on it without breaking stuff that other people are using. | |
* Written by Tim Post <[email protected]> I take no responsibility for what comes below! | |
**/ | |
/* Provide some of the CI common functions */ |
This file contains hidden or 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 | |
/** | |
* Name: (OTP-Auth) One-Time Password Authentication | |
* Auth: Jason Jersey | |
* Date: 12-24-2017 | |
* Link: https://gist.github.com/icryptix/130fa81ca15925b8553bec8700e5813d | |
*/ | |
/* Verifying whether OTP 1 hour cookie is set */ | |
if(isset($_COOKIE["sitename_otp_cookie"])){ |
This file contains hidden or 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 | |
function get_cookies( $paras = '', $content = '' ) { | |
if ( strtolower( $paras[ 0 ] ) == 'novalue' ) { $novalue = true; } else { $novalue = false; } | |
if ( $content == '' ) { $seperator = ' : '; } else { $seperator = $content; } | |
$cookie = $_COOKIE; | |
ksort( $cookie ); |
This file contains hidden or 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
Go to START MENU | |
Go to RUN | |
Type CMD | |
Run below 6 commands one by one. Copy and paste them one by one into CMD and click ENTER after adding each. | |
(In CMD, you just have to click with your right mouse button to paste) | |
ipconfig /release | |
ipconfig /all | |
ipconfig /flushdns |
This file contains hidden or 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
1. Go to the start menu | |
2. Go to your browser | |
3. Click on it and open it up | |
4. Type this following command in the browsers address bar. This is the same place you normally type in https://www.mydomain.com | |
chrome://net-internals/#sockets | |
5. Click “Flush Socket Pools”, located at the Top of the screen. | |
6. Restart browser |
This file contains hidden or 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
https://support.cloudflare.com/hc/en-us/requests | |
https://support.cloudflare.com/hc/en-us/requests/new |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<title>Off Canvas Reveal Menu Template for Bootstrap</title> |
This file contains hidden or 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
ALTER TABLE table_name ENGINE=InnoDB; |
NewerOlder