Skip to content

Instantly share code, notes, and snippets.

View parsibox's full-sized avatar

Mohsen Davari parsibox

View GitHub Profile
@parsibox
parsibox / ip.sh
Created November 6, 2022 09:10
whatsapp and instagram ip list for microtik
/ip firewall address-list
add address=3.33.221.48/32 list=Meta
add address=3.33.252.61/32 list=Meta
add address=15.197.206.217/32 list=Meta
add address=15.197.210.208/32 list=Meta
https://www.motobit.com/util/charset-codepage-conversion.asp
@parsibox
parsibox / licens.txt
Created November 3, 2022 22:26
proxyfire license list
Company Name : sERIAL kILLER
Registration Keys
For Standard Version
.KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
.T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
.KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
.65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
@parsibox
parsibox / find.bat
Created October 26, 2022 17:50
windows 11 find Process patch by name
for /l %%x in (1, 1, 100) do (
WMIC Process WHERE "Name like '%%aapt2%%'" GET executablepath
)
cat /var/log/nginx/access.log | grep " 404 " | awk ' {print $1} ' | sort |uniq -c| sort -nr
cat /var/log/nginx/access.log | grep POST | awk ' {print $1} ' | sort |uniq -c| sort -nr
cat /var/log/nginx/access_mci_analytics.log | grep "status\": \"404\"" | awk ' {print $14} ' | sort |uniq -c| sort -nr
@parsibox
parsibox / gist:a93456fb603b6690ee3c5105f0dd93a5
Created June 5, 2022 10:54
by pass composer php version
Just add below code to your composer.json file to set different php version:
```
"config": {
"platform": {
"php": "7.0.0"
}
}
```
If you just need to get composer to ignore the version requirements, you can bypass using:
@parsibox
parsibox / ssl.sh
Created May 5, 2022 06:24
Installing the Certbot Let’s Encrypt ssl
sudo yum install -y epel-release
sudo yum install -y certbot-nginx
sudo firewall-cmd --add-service=http
sudo firewall-cmd --add-service=https
sudo firewall-cmd --runtime-to-permanent
sudo certbot --nginx -d example.com -d www.example.com
@parsibox
parsibox / delay.js
Created March 11, 2022 06:47
nodejs best delay
var waitTill = new Date(new Date().getTime() + seconds * 1000);
while(waitTill > new Date()){}
cd /usr/local/directadmin/custombuild
./build update
./build set php1_release "7.4"
./build update
./build set php1_mode php-fpm
./build set mod_ruid2 no
./build set htscanner yes
./build mod_htscanner2
./build php n
./build rewrite_confs
@parsibox
parsibox / gist:d1f4c7da23cc4d658ee5f62ad89d69f8
Last active March 5, 2022 09:25
kill old html proccess
ps aux | grep ".php"| grep -v "master" | grep -v "pool" | grep -v $(date +%H): | grep -v grep | sort -k8 | head -n 10
ps aux | grep ".php"| grep -v "master" | grep -v "pool" | grep -v $(date +%H): | grep -v grep | sort -k8 | head -n 10 |awk '{print $2}' | xargs kill -9