Архиви на блога

chan_dongle modem config

Modem settings: AT+CCWA=0,0,1                    #disable call-waitingAT+CFUN=1,1                      #reset dongleAT^SYSCFG=13,0,3FFFFFFF,0,3      #modem 2G only, any band, no roaming Deleting SMS in sim card memory. After deleting messages you should reset modem. dongle cmd dongle0 AT+CPMS=\“SM\“,\“SM\“,\“SM\“ dongle cmd dongle0

С етикет: ,
Публикувано в linux, sip

search for short open tags

If you use Linux and try to search for all php files containing short open tags you can use following command find -type f -exec grep -IlP ‘<\?(?!(php|xml|=))’ {} +

С етикет: , ,
Публикувано в linux, php

split mp4 file by size on linux

mkvmerge -o outputprefix –split 1G origfile.mp4 You can use mkvmerge from the packet mkvtoolnix which can easy and fast do the job

С етикет: , , ,
Публикувано в linux

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource

If you have following error Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at Then you need to add some lines to your .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / Header add Access-Control-Allow-Origin „*“ Header

С етикет: , , , ,
Публикувано в Joomla, linux, wordpress

check for eval(base64 in multiple files

If you have hacked joomla or wordpress site you need to check all your site files This commans search all files in current dir and subdirs for eval(base64 which is one of most used combination find * -name ‘*.php’ |xargs

Публикувано в linux