global
maxconn 2048
tune.ssl.default-dh-param 2048
defaults
option forwardfor
option http-server-close
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 | |
require('mysql.php'); // see https://gist.github.com/paxmanchris/f5d4b94f67a8acd8cefc | |
$me = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; | |
$sso_secret = 'YOUR_SSO_PROVIDER_KEY_HERE'; | |
$discourse_url = 'http://example.com'; | |
if(!empty($_GET) and isset($_GET['sso'])){ |
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
// Written by (C) Rafsun Masud Prince known | |
if (window.location.hostname != "www.messenger.com") { | |
alert("Bạn không truy cập trang messenger.com . Vui lòng truy cập trang messenger.com để sử dụng !"); | |
throw new Error("You are not on Messenger. Please visit www.messenger.com then try again."); | |
} | |
(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; |
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 | |
/** | |
* Replace img tag with amp-img | |
* | |
* <amp-img src="[src]" | |
* width="[width]" | |
* height="[height]" | |
* layout="responsive" | |
* alt="[alt]"> | |
* </amp-img> |
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
$(allInView); | |
$(window).scroll(allInView); | |
function isScrolledIntoView(elem) { | |
var docViewTop = $(window).scrollTop(); | |
var docViewBottom = docViewTop + $(window).height(); | |
var elemTop = $(elem).offset().top; | |
var elemBottom = elemTop + $(elem).height(); | |
return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)); | |
} | |
var inited = false; |
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
var layiduser = document.querySelectorAll("a._42ft._4jy0._4jy3._517h._51sy"); | |
for (var i = 0; i < layiduser.length; i++) { | |
(function(i){ | |
window.setTimeout(function(){ | |
layiduser[i].click(); | |
console.log('Thành công ' + i + ' Người đã invite'); | |
}, i * 1000); | |
}(i)); | |
} |
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 | |
$url = isset($_GET['url']) ? $_GET['url'] : null; | |
if (!$url) { | |
die('Please, inform URL'); | |
} | |
$imgInfo = getimagesize( $url ); |
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 | |
class Address { | |
public $street; | |
public $town; | |
} | |
class Customer { | |
public $id; | |
public $name; |
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 | |
abstract class Loader | |
{ | |
abstract public function load(); | |
} | |
class PaymentLoader extends Loader | |
{ | |
protected $id; |
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 | |
/** | |
* Plugin Name: Lazy Load | |
* Description: Lazy load images to improve page load times. Uses jQuery.sonar to only load an image when it's visible in the viewport. | |
* Version: 0.5 | |
* | |
* Code by the WordPress.com VIP team, TechCrunch 2011 Redesign team, and Jake Goldman (10up LLC). | |
* Uses jQuery.sonar by Dave Artz (AOL): http://www.artzstudio.com/files/jquery-boston-2010/jquery.sonar/ | |
* | |
* License: GPL2 |
OlderNewer