2016年1月18日 星期一

fix: Warning: Running "imagemin:dist" (imagemin) task Fatal error: Cannot read property 'contents' of undefined


Warning: Running "imagemin:dist" (imagemin) task

Fatal error: Cannot read property 'contents' of undefined



https://github.com/gruntjs/grunt-contrib-imagemin/issues/333

changed the grunt-contrib-imagemin version to 1.0.0 and imagemin version to 4.0.0, as below prcture


Undefined mixin 'clearfix' / npm install bower install grunt

    directory .tmp/styles
        error app/styles/main.scss (Line 104 of app/styles/_product.scss: Undefined mixin 'clearfix'.)


@mixin clearfix() {
&:before,
&:after {
content: ' '; // 1
display: table; // 2
}
&:after {
clear: both;
}
*zoom: 1; // Trigger IE6/7 'hasLayout'
}

2016年1月12日 星期二

gsutil

gsutil




gsutil ls

gsutil mb gs://abc

gsutil cp infor.html gs://peterbucket/

gsutil acl set acl.txt gs://peterbucket/infor.html

gsutil acl get gs://peterbucket/1.jpg > acl.txt



=====================================================


cal.txt
  {
    "entity": "allUsers",
    "role": "READER"
  }


=====================================================

download folder recursively


gsutil -m cp -R gs://bundle_asia_dra/HTC .

=====================================================

copying a folder from A to B



gsutil cp -r  gs://A/ gs://B/

gsutil cp -r  gs://bundle_asia_dra/iStagingFurniture/iOS/single/paint/ChangYuHuai gs://bundle_asia_dra/iStagingFurniture/ios_paint/


=====================================================

share file publicly


gsutil -m acl set -R -a public-read gs://bundle_asia_dra/iStagingFurniture/ios_paint/


=====================================================

Show size of all objects

gsutil du gs://bucketname

=====================================================

Sync two bucket or directory


gsutil rsync -d -r gs://mybucket1 gs://mybucket2

=====================================================