添加 http-client
@ -30,6 +30,14 @@ docker run -d \
|
||||
-p 8090:80 \
|
||||
phpmyadmin/phpmyadmin
|
||||
|
||||
# for mac doocker0 is not working, so use link to communicate each container
|
||||
docker run -d \
|
||||
--name myadmin \
|
||||
-e PMA_HOST="mymysql" \
|
||||
-e PMA_PORT=3306 \
|
||||
-p 8090:80 \
|
||||
--link mymysql:mymysql phpmyadmin/phpmyadmin
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
27
goproxy/client.md
Normal file
@ -0,0 +1,27 @@
|
||||
# client
|
||||
|
||||
## passthrough
|
||||
|
||||
```bash
|
||||
|
||||
proxy client -P 47.99.180.240:8050 -T tls -C proxy.crt -K proxy.key --k default
|
||||
|
||||
```
|
||||
|
||||
```cfg
|
||||
# supervisor
|
||||
[program:pclient]
|
||||
command=/home/buaaysk/proxy/proxy client -P 47.99.180.240:8050 -T tls -C proxy.crt -K proxy.key --k weimin_f2
|
||||
directory=/home/buaaysk/proxy
|
||||
stdout_logfile=/var/log/proxyclient.log
|
||||
stdout_logfile_maxbytes=1MB
|
||||
stdout_logfile_backups=10
|
||||
stdout_capture_maxbytes=1MB
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startsecs=60
|
||||
stopasgroup=true
|
||||
ikillasgroup=true
|
||||
startretries=10
|
||||
redirect_stderr=true
|
||||
```
|
||||
88
jetbrains/http-client.md
Normal file
@ -0,0 +1,88 @@
|
||||
# HTTP-Client-Editor of jetbrains
|
||||
|
||||
|
||||
|
||||
## 环境描述文件
|
||||
|
||||
- http-client.private.env.json 存储敏感信息的环境文件
|
||||
|
||||
```json
|
||||
{
|
||||
"env1": {"auth": ""},
|
||||
"env2": {
|
||||
"auth": "",
|
||||
"key": ""
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- http-client.env.json 存储普通信息的环境文件
|
||||
|
||||
```json
|
||||
{
|
||||
"env1": {
|
||||
"base_url": ""
|
||||
},
|
||||
"env2": {}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 请求描述文件
|
||||
|
||||
- *.http
|
||||
|
||||
```http
|
||||
### 描述信息 (每个请求要以三个#开头)
|
||||
# get请求
|
||||
GET {{base_url}}/first
|
||||
Authorization: Basic {{auth}}
|
||||
```
|
||||
|
||||
```http
|
||||
### post 请求
|
||||
POST {{base_url}}/second
|
||||
Accept: application/json
|
||||
|
||||
> {%
|
||||
client.log(response.body)
|
||||
%}
|
||||
|
||||
```
|
||||
|
||||
- 变量由{{}}给出
|
||||
|
||||
1. 由环境描述文件给出, 如{{auth}},{{base_url}}
|
||||
|
||||
2. 由特定函数给出,如[{{$timestamp}} {{$uuid}} {{randomInt}}](https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html#dynamic-variables)
|
||||
|
||||
3. 由[返回处理脚本](https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html#)给出
|
||||
|
||||
```bash
|
||||
> {%
|
||||
client.log(response.body)
|
||||
client.global.set("id", response.body.data[0].id)
|
||||
# 设置环境变量id
|
||||
%}
|
||||
```
|
||||
|
||||
```bash
|
||||
> ./temp.js
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 执行
|
||||
|
||||
- 在每个请求左侧有个绿色箭头 可以选择执行环境, .json 和 .http 在同一目录下
|
||||
|
||||

|
||||
|
||||
- 编辑窗口顶部,点击Run All Requests in File 会顺序执行所有请求
|
||||
|
||||

|
||||
19
jetbrains/ideavimrc
Normal file
@ -0,0 +1,19 @@
|
||||
let mapleader="\"
|
||||
|
||||
set hlsearch
|
||||
set incsearch
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set showmode
|
||||
set number
|
||||
set relativenumber
|
||||
set scrolloff=3
|
||||
set history=100000
|
||||
nmap q :q<CR>
|
||||
nmap Q :qa!<CR>
|
||||
|
||||
nnoremap <leader>[ :action PreviousTab<CR>
|
||||
nnoremap <leader>] :action NextTab<CR>
|
||||
|
||||
"nnoremap [ ^
|
||||
nnoremap & $
|
||||
BIN
jetbrains/image-20200112231911921-8842506.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
jetbrains/image-20200112231911921.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
jetbrains/image-20200112232250128.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
jetbrains/image-20200112232328295.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
18
raspberry/freerdp.md
Normal file
@ -0,0 +1,18 @@
|
||||
# freerdp
|
||||
|
||||
## build
|
||||
|
||||
> https://github.com/FreeRDP/FreeRDP/wiki/Compilation
|
||||
|
||||
```bash
|
||||
git clone git://github.com/FreeRDP/FreeRDP.git
|
||||
cd FreeRDP
|
||||
sudo apt-get install ninja-build build-essential git-core debhelper cdbs dpkg-dev autotools-dev cmake pkg-config xmlto libssl-dev docbook-xsl xsltproc libxkbfile-dev libx11-dev libwayland-dev libxrandr-dev libxi-dev libxrender-dev libxext-dev libxinerama-dev libxfixes-dev libxcursor-dev libxv-dev libxdamage-dev libxtst-dev libcups2-dev libpcsclite-dev libasound2-dev libpulse-dev libjpeg-dev libgsm1-dev libusb-1.0-0-dev libudev-dev libdbus-glib-1-dev uuid-dev libxml2-dev libgstreamer1.0-dev libgstreamer0.10-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-base0.10-dev
|
||||
|
||||
sudo apt-get install libavutil-dev libavcodec-dev libavresample-dev
|
||||
|
||||
|
||||
sudo apt-get install libcunit1-dev libdirectfb-dev xmlto doxygen libxtst-dev
|
||||
|
||||
|
||||
```
|
||||
BIN
static/img/image-20200112231911921.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
static/img/image-20200112232250128.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
static/img/image-20200112232328295.png
Normal file
|
After Width: | Height: | Size: 36 KiB |