Viewing 1 to 10 of 14 items
Archive | Code Snippets RSS feed for this section

Use Cron to run a php script from a URL

If your php script can be invoked using an URL, you can lynx, or curl, or wget to setup your crontab as shown below. The following script executes the php script (every hour) by calling the URL using the lynx text browser. Lynx text browser by default opens a URL in the interactive mode. However,  Full Article…

0

Clean a hacked WordPress website

Use the online RedLeg fileviewer to scan the website in question for malware, malicious redirects, malicious scripts and other bad stuff. Use the online deobfuscate javascript tool to deobfuscate javascript if scripts have been hidden. Some good practises to keep your website free from hacks: Update WordPress to the latest version Web-server hosting WordPress should  Full Article…

0

Internet Explorer – Version specific css rules

Amazing article published here originally: http://keithclark.co.uk/articles/moving-ie-specific-css-into-media-blocks/media-tests/ Exclusively targeting IE browsers Style rules defined in the following blocks will only be applied in IE, other browsers will ignore them. Rule IE 6 IE 7 IE 8 IE 9 IE 10 @media screen\0 {…} No No Yes Yes Yes @media screen\9 {…} Yes Yes No No No @media  Full Article…

0

Fix grey google maps

I found this issue with the Manutec store finder. This css fixed the issue returning maps back to their normal display.

0

OS X El Capitan- How to Flush DNS Cache

Open up terminal (/Applications/Utilities/). Enter the following command: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; say DNS cache flushed Enter the admin password when requested (required by sudo) to execute the DNS cache clearing. You will hear “DNS Cache flushed” when the command has been completed successfully.

0

Useful Google Spreadsheets Transpose Cell Values

=transpose(split(join(“;”,B:B)&join(“;”,C:C)&join(“;”,D:D)&join(“;”,E:E)&join(“;”,F:F)&join(“;”,G:G)&join(“;”,H:H)&join(“;”,I:I)&join(“;”,J:J)&join(“;”,K:K)&join(“;”,L:L)&join(“;”,M:M)&join(“;”,N:N)&join(“;”,O:O)&join(“;”,P:P)&join(“;”,Q:Q)&join(“;”,R:R)&join(“;”,S:S)&join(“;”,T:T)&join(“;”,U:U)&join(“;”,V:V)&join(“;”,W:W)&join(“;”,X:X)&join(“;”,Y:Y)&join(“;”,Z:Z),”;”)) =transpose(split(join(“;”,AA:AA)&join(“;”,AB:AB)&join(“;”,AC:AC)&join(“;”,AD:AD)&join(“;”,AE:AE)&join(“;”,AF:AF)&join(“;”,AG:AG)&join(“;”,AH:AH)&join(“;”,AI:AI)&join(“;”,AJ:AJ)&join(“;”,AK:AK)&join(“;”,AL:AL)&join(“;”,AM:AM)&join(“;”,AN:AN)&join(“;”,AO:AO)&join(“;”,AP:AP)&join(“;”,AQ:AQ)&join(“;”,AR:AR)&join(“;”,AS:AS)&join(“;”,AT:AT)&join(“;”,AU:AU)&join(“;”,AV:AV)&join(“;”,AW:AW)&join(“;”,AX:AX)&join(“;”,AY:AY)&join(“;”,AZ:AZ),”;”)) =transpose(split(join(“;”,BA:BA)&join(“;”,BB:BB)&join(“;”,BC:BC)&join(“;”,BD:BD)&join(“;”,BE:BE)&join(“;”,BF:BF)&join(“;”,BG:BG)&join(“;”,BH:BH)&join(“;”,BI:BI)&join(“;”,BJ:BJ)&join(“;”,BK:BK)&join(“;”,BL:BL)&join(“;”,BM:BM)&join(“;”,BN:BN)&join(“;”,BO:BO)&join(“;”,BP:BP)&join(“;”,BQ:BQ)&join(“;”,BR:BR)&join(“;”,BS:BS)&join(“;”,BT:BT)&join(“;”,BU:BU)&join(“;”,BV:BV)&join(“;”,BW:BW)&join(“;”,BX:BX)&join(“;”,BY:BY)&join(“;”,BZ:BZ),”;”)) =transpose(split(join(“;”,CA:CA)&join(“;”,CB:CB)&join(“;”,CC:CC)&join(“;”,CD:CD)&join(“;”,CE:CE)&join(“;”,CF:CF)&join(“;”,CG:CG)&join(“;”,CH:CH)&join(“;”,CI:CI)&join(“;”,CJ:CJ)&join(“;”,CK:CK)&join(“;”,CL:CL),”;”))

0