上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 45 下一页
摘要: ```go package main import ( "bytes" "fmt" "io" "net/http" "os" "time" "github.com/bytedance/sonic" ) var ( subject, message, webHook, is_all, user_pho 阅读全文
posted @ 2023-07-11 17:32 厚礼蝎 阅读(29) 评论(0) 推荐(0)
摘要: 在Python中,可以使用列表推导式或filter函数来剔除列表中的特定值。 方法一:使用列表推导式 ```python original_list = [1, 2, 3, 4, 5] exclude_value = 3 new_list = [x for x in original_list if 阅读全文
posted @ 2023-07-04 15:27 厚礼蝎 阅读(455) 评论(0) 推荐(0)
摘要: # CentOS7版本下 ## 升级包 ```bash yum -y update ``` ## 卸载原有包 ```bash yum remove docker-selinux -y ``` 这里为什么只卸载docker-selinux呢? 因为卸载docker-selinux的时候会自动把dock 阅读全文
posted @ 2023-07-01 11:09 厚礼蝎 阅读(88) 评论(0) 推荐(0)
摘要: # ubuntu22.04 ## 下载 GMssl下载地址 https://github.com/guanzhi/GmSSL/tree/GmSSL-v2 ```bash wget https://github.com/guanzhi/GmSSL/archive/refs/heads/GmSSL-v2 阅读全文
posted @ 2023-06-21 17:32 厚礼蝎 阅读(5) 评论(0) 推荐(0)
摘要: # 前提 ## 环境 + ubuntu22.04(不重要) + 安装好 [docker](https://www.cnblogs.com/guangdelw/p/16964760.html) ## 拉去镜像 也可以部署的时候拉取 + mysql + snipe-it ```bash docker p 阅读全文
posted @ 2023-06-21 16:29 厚礼蝎 阅读(3728) 评论(0) 推荐(0)
摘要: systemd-resolved 服务是用来提供本机应用软件与DNS 解析服务的,其包含解析主机名称、IP 地址、域名、DNS 资源记录等,Ubuntu修改DNS就需要通过此服务来完成! # 问题 通常我们知道,修改dns的几个途径 + /etc/resolv.conf + /etc/netplan 阅读全文
posted @ 2023-06-20 16:08 厚礼蝎 阅读(10068) 评论(2) 推荐(2)
摘要: ```bash #安装依赖包 yum install -y vim wget lrzsz gcc-c++ openssl openssl-devel net-tools lzo lzo-devel pam pam-devel #下载openvpn源码包 wget https://swupdate.o 阅读全文
posted @ 2023-06-20 01:15 厚礼蝎 阅读(7) 评论(0) 推荐(0)
摘要: eval 和 exec 都是 Python 内置函数,并且都能把字符串当作代码执行,那区别是什么呢? 1. eval 函数只能计算单个表达式的值,而 exec 函数可以动态运行代码段; 2. exec 函数能直接执行文件中的 Python 代码,eval 函数不能实现这个功能; 3. eval 函数 阅读全文
posted @ 2023-06-17 17:17 厚礼蝎 阅读(76) 评论(0) 推荐(0)
摘要: 来自官方脚本 https://git.io/vpn ```bash #!/bin/bash # # https://github.com/Nyr/openvpn-install # # Copyright (c) 2013 Nyr. Released under the MIT License. # 阅读全文
posted @ 2023-06-14 19:16 厚礼蝎 阅读(8) 评论(0) 推荐(0)
摘要: # 下载一键脚本 ```bash $ cd /data/ $ wget https://git.io/vpn -O openvpn-install.sh ``` 或者备份 https://www.cnblogs.com/guangdelw/p/17481159.html # 运行脚本 ```bash 阅读全文
posted @ 2023-06-14 19:11 厚礼蝎 阅读(12) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 45 下一页