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
| 写测试 | |
| ``` | |
| time dd if=/dev/zero of=/tmp/test bs=8k count=1000000 | |
| ``` | |
| 读测试 | |
| ``` | |
| time dd if=/tmp/test of=/dev/null bs=8k |
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> | |
| <head> | |
| <meta name="content-type" content="text/html;charset=utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, viewport-fit=cover" /> | |
| <title>hello mirror</title> | |
| </head> | |
| <body> | |
| <h1>Hello Mirror</h1> | |
| <h2>Support Server</h2> |
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
| # | |
| # /etc/sysctl.conf - Configuration file for setting system variables | |
| # See /etc/sysctl.d/ for additonal system variables | |
| # See sysctl.conf (5) for information. | |
| # | |
| #kernel.domainname = example.com | |
| # Uncomment the following to stop low-level messages on console | |
| #kernel.printk = 3 4 1 3 |
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 | |
| TXT="包含的文本" | |
| docker rmi $(docker images | grep $TXT | awk '$1 { print $1":"$2 }') |
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
| Promise.resolve() | |
| .then(() => { | |
| return new Promise((resolve) => { | |
| setTimeout(() => { | |
| resolve(1); | |
| }, 3000); | |
| }); | |
| }) | |
| .then((res) => { | |
| console.log(res); // 这里就是 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
| /** | |
| * - | |
| * @param {string} fmt - | |
| * @returns {string} - | |
| */ | |
| Date.prototype.format = function (fmt) { | |
| const dateObject = { | |
| "y+": this.getFullYear(), | |
| "M+": this.getMonth() + 1, // 月份 | |
| "d+": this.getDate(), // 日 |
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
| { | |
| "type": "module", | |
| "dependencies": { | |
| "@alicloud/openapi-client": "^0.3.3", | |
| "@alicloud/tea-typescript": "^1.7.1", | |
| "@alicloud/vod20170321": "^2.0.1", | |
| "ali-oss": "^6.15.0" | |
| } | |
| } |
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/sh | |
| #+ip 指定监听的IP | |
| #-port 指定端口,个性建服 | |
| #-condebug 记录熊孩子的破坏经过 | |
| MAP="+map 指定地图名" | |
| CONF="$HOME/server.cfg" | |
| L4D2_DIR="$HOME/.steam/steamapps/common/Left 4 Dead 2 Dedicated Server" | |
| START_PARAMS="-console -game left4dead2 -secure +ip 0.0.0.0 -port 27017 -nomaster -condebug" |
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
| package main | |
| import ( | |
| "log" | |
| "os/exec" | |
| "runtime" | |
| "strconv" | |
| "time" | |
| ) |
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
| pub fn convert_path(path_str: &str) -> String { | |
| if cfg!(target_os = "windows") { | |
| String::from(path_str.replace("\\", "/")) | |
| } else { | |
| String::from(path_str) | |
| } | |
| } | |
| fn main() { | |
| println!("hello world!"); |