Tuesday, November 24, 2015

Node and Gulp global install

npm install
npm install gulp -g
npm install -g bower
npm install bower --save-dev
npm rebuild node-sass


bower install
bower update
Should yeild return:
cat .\bower.json

Tuesday, November 17, 2015

IIS - Changing frequentHitThreshold and TimePeriod for gzip for Improved Web Performance

serverRuntime attributeDescription
frequentHitThresholdNumber of times a URL must be requested within the time span specified in thefrequentHitTimePeriod attribute to be considered frequently hit. Must be between 1 and 2147483647. Default is 2.
frequentHitTimePeriodTime interval in which a URL must be requested the number of times specified in the frequentHitThreshold attribute before it is considered to be frequently hit. Default is 10 seconds.


Add the followgin Web.config
 <system.webServer>
    <serverRuntime frequentHitThreshold="1" frequentHitTimePeriod="10:00:00" />



Unlock command in cmd (otherwise it won't work acess errors):

 C:\Windows\System32\inetsrv>appcmd.exe unlock config /section:system.webServer/s  
 erverRuntime  
 Unlocked section "system.webServer/serverRuntime" at configuration path "MACHINE  
 /WEBROOT/APPHOST".  

If this doesn't work try this:
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/serverRuntime

Good Optimisation article:

Monday, November 16, 2015

Validate MD5 in Windows


In CMD just type:
CertUtil -hashfile <FILEPATH> MD5

will return the correct hash to validate against.