Code Monkey home page Code Monkey logo

2016-daily-plan's Introduction

我们的创业团队目前致力于物联网行业和电力行业云平台建设,我们的平台产品有着广阔的技术栈,如果你有兴趣,可以联系我了解一下我们的团队和产品。全职的话公司在河南洛阳。如果你想远程工作,可以找我私聊

微信: kuuyee2018

全栈工程师

职位描述

  • 负责公司产品以及公司实施项目的前后端开发(前端为主)
  • 前端界面原型实现:根据开发需求,同需求分析小组及UI沟通确认系统的前端界面原型并开发实现
  • 前后端技术选型与探索:根据后续业务发展的需求,跟进业界当前的后端技术发展方向,为后续的产品开发提供技术储备
  • 前端的设计和开发,熟悉后端技术体系
  • 前后端完全分离,配合前端开发人员实现产品功能

任职资格

  1. 本科及以上学历,计算机软件或相关专业优先
  2. 了解后端开发,有Express开发工作经验,了解Node底层设计原理者优先,
  3. 至少熟悉Java/Python/Nodejs一种后端语言
  4. 精通JavaScript原生开发, 熟悉TypeSript者优先
  5. 熟悉Pg/MySQL数据库, 熟悉ORM框架
  6. 有CI/CD概念,了解后端工程化者优先
  7. 了解模块化开发的思想
  8. 有较强的责任心、分析解决问题的能力以及良好的团队合作意识
  9. 提供参与的github开源项目者优先

2016-daily-plan's People

Contributors

kuuyee avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

eagle2015

2016-daily-plan's Issues

2016-01-13

英语

  • 《夏洛的网》(14-20) ✅

Go语言

  • Martini框架学习:white_check_mark:

产品

  • 设备数据库案例原型开发:worried:

其它

交付成果
😟

解决sudo command not found的问题

问题的原因: 在编译sudo包的时候默认开启了- -with-secure-path选项。
必须用绝对路径命令才有效
解决办法
~/.bashrc加入下面的配置

alias sudo='sudo env PATH=$PATH'

2016-01-07

英语

  • 《夏洛的网》 ✅ 交付成果 及周四阅读部分
  • 雅思听力 😟

Go语言

  • net/http包学习 ✅ 交付成果
  • 《The Way to Go》13章(1、2、3、4)节 😟

产品

  • 设备数据库原型设计 ✅

其它

2016-01-10

英语

  • 《夏洛的网》(1-6) ✅

Go语言

  • Martini框架学习 ✅
  • 《The Way to Go》13章(4、5、6、7)节:worried:

产品

  • 设备数据库案例原型设计(PPT):white_check_mark:

其它

交付成果
😟

2016-01-09

英语

  • 《夏洛的网》(34-37)

产品

  • 设备数据库原型设计 (案例原型图)

其它

交付成果
😟

2016-01-11

英语

  • 《夏洛的网》(7-13) ✅

Go语言

  • Martini框架学习:white_check_mark:
  • 《The Way to Go》13章(4、5、6、7)节:white_check_mark:

产品

  • 设备数据库案例原型设计(PPT):worried:

其它

交付成果
😟

aws-ec2启动root登录

1. 根据官网提供的方法登录连接到EC2服务器

2. 创建root的密码,输入如下命令:

sudo passwd root

3.然后会提示你输入new password。输入一个你要设置的root的密码,需要你再输入一遍进行验证。

4.接下来,切换到root身份,输入如下命令:

su root

5.使用root身份编辑亚马逊云主机的ssh登录方式,找到 PasswordAuthentication no,把no改成yes。输入:

vim /etc/ssh/sshd_config

6.接下来,要重新启动下sshd,如下命令:

sudo /sbin/service sshd restart

7.然后再切换到root身份

su root

8.再为原来的”ec2-user”添加登录密码。如下命令:

passwd ec2-user

9.按提示,两次输入密码。到此可以用root身份直接登录EC2的服务器了。

Centos源码安装Git最新版

卸载低版本Git


sudo yum remove git

下载解压最新Git


sudo wget -c "https://www.kernel.org/pub/software/scm/git/git-2.10.1.tar.gz"

sudo tar zxf git-2.10.1.tar.gz

安装依赖库并安装


sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel

sudo gcc perl-ExtUtils-MakeMaker

 cd git-2.10.1


sudo make prefix=/usr/local/git all

sudo make prefix=/usr/local/git install

配置环境变量

编辑/etc/profile,加入如下内容:


export PATH=$PATH:/usr/local/git/bin

2016-01-08

英语

Go语言

  • Martini框架学习 😟
  • 《The Way to Go》13章(1、2、3、4)节 ✅

产品

  • 设备数据库原型设计 ✅ 交付成果:电厂设备优化模型

其它

交付成果
😟

鸟哥Linux私房菜学习笔记-14章-账号管理与权限

账号管理及权限设置

新增账号


useradd -u 700 -g root kuuyee


-g 指定有效用户组

-G 还可以加入的用户组

-M 强制!不要创建用户主目录

-m 强制!要创建用户目录

-c /etc/passed这个第五列的说明内容

-d 指定用户目录的位置

-r 创建一个系统账号,uid一般在500以内

-s 指定用户使用的shell,默认/bin/bash

-e 指定一个日期,格式为"YYYY-MM-DD" 写入shadow第八列

-f 指定密码是否失效,0为立刻失效 l为用不失效 

设置新建用户第一次登陆必须更改密码


useradd agetest

echo "agetest" | passwd --stdin agetest

chage -d 0 agetest

查看用户重要配置


grep kuuyee /etc/passwd /etc/shadow /etc/group

修改用户参数


usermod -c "更改说明" kuuyee

删除用户


userdel kuuyee

用户切换su

su kuuyeesu - kuuyee切换是有区别的,带-表示切换用户并启用用户的变量,不带-表示变量设置方式为non-lgin shell,这种情况下很多原有的变量不会改变。

给用户加入sudo权限


useradd k

echo "kuuyee        ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers.d/kuuyee

chmod 0440 /etc/sudoers.d/kuuyee

sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers

Centos7彻底关闭ipv6

中级解决办法,修改grub,使其在启动时不加载ipv6。在GRUB_CMDLINE_LINUX中加入ipv6.disable=1

vim /etc/default/grub

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="ipv6.disable=1 crashkernel=auto rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot

CentOS7上部署Harbor

简介

Harbor项目是帮助用户迅速搭建一个企业级的registry 服务,由VMWare**团队打造,支持中文。项目官方地址是https://github.com/vmware/harbor

安装Harbor

环境

OS IP Docker
CentOS Linux release 7.2.1511 (Core) 10.10.10.10 1.11.0

下载解压即可,也可以git clone

git clone https://github.com/vmware/harbor.git

进入Deploy目录,编辑

cd harbor/Deploy/
vim harbor.cfg
## Configuration file of Harbor

#The IP address or hostname to access admin UI and registry service.
#DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.
hostname = reg.mydomain.com

#The protocol for accessing the UI and token/notification service, by default it is http.
#It can be set to https if ssl is enabled on nginx.
ui_url_protocol = http

#Email account settings for sending out password resetting emails.
email_server = smtp.qq.com 
email_server_port = 25
email_username = [email protected]
email_password = XXX
email_from = admin <[email protected]>

##The password of Harbor admin, change this before any production use.
harbor_admin_password= 123456

##By default the auth mode is db_auth, i.e. the credentials are stored in a local database.
#Set it to ldap_auth if you want to verify a user's credentials against an LDAP server.
auth_mode = db_auth    

执行配置

# ./prepare 
Generated configuration file: ./config/ui/env
Generated configuration file: ./config/ui/app.conf
Generated configuration file: ./config/registry/config.yml
Generated configuration file: ./config/db/env
The configuration files are ready, please use docker-compose to start the service.

安装docker-compose

# curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
# chmod +x /usr/local/bin/docker-compose

启动docker-compose

#docker-compose up -d

查看状态

# docker ps 
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS              PORTS                              NAMES
1e472cafff59        library/nginx:1.9        "nginx -g 'daemon off"   5 hours ago         Up 44 minutes       0.0.0.0:80->80/tcp, 443/tcp        deploy_proxy_1
6f1e7bd3ca11        deploy_mysql             "docker-entrypoint.sh"   5 hours ago         Up 44 minutes       3306/tcp                           deploy_mysql_1
94a9ce99b98e        deploy_ui                "/go/bin/harbor_ui"      5 hours ago         Up 44 minutes       80/tcp                             deploy_ui_1
62b86a3eed2d        library/registry:2.3.0   "/bin/registry /etc/r"   5 hours ago         Up 44 minutes       5000/tcp, 0.0.0.0:5001->5001/tcp   deploy_registry_1
14b3c9631fb8        deploy_log               "/bin/sh -c 'cron && "   5 hours ago         Up 44 minutes       0.0.0.0:1514->514/tcp              deploy_log_1

# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1043/sshd           
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1712/master         
tcp6       0      0 :::5001                 :::*                    LISTEN      15121/docker-proxy  
tcp6       0      0 :::1514                 :::*                    LISTEN      15041/docker-proxy  
tcp6       0      0 :::80                   :::*                    LISTEN      15252/docker-proxy  
tcp6       0      0 :::22                   :::*                    LISTEN      1043/sshd           
tcp6       0      0 ::1:25                  :::*                    LISTEN      1712/master     

配置证书

#cd harbor/Deploy/config/registry/
#mkdir -p /etc/docker/certs.d/reg.mydomain.com/
#cp root.crt /etc/docker/certs.d/reg.mydomain.com/
#vim /usr/lib/systemd/system/docker.service 
ExecStart=/usr/bin/docker daemon -H fd:// --insecure-registry reg.mydomain.com

重启服务

#systemctl daemon-reload
#systemctl restart docker

登录

# docker login reg.mydomain.com
Username: admin
Password: 
Login Succeeded

推送Image

# docker tag registry:2.3.0 reg.mydomain.com/demo/registry:2.3.0
# docker push reg.mydomain.com/demo/registry:2.3.0
The push refers to a repository [reg.mydomain.com/demo/registry]
5f70bf18a086: Pushed 
386863388803: Pushed 
855a4bc04ce4: Pushed 
e6107e74315e: Pushed 
917c0fc99b35: Pushed 
2.3.0: digest: sha256:388dabaa61d598b544fe2b7b973d8551ecd30cb4f915c0159ff4a41004354877 size: 2166

登录Harbor,可以看到pull的image

harbor-01

大功告成!

2016-01-14

英语

  • 《夏洛的网》:worried:

产品

  • 设备数据库案例原型PPT:white_check_mark:

其它

交付成果
😟

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.