Skip to content

Instantly share code, notes, and snippets.

محسن داوری parsibox

Block or report user

Report or block parsibox

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@parsibox
parsibox / uceprotect.php
Created Aug 14, 2019
uceprotect checker
View uceprotect.php
<?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');
@parsibox
parsibox / fontawesome
Last active Aug 13, 2019
vuejs - start
View fontawesome
import fontawesome from '@fortawesome/fontawesome';
import FontAwesomeIcon from '@fortawesome/vue-fontawesome';
import falight from '@fortawesome/fontawesome-pro-light';
import fasolid from '@fortawesome/fontawesome-pro-solid';
fontawesome.library.add(falight, fasolid);
Vue.component(FontAwesomeIcon.name, FontAwesomeIcon);
@parsibox
parsibox / ipset
Created Aug 10, 2019
ایجاد بلک لیست در لینوکس
View ipset
ابتدا ipset رو نصب میکنید.
centos:
yum install ipset
ubuntu:
apt-get install ipset
@parsibox
parsibox / deleted.sh
Created Aug 10, 2019
find deleted file and used with proecess
View deleted.sh
lsof +L 1 / | grep -i deleted
View tshark.sh
sudo tshark -i ens160 -T fields -E separator="|" -t e -Y "tcp.port == 80 and http.request and http.request.method == \"POST\" and http.request.full_uri matches \"wp\"" -e frame.time -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport -e http.request.method -e http.request.full_uri -e data -e text
sudo tshark -i ens160 -T fields -E separator="|" -t e -R "tcp.port == 80 and http.request and http.request.method == \"POST\" and not http.request.full_uri matches \"webmail\" " -e frame.time -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport -e http.request.method -e http.request.full_uri -e data -e text
sudo tshark -i ens160 -T fields -E separator="|" -t e -R "tcp.port == 80 and http.request and http.request.method == \"POST\" and not http.request.full_uri matches \"webmail\" and not http.request.full_uri matches \"sabinnet\" " -e frame.time -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport -e http.request.method -e http.request.full_uri -e data -e text
View jquery-bootstrap-modal.js
/FOR SHOWING
$(window).on('shown.bs.modal', function() {
$('#code').modal('show');
alert('shown');
});
//FOR HIDDING
$(window).on('hidden.bs.modal', function() {
View 720
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
@parsibox
parsibox / soap.php
Created Jul 13, 2019
send long number in php soap
View soap.php
<?php
$parm = array();
$parm[] = new SoapVar('27809804001843174', XSD_STRING, null, null, 'ns1:payerId' );
$parm[] = new SoapVar('13980416', XSD_STRING, null, null, 'ns1:persianDate' );
$typedVar = new SoapVar($parm, SOAP_ENC_OBJECT);
$my_res=$client->__call("getTransactionByPayerId", array($typedVar ) );
?>
@parsibox
parsibox / remove.sh
Created Jul 13, 2019
remove line contain a string
View remove.sh
sed -i "/\b\(nf_conntrack_max\)\b/d" /etc/sysctl.conf
@parsibox
parsibox / php-fpm-cpu.sh
Last active Jul 7, 2019
php-fpm-cpu - test Wait a while, then hit Ctr-C
View php-fpm-cpu.sh
sudo strace -f $(pidof php-fpm | sed 's/\([0-9]*\)/\-p \1/g')
sudo strace -c -f $(pidof php-fpm | sed 's/\([0-9]*\)/\-p \1/g')
You can’t perform that action at this time.