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
'use strict' | |
const express = require('express') | |
const bodyParser = require('body-parser') | |
var webshot = require('/root/node-webshot/lib/webshot') | |
var options = { shotSize: { height: 'all' } , renderDelay : 500 , quality : 75 }; | |
const app = express() | |
app.use(bodyParser.urlencoded({ extended: false })) | |
app.use('/images', express.static(__dirname + '/images')) | |
app.post('/web', function (req, res) { | |
const myurl = req.body.myurl ; |
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
function check_only_farsi_harf($data_string){ | |
if ( strpos( $data_string , '-' ) !==false ){ | |
return 'no'; | |
} | |
if ( strpos( $data_string , '@' ) !==false ){ | |
return 'no'; | |
} |
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 | |
$date=date('Y-m-d H:i:s'); | |
?> |
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
for k in ` tail -100000 /var/log/httpd/domains/omranifard.com.log | grep POST | awk '{print $1}' | uniq -c `; do sh /var/www/html/davari/ipblock.sh $k; done |
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 | |
if(!function_exists('curl_init')) { | |
die('cURL not available!'); | |
} | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_FAILONERROR, true); | |
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); | |
curl_setopt($curl, CURLOPT_REFERER, 'http://www.uceprotect.net/en/rblcheck.php'); |
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
$dom = new DOMDocument(); | |
@$dom->loadHTML(mb_convert_encoding( $output_3, 'HTML-ENTITIES', 'UTF-8')); | |
$xpath = new DOMXPath($dom); | |
$table=$xpath->query("//div[contains(@class, 'accordion-inner')]");//accordion-body | |
print_r( $table->length ); |
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
yum install -y openssl-devel libxml2-devel texlive-* m4 gcc-c++ make | |
yum-config-manager --disable mysql80-community | |
yum-config-manager --enable mysql57-community | |
yum install -y mysql-devel | |
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
https://hostpresto.com/community/tutorials/how-to-install-and-configure-squid-proxy-on-centos-7/ |
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
<link href="/js/fontawesome_iconpicker/css/fontawesome-iconpicker.min.css" rel="stylesheet"> | |
<script src="/js/fontawesome_iconpicker/js/fontawesome-iconpicker.min.js"></script> | |
<input data-input-search="true" class="form-control icp icp-auto" value="fa-plane" type="text" id="icon" /> | |
<script>$('.icp-auto').iconpicker({placement: 'topRight'} );</script> |
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
https://subinsb.com/html5-record-mic-voice/ |