上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 61 下一页
摘要: 运行shell脚本的方式: chmod +x test sh test bash test 查看文件所在路径: which sh 查看具体的信息: ls /usr/bin/sh -l 查看命令历史: history 别名:alias、unalias 前后台作业控制:screen 查看任务:scree 阅读全文
posted @ 2020-06-30 09:04 石shi 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 查看创建的mysql用户: cat /etc/passwd | grep mysql 安装步骤: 1.先删除mariadb apt-get autoremove --purge mariadb-client-core-10.3 apt-get autoremove --purge 2.把mysql的 阅读全文
posted @ 2020-06-29 16:25 石shi 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: 在main.js中: Vue.filter('dateFormat', function(originVal) { const dt = new Date(originVal) const y = dt.getFullYear() const m = (dt.getMonth() + 1 + '') 阅读全文
posted @ 2020-06-06 15:33 石shi 阅读(531) 评论(0) 推荐(0) 编辑
摘要: //反射 操作 public static class Reflection { #region GetDescription(获取类型描述) /// <summary> /// 获取类型描述,使用<see cref="DescriptionAttribute"/>设置描述 /// </summar 阅读全文
posted @ 2020-06-06 14:21 石shi 阅读(534) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 委托帮助类 /// </summary> public class DelegateHelper { /// <summary> /// 异步执行方法 /// </summary> /// <param name="firstFunc">首先执行的方法</para 阅读全文
posted @ 2020-06-03 19:57 石shi 阅读(239) 评论(0) 推荐(0) 编辑
摘要: class Program { // 使用BeginXXX/EndXXX和IAsyncResult对象的方式被称为异步编程模型(APM模式) delegate string RunOnThreadPool(out int threadId); static void Main(string[] ar 阅读全文
posted @ 2020-05-30 16:50 石shi 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 暂停线程: static void Main(string[] args) { Thread thread = new Thread(Common.PrintNumbersWithDelay); thread.Start(); Common.PrintNumbers(); Console.ReadK 阅读全文
posted @ 2020-05-30 14:56 石shi 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 原子操作类: public abstract class CounterBase { public abstract void Increase(); public abstract void Decrease(); } public class CounterNoInterlocked : Cou 阅读全文
posted @ 2020-05-30 14:41 石shi 阅读(305) 评论(0) 推荐(0) 编辑
摘要: public static class SortingHelper<T> where T : IComparable { #region 1.1 直接插入排序 /// <summary> /// 普通版直接插入排序 /// </summary> /// <param name="arr">待排序数组 阅读全文
posted @ 2020-05-30 13:31 石shi 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Ip: \b(([01]?\d?\d|2[0-4]\d|25[0-5])\.){2}[012]+[-\*\d]*\b 端口:80,433,53 1-65535 ^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d 阅读全文
posted @ 2020-05-29 10:12 石shi 阅读(1285) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 61 下一页