加载中
git分支创建

创建仓库 git init --bare xxx.git 创建master git clone xxx.git cd xxx touch 1 git add 1 git commit -m 'init' git push origin master 创建分支(无需克隆) cd xxx.git git branch <b...

git
11/17 19:24
26
git克隆使用不同公钥

生成公钥 ssh-keygen -t rsa -f ~/.ssh/id_rsa.home ssh-keygen -t rsa -f ~/.ssh/id_rsa.work ~/.ssh/config Host home Hostname home.example.com IdentityFile ~/.ssh/id_rsa.home User ...

git
11/16 17:08
35
mysql8.0配置

安装mysql 8.0 创建用户和授权 $ create user 'xxx'@'%' identified by '123456'; $ grant all privileges on . to 'xxx'@'%' with grant option; $ flush privileges; Mysql8.0默认是不能使...

11/12 23:39
41
nodejs前端项目搭建运行环境

安装 Node.js https://nodejs.org/en/download/ # 下载前端项目 git clone http://..../.git # 下载 node_modules cd npm audit fix # 安装nginx,配置路由 http:/......

linux安卓打包环境搭建简述

下载安装 gradle 下载安装 java 1.8 下载安装 android-sdk android-sdk_xxx-linux.tgz 配置 /etc/profile or /etc/profile.d/xx.sh export JAVA_HOME= export JRE_HOME= export PATH=$JAVA_...

10/20 16:19
0
python pickle存取对象

import pickle class A(object): task = '123' def init(self, name): self.name = name def greet(self): print('{}: hello, world.'.format(self.name)) if name ==......

mysql主从同步实践

环境 ubuntu 16.04 mysql 5.7.31 master 192.168.8.4 slave 192.168.8.14 mysql安装 # 主从节点root操作 apt install mysql-server # 数据库管理员root/123456 master设置 # 修改mysql配置 ...

10/08 23:53
0
Linux虚拟网络实践

环境 Centos 7.8 # 创建3个Network Namespace ip netns add ns0 ip netns add ns1 ip netns add ns2 # 创建3对veth pair ip link add type veth ip link add veth2 type veth peer name vet...

10/08 16:17
15
python etcd3

环境 ubuntu 18.04 python 3.6 安装 sudo apt install etcd sudo apt install python3-pip python3 -m pip install --upgrade pip python3 -m pip install etcd3 python使用etcd # 设置 key ...

10/04 00:51
208
python 继承与超类调用

class A(object): def init(self): print('AAAA') def show(self, name): print('A: {}'.format(name)) class C(object): def init(self): print('CCC') def......

def
09/29 14:53
0
gitlab webhook

gitlab -> project -> Integrations (doc :/help/user/project/integrations/webhooks) -> Add webhook trigger => Push event action: webserver or jenkins (:/project/......

centos 环境变量加载流程

/etc/profile ├ /etc/profile.d/*.sh └ /etc/inputrc ~/.bash_profile ├ ~/.bash_profile └ ~/.bashrc /etc/bashrc......

09/18 14:10
0
jenkins搭建

环境 OS:centos6.7 搭建 yum install curl libcurl git epel-release nss-devel ... # 下载maven 3.6.3 https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache...

python inotify

pip install inotify import os import time import inotify.adapters import inotify.constants as Mask def _main(): SUFFIXES = {".swp", ".swx"} LAST_TRIG_TIME = time.time() i = inot...

09/09 17:12
0
gitlab-runner实践

参考 https://docs.gitlab.com/runner/install/linux-manually.html https://docs.gitlab.com/runner/register/index.html#linux 环境: OS: Centos node-1: gitlab https://my-gitlab.com/...

gitlab查询公钥被哪个用户使用

查看 /var/opt/gitlab/.ssh/authorized_keys,找到公钥的key_id command="/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-shell key-123",no-port-forwarding,no-X11-forwarding,no...

08/27 15:56
100
nexus3搭建

环境 CPU:2核 OS:Centos6.7 MEM:4096M 搭建 下载 nexus-3.26.0-04-unix.tar.gz 安装JDK,yum install java-1.8.0-openjdk 设置系统文件句柄 /etc/security/limits.conf * so......

08/11 16:28
219
递归与动态规划入门

递归:自顶向下拆分子问题,f(n)=f(f(n-1)),时间复杂度呈指数级时,可使用备忘录模式(空间换时间) 动态规划:自底向上,确定状态转移方程,递推最优解, DP[current] = Optimum(DP[pre] ...

saltstack 实践

salt 多master搭建及salt-api调用 环境: OS:CentOS6.7 Python3.6 + pip Saltstack 3001 Master: A c61 192.168.122.201 C c63 192.168.122.203 Slave: B c62 192.168.122.202 D c64 192....

bash 执行python

python << EOF def greet(): print('hello world.') greet() EOF

08/05 10:55
28

没有更多内容

加载失败,请刷新页面

返回顶部
顶部