Notes icon indicating copy to clipboard operation
Notes copied to clipboard

:rocket: 笔记

Results 100 Notes issues
Sort by recently updated
recently updated
newest added

``` git config --global http.proxy http://127.0.0.1:7890 git config --global https.proxy https://127.0.0.1:7890 ``` ### 删除代理 ``` git config --global --unset http.proxy git config --global --unset https.proxy ```

**前提是没有Y轴线滚动条.** ![image](https://user-images.githubusercontent.com/8264787/111738025-9aa99900-88bb-11eb-89c0-1d23fd30f737.png) ![image](https://user-images.githubusercontent.com/8264787/111738041-a09f7a00-88bb-11eb-8df8-740f7114526a.png) ```javascript // 2侧边框宽度的和 const borderWidth = el.offsetWidth - el.clientWidth; ```

### https://www.ipaddress.com/ 找出下面2个网址的ip: ``` github.global.ssl.fastly.net ``` ### 修改域名解析: `C:\Windows\System32\drivers\etc\hosts` ### 刷新dns缓存 `ipconfig /flushdns`

```javascript node.firstChild !== null node.childNodes.length > 0 node.hasChildNodes() ```

1. 打开https://github.com.ipaddress.com/ 如下图: 2.打开https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo 3.打开https://github.com.ipaddress.com/assets-cdn.github.com 4.打开电脑的hosts文件,把下列的东东写在最后,然后保存即可 140.82.113.4 github.com 199.232.69.194 github.global.ssl.fastly.net 185.199.108.153 assets-cdn.github.com 185.199.109.153 assets-cdn.github.com 185.199.110.153 assets-cdn.github.com 185.199.111.153 assets-cdn.github.com

```javascript const NodeRSA = require("node-rsa") const key = new NodeRSA({b: 2048}); const publicDer = key.exportKey('pkcs1-public-pem'); //公钥 const privateDer = key.exportKey('pkcs1-private-pem');//私钥 console.log(publicDer,privateDer) ```

### 为什么show_db看不到数据库 因为数据库中的表必须有数据才显示.

### 查看宿主机ip, 使用`ifconfig`: ![image](https://user-images.githubusercontent.com/8264787/105115828-85ef9580-5b04-11eb-8d13-9adc239cd4a3.png) ### 查看容器的网络配置, 使用`docker inspect 容器id`: ![image](https://user-images.githubusercontent.com/8264787/105115879-9e5fb000-5b04-11eb-96c4-b3d36088ed2c.png) ### 进入容器测试: ``` docker exec -it 容器id /bin/bash ```

## 本机创建目录 ```shell mkdir -p /root/nginx/www /root/nginx/logs /root/nginx/conf ``` ## 映射docker中nginx目录到本机 ``` docker run -d -p 80:80 --name nginx-web -v /root/nginx/www:/usr/share/nginx/html -v /root/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /root/nginx/logs:/var/log/nginx nginx ```

## 安装docker ``` curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun ``` ## 启动docker ``` service docker start ``` ## 安装jenkins ``` docker run -d --name myjenkins -p 8081:8080...