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
| >>> import bcrypt | |
| >>> bcrypt.hashpw('logoocc', bcrypt.gensalt()) | |
| '$2b$12$DkYWPJ7MVBd3jUfhyF9w4OmgZ2ytj8UBvqQCYHf/GwamSxpCwQNpm' | |
| >>> bcrypt.checkpw('logoocc', bcrypt.hashpw('logoocc', bcrypt.gensalt())) | |
| True |
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
| 官方文档地址:https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Using_Firewalls.html#sec-Introduction_to_firewalld | |
| 1、firewalld简介 | |
| firewalld是centos7的一大特性,最大的好处有两个:支持动态更新,不用重启服务;第二个就是加入了防火墙的“zone”概念 | |
| firewalld有图形界面和工具界面,由于我在服务器上使用,图形界面请参照官方文档,本文以字符界面做介绍 | |
| firewalld的字符界面管理工具是 firewall-cmd | |
| firewalld默认配置文件有两个:/usr/lib/firewalld/ (系统配置,尽量不要修改)和 /etc/firewalld/ (用户配置地址) |
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
| CentOS 7 下安装和配置 Sonatype Nexus 3.3 | |
| http://qizhanming.com/blog/2017/05/16/install-sonatype-nexus-oss-33-on-centos-7 | |
| 2017-05-16 | 标签: centos, java, sonatype nexus | |
| 前言 | |
| CentOS 7 下安装 Sonatype Nexus OSS 3.3 ,因为 3.1 以后,相比 3.0 配置文件发生了一些变化,记录一下大致的安装和配置过程。 | |
| Sonatype Nexus 一直是 Maven 仓库管理工具,Nexus 3.1 之后新增了很多功能。 |
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
| Increase max number of ulimit open file in Linux | |
| 1.Step : open the sysctl.conf and add this line fs.file-max = 65536 | |
| $ vi /etc/sysctl.conf | |
| add new line and | |
| fs.file-max = 65536 |
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
| 股权要放的出去,也要收的回来。 在的时候就要想到如何退 ,不忠退。 期满退出、退休提出、辞职退出、意外退出、 违法退出、 这个我们在提前就要把他设定好。 |
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
| <?xml version='1.0' encoding='utf-8'?> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one or more | |
| contributor license agreements. See the NOTICE file distributed with | |
| this work for additional information regarding copyright ownership. | |
| The ASF licenses this file to You under the Apache License, Version 2.0 | |
| (the "License"); you may not use this file except in compliance with | |
| the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 |
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
| MySQL聚合函数 | |
| MySQL聚合函数 - 提供最常用的MySQL聚合函数的简要概述。 | |
| avg()函数 - 计算一组值或表达式的平均值。 | |
| count()函数 - 计算表中的行数。 | |
| instr()函数 - 返回子字符串在字符串中第一次出现的位置。 | |
| sum()函数 - 计算一组值或表达式的总和。 | |
| min()函数 - 在一组值中找到最小值。 | |
| max()函数 - 在一组值中找到最大值。 | |
| group_concat()函数 - 将字符串从分组中连接成具有各种选项(如DISTINCT,ORDER BY和SEPARATOR)的字符串。 | |
| MySQL标准偏差函数 - 显示如何计算人口标准偏差和样本标准偏差。 |
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
| mysql> DELIMITER $ //将SQL语句的结束符设置为# | |
| mysql> CREATE TRIGGER t_after_insert_userRoles | |
| AFTER INSERT ON | |
| userRoles | |
| FOR EACH ROW | |
| BEGIN | |
| update users set isManager = 1 where userId = new.userId and new.roleId = 1; | |
| END$ | |
| mysql> DELIMITER ; //将SQL语句的结束符设重置为;以不影响后续使用 |
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
| GoLang 获取变量类型 | |
| 分类: 实例代码 关键字: reflect type 类型 • golangnote 于 2015-09-05 22:55 发表 • 2533阅 | |
| Go 语言可通过reflect 包获取某个变量的类型: | |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) |
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
| 现在最高票答案是法律界人士(裴森的答案)解答的,很好,那我这个实干界的人士补充一下,因为你真的开公司了,有些实际操作的细节这上面的所有答案都没说清楚,当然内容也许和问题不直接相关,但还是写下,避免碰到相应问题搜答案的知友: | |
| 1. 注册资本制度大概经历了三个标志性的阶段:1)你说注册资本写100万,你一分不少拿出来证明一下你有能力拿100万;2)你不用一次性拿100万了,但是要先拿个二三十万证明一下你有能力,后续款项也必须在几年内缴清;3)你自己和一起开公司的人商量好,什么时候把100万交到公司,一开始可以一分钱不拿,也不用证明你有这个能力拿了。但是你们的约定要以书面形式写出来,并且到工商局备案。 | |
| 2. 2014年后的新《公司法》,对应的就是上述的第三个阶段。以下内容针对2014年出的《公司法》适用。 | |
| 3. 实际操作中,一开始不可能一分钱不拿出来,你还是要往公司账户里打个几万块钱用于一些开支的。不然税务法方面会有些麻烦。 | |
| 4. 你执照上写的「注册资本」的金额,就是你打算交给公司的钱,也称「认缴资本」;你实际交给公司的钱,叫做「实缴资本」。 | |
| 5. 公司以前每年要年检,现改为企业公示。公示时你要面临填写一个出资信息。其中「认缴资本」金额写你准备交给公司的钱,有多个股东,就相应的写各自准备交的金额。 | |
| 6. 认缴资本的出资日期为你们约定好的,写到《公司章程》里的那一天,不是公司成立的那一天。比如我2014年1月1日开公司,约定好2024年1月1日交给公司100万,那么认缴出资日期为2024年的1月1日。 | |
| 7. 实缴出资金额和时间按照要求发生后20天公示。但实际操作一般不写,等到出资全部到位才公示。这就是第3点说的,你写个注册资本100万,结果你每个月往公司账户上打1万,要是你每个月到公示系统写下1万的出资情况,那公示页面好看了·~ |