迅雷下载文件目录 映射命令mount --bind /var/apps/docker-xunlei/shares/xunlei/downloads /vol1/1000/downloads
static void Main(string[] args) { string str = File.ReadAllText("1.txt", Encoding.Default); MatchCollection mc = Regex.Matches(str, @"([-a-zA-Z_0-9.]+)@([-a-zA-Z0-9_]+(\.[a-zA-Z]+)+)"); foreach (Match m in mc) { Console.WriteLine(m.Value); Conso...
以下是读取QQwry.Dat数据库类库using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace QQwry.dat纯真IP数据库读取 { public class IPSearch { FileStream ipFile; long ip; string ipfilePath; ///<summary> ///...
/// <summary> /// 通过域名获得域名解析的IP地址 /// </summary> /// <param name="url">网址</param> /// <returns>返回域名解析的IP地址</returns> private string GetYuMingIP(string url) { string rIP = string.Empty; string p = @"(http|https)://(?<domain>[^(:|/]*)...
private ImageFormat GetImageFormat(FileStream file, out string format) { byte[] sb = new byte[2]; //这次读取的就是直接0-1的位置长度了. file.Read(sb, 0, sb.Length); //根据文件头判断 string strFlag = sb[0].ToString() + sb[1].ToString(); //察看格式类型 switch (strFlag) { //JPG格式 cas...
/// <summary> /// DateTime转时间戳 /// </summary> /// <param name="dt">DateTime</param> /// <returns>时间戳(秒)</returns> public static long GetUnixTimeStamp(DateTime dt) { DateTime dtStart = TimeZoneInfo.ConvertTimeFromUtc(new DateTime(1970, 1, 1, 0, 0,...
C#根据银行卡号获取银行名称核心代码/// <summary> /// 银行信息 /// </summary> public class BankInfo { #region 数组形式存储银行BIN号 /// <summary> /// 银行 BIN 号 /// </summary> private readonly static long[] BankBin = { 102033, 103000, 18572...
/// <summary> /// 下载 302跳转文件 /// </summary> /// <param name="parentUrl">父Url</param> /// <param name="url">302跳转的Url</param> /// <returns></returns> public bool DownFile(string parentUrl,string url) { using (HttpCli...
public class FTPHelper { private static string FTPCONSTR = "ftp://192.168.1.23:21"; private static string FTPUSERNAME = "lqwvje";//FTP服务器的用户名 private static string FTPPASSWORD = "123456";//FTP服务器的密码 /// <summary> /// 上传文件到远程ftp /// &...
debain 查看 cpu 温度你可以使用 lm-sensors 工具来查看 CPU 温度。以下是安装和使用 lm-sensors 的步骤:安装 lm-sensors:sudo apt-get update sudo apt-get install lm-sensors运行 sensors-detect 来检测传感器:sudo sensors-detect查看 CPU 温度:sensors运行 sensors 命令后,你将看到类似以下的输出,其中包含 CPU 温度信息:coretemp-isa-0000 Adapter: ISA adapter Core 0: +45.0°C...