Gitlab 上nginx反向代理

Gitlab以8080端口启动。通过反向代理配置使用/git目录来进行访问。共用nginx

nginx上增加以下配置

gitlab.rb

 

 

 

CentOS 7 上新建通过HTTPS访问的Git Server

1. 安装Fastcgiwrap

 

vi /etc/init.d/fcgiwrap

start fcgiwrap

nginx.conf

 

restart nginx

git clone https://www.xiaohui.org/git/my-project.git

 

 

 

 

 

 

 

http://qiita.com/egnr-in-6matroom/items/2a052339ee0515b31fdf

2015的最后一天

2015的最后一天,公司里稍显平静,不少人已经提前请假过元旦了。

回想下这一年忙了些什么,思绪万千,学业上研究生是最后一年,工作上考了项目管理专业上的PMP认证和信息系统项目管理师,英文学习上感觉进步不大。家庭上,女儿的教育方面思路清晰了一些,但又没有太多时间来完全实践。同时忙于多件事情,经常是每件事情都没有办法投入很多时间,都做不到自己满意的程度。

认真总结起来这一年,只好说两个字“瞎忙”

Organizational Behavior 15th edition, Chapter 1 What is Organizational behavior

 

Effective versus Successful Managerial Activities

Fred Luthans and his associates looked at what managers do from a somewhat different perspective. 9 They asked, “Do managers who move up the quickest in an organization do the same activities and with the same emphasis as managers who do the best job?” You might think the answer is yes, but that’s not always the case.
Luthans and his associates studied more than 450 managers. All engaged in
four managerial activities:

1. Traditional management. Decision making, planning, and controlling.
2. Communication. Exchanging routine information and processing paperwork.
3. Human resource management. Motivating, disciplining, managing conflict, staffing, and training.
4. Networking. Socializing, politicking, and interacting with outsiders.

allocation of activites by time

The “average” manager spent 32 percent of his or her time in traditional management activities, 29 percent communicating, 20 percent in human resource management activities, and 19 percent networking. However, the time and effort different individual managers spent on those activities varied a great deal. As shown in Exhibit 1-2 , among managers who were successful (defined in terms of speed of promotion within their organization), networking madethe largest relative contribution to success, and human resource management activities made the least relative contribution. Among effective managers (defined in terms of quantity and quality of their performance and the satisfaction and commitment of employees), communication made the largest relative contribution and networking the least. More recent studies in Australia,Israel, Italy, Japan, and the United States confirm the link between networking and social relationships and success within an organization. 10 And the connection between communication and effective managers is also clear. A study of 410 U.S. managers indicates those who seek information from colleagues and employees—even if it’s negative—and who explain their decisions are the most effective. 11

This research offers important insights. Successful managers give almost the opposite emphases to traditional management, communication, human resource management, and networking as do effective managers. This finding challenges the historical assumption that promotions are based on performance, and it illustrates the importance of networking and political skills in getting ahead in organizations.

 

博客从Linode搬到了HOSTUS

这个博客搬家了好多次。今天有从Linode搬到了HOSTUS,开了几次PPTP的VPN,然后貌似被GFW盯上了,狂丢包,找Linode申请换了IP,是好了,但是想想Linode 10刀一个月,是有点贵。索性就换到了HOSTUS的HK节点。速度也不错。配置也够用,关键还比价便宜,35刀一年。装了shadowsocks,翻墙速度还不错。就不装PPTP vpn了,HOSTUS有个不好的是不给换IP,给GFW盯上就废了。

趁着这次搬迁,顺便调整了一下各个应用的版本和配置。。

  • Nginx升级到了1.9.7
  • 全站强制SSL
  • 支持 HSTS (HTTP Strict Transport Security)
  • 支持 Certificate Transparency
  • 支持OCSP Stapling(Online Certificate Status Protocol)
  • 启用了HTTP 2.0,也兼容HTTP 1.1
  • 去掉对不安全SSL协议和Cipher的支持
  • PHP升级到5.6.15
  • 启用了Xcache
  • 免费SSL证书提供商从Startssl.com 换到了letsencrypt.org
  • DNS Server从dnspod换回了Godaddy
  • WordPress上用Updraftplus 每日将数据备份到Google Drive