This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SSLEngine on | |
| # 添加 SSL 协议支持协议,去掉不安全的协议 | |
| SSLProtocol all -SSLv2 -SSLv3 | |
| # 修改加密套件如下 | |
| SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM | |
| SSLHonorCipherOrder on | |
| # 证书公钥配置 | |
| SSLCertificateFile D:\phpStudy\Apache\cert\wechat\public.pem | |
| # 证书私钥配置 | |
| SSLCertificateKeyFile D:\phpStudy\Apache\cert\wechat\214560089640022.key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.$(date +"%Y%m%d_%H%M%S").sql | |
| # 压缩版本 | |
| docker exec CONTAINER /usr/bin/mysqldump --user=root --password=password banma | gzip > banma.$(date +"%Y%m%d_%H%M%S").sql.gz | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new BottomNavigationBarItem( | |
| icon: new Stack( | |
| overflow: Overflow.visible, | |
| alignment: FractionalOffset.topRight, | |
| children: <Widget>[ | |
| const Icon(Icons.shopping_cart), | |
| new Positioned(child: new Text('12'),right: -8.0,top: -8.0,) | |
| ], | |
| ), | |
| title: new Text('购物车') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| persistentFooterButtons: <Widget>[ | |
| new FlatButton( | |
| onPressed: (){ | |
| showModalBottomSheet<String>(context: context, builder: (BuildContext context){ | |
| return new GestureDetector( | |
| onTap: (){}, | |
| child: _selectProductSpec(), | |
| ); | |
| }); | |
| }, |