This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local threads = {} | |
| wrk.headers['nonce'] = '1' | |
| wrk.headers['sign'] = '1' | |
| wrk.headers['token'] = '1' | |
| wrk.headers['timestamp'] = '1' | |
| setup = function (thread) | |
| table.insert(threads, thread) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ############################################ | |
| # 云服务器带宽检查脚本 | |
| # | |
| #version:1.2 | |
| #使用方法: | |
| #例:./vmnetcheck.sh [em2|em1] | |
| # | |
| #参数说明: | |
| #不写参数时,默认检查外网网卡em1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # https://www.linuxidc.com/Linux/2017-12/149752.htm | |
| TRASH_DIR="/root/.trash" | |
| basepath_array=( | |
| / | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://juejin.im/post/5b3629cbf265da59645b1ac5 | |
| package main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "net" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # network.yaml | |
| network: | |
| version: 2 | |
| renderer: networkd | |
| ethernets: | |
| enp9s0: | |
| addresses: | |
| - 192.168.1.13/24 | |
| gateway4: 192.168.1.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .bashrc | |
| # User specific aliases and functions | |
| alias rm='rm -i' | |
| alias cp='cp -i' | |
| alias mv='mv -i' | |
| alias ll='ls -al' | |
| # Source global definitions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| glide mirror set https://golang.org/x/text https://github.com/golang/text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # bash | |
| https://stackoverflow.com/questions/33632668/bash-tab-completion-of-filenames-after-arguments | |
| complete -D -o default | |
| # zsh | |
| https://unix.stackexchange.com/questions/333530/zsh-path-file-name-completion-on-file-arguments/333543#333543?newreg=65c5031ab2d6429984db9f2c4a26ac3c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Mobile HLS video</title> | |
| </head> | |
| <body> | |
| <h1>Mobile HLS video</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright © 2016 Alan A. A. Donovan & Brian W. Kernighan. | |
| // License: https://creativecommons.org/licenses/by-nc-sa/4.0/ | |
| // See page 333. | |
| // Package display provides a means to display structured data. | |
| package display | |
| import ( | |
| "fmt" |