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 / soap.php
Created Jul 13, 2019
send long number in php soap
View soap.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 /
Created Jul 13, 2019
remove line contain a string
sed -i "/\b\(nf_conntrack_max\)\b/d" /etc/sysctl.conf
parsibox /
Last active Jul 7, 2019
php-fpm-cpu - test Wait a while, then hit Ctr-C
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')
crontab -l | grep sms
echo "* * * * * cd /var/www/html/core/cron/;/usr/bin/php70 xxxx.php >/dev/null 2>&1 " >> /var/spool/cron/root
crontab -l | grep -v 'sms' | crontab -
parsibox /
Created Jun 13, 2019
reading a file and convert it to single line variable in bash script
DATE="$(awk '{ printf "%s", $0 }' /var/www/s.php)" ;
parsibox / jquery-change-css-variables.html
Created May 27, 2019
change css variables with jquery!
View jquery-change-css-variables.html
<!DOCTYPE html>
body {
--color: blue;
background-color: var(--color);
parsibox / svg-save.js
Created May 26, 2019
save svg on page - You can run this code on your javascript console:
View svg-save.js
var e = document.createElement('script');
e.setAttribute('src', '');
e.setAttribute('class', 'svg-crowbar');
parsibox / persian_harf.php
Created May 13, 2019
persian alphabet in php array
View persian_harf.php
parsibox / nginx.conf
Created May 13, 2019
proxy nodejs on nginx on folder!
View nginx.conf
location ^~/nodejs {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Fowarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Fowarded-Proto $scheme;
parsibox / bank.php
Created May 9, 2019
iranian payment card bank name
View bank.php
$card_bank['ملی قدیمی']='170019';
$card_bank['توسعه صادرات']='207177';
$card_bank['پاسارگاد - فناپ']='502229';
$card_bank['اعتباری شهر']='502806';
You can’t perform that action at this time.