解决VSCode连接服务器依赖版本报错问题
vscode ssh连接服务器遇到The remote host may not meet VS Code Server‘s prerequisites for glibc and libstdc++ 方法一 升级依赖 1sudo apt update && sudo apt install libc6 libstdc++6 方法二 手动安装高版本libstdc++ 适用于无root环境 提前下载好libstdc++6_10.2.1-6_amd64.deb 1234567dpkg -x libstdc++6_10.2.1-6_amd64.deb /tmp/libstdc++mkdir lib64cp /tmp/libstdc++/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 ~/lib64/cd ~/lib64ln -sf libstdc++.so.6.0.28 libstdc++.so.6echo 'export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH'...
2021 Huazhong University of Science and Technology Freshmen Cup
2021 Huazhong University of Science and Technology Freshmen Cup - Solution G. Awson Loves Chipmunks Awson loves chipmunks, especially the kkk-th one among all nnn chipmunks! He wants to keep a consecutive interval of chipmunks in his home, and the interval should include the kkk-th chipmunk. However, chipmunks eat a lot and it is a heavy burden for Awson to buy food for all chipmunks. Specifically, the iii-th chipmunk has a hunger value aia_iai. If Awson decides to raise the chipmunks from i...
The 19th Zhejiang Provincial Collegiate Programming Contest
Problem I. Barbecue Input file: standard input Output file: standard output Time limit: 1.5 seconds Memory limit: 512 megabytes Putata and Budada are playing a new game. In the beginning, Putata has a note with a string consists of lowercase letters on it. In each round, the player who has the note must rip off a character from the beginning or the end of the note, then pass it to the other player. If at any moment, the string on the note is a palindrome, then the player who has...
第 8 届河北省大学生程序设计竞赛题解
Problem J. Iris’ Food 猫猫 Iris 又在玩oql的键盘了。 在T天的时间里,每一天 Iris 会在玩oql键盘的时候敲下若干个字符,而这些字符恰好全都是0~9这 10个阿拉伯数字。经过统计,数字 iii 有 aia_iai 个。 oql 每天可能会给Iris 喂一定数量的猫粮。他决定, 在 ∑i=09ai\sum_{i=0}^{9} a_i∑i=09ai 个数字里选择 mmm 个,经过重新排列后 形成一个十进制下 mmm 位、且不包含前导0的非负整数 xxx,然后 oql 将在这天给 Iris 投喂 xxx 克的猫粮。 然而,Iris 还是一只小猫,不宜食用太多的猫粮。因此oql想让这个数字尽可能小。请你帮助 Iris 计算 出她每天能得到多少猫粮。 由于答案可能很大,你只需要输出答案对109+710^9+7109+7取模的结果。请注意,你需要输出的是最小答案模 109+710^9+7109+7后的结果,而不是xmod 109+7x \mod 10^9+7xmod109+7的最小值。 Input 第一行一个正整数 TTT (1≤T≤1041 \le...
部署 Prometheus+Grafana 系统
安装 Prometheus 1. 下载 Prometheus 二进制文件 Prometheus-Github 2. 配置 Prometheus 解压,安装 12tar -xzvf tar_name.tar.gzmv tar_name /opt/prometheus tar_name 是下载的文件名 配置system服务 1vim /etc/systemd/system/prometheus.service 123456789101112[Unit]Description=prometheusDocumentation=https://prometheus.io/After=network.target[Service]Type=simpleUser=rootGroup=rootExecStart=/opt/prometheus/prometheus --web.listen-address="0.0.0.0:9090" --config.file=/opt/prometheus/prometheus.yml --storage.tsdb.retention...
搞搞校园网
搞搞校园网 校园网概况 认证系统:dr.com 无线web登录,有线拨号上网 无线连接限制设备2台,有线连接限制设备1台。 无线网络动态限速250Mbps以下,有线网络限速100Mbps。 无线web认证 从网页的F12可以看到账号登录实际上是发送以下的GET请求 1http://10.0.3.6:801/eportal/portal/login?callback=dr1004&login_method=1&user_account=,0,%username%&user_password=%password%&wlan_user_ip=%userip%&wlan_user_ipv6&wlan_user_mac=%mac%&wlan_ac_ip=%wlanacip%&wlan_ac_name&jsVersion=4.1.3&terminal_type=1 %username%替换为账号 %password%替换为密码 %userip%替换为设备的ip %mac%替换为设备Mac %wl...
