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

Debugging dns glue records

Sometimes you need to check which glue records are used on domain and where they are pointed First you should check which nameserver is responding for this tld. For example if we wanna check .com domain we need to ask

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

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