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…
How to Target Internet Explorer 10 and 11 in CSS
Logic taken from here: https://philipnewcomer.net/2014/04/target-internet-explorer-10-11-css/ -ms-high-contrast supports two values: none and active. So to target IE10+ regardless of the property’s setting, use this media query:
Detect the WordPress login page
As seen here: https://stevegrunwell.com/blog/quick-tip-is_login_page-function-for-wordpress/ Add this function: Then you can use:
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…
Add a browser css selector to your html tag
See this great tool: https://github.com/crucifyer/css-browser-selector Demo page here: http://crucifyer.github.io/css-browser-selector/
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…
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.
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.
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),”;”))
Insert a Gravity Form with Advanced Custom Fields
Download the ACF – Gravity Forms Field from GitHub. Then use this code or something similar: