最新发布
排序
OpenCloud9 或 CentOS8 开机挂载windows共享
在CentOS 8上开机挂载Windows共享,你可以使用/etc/fstab文件来实现。以下是步骤和示例代码:确定Windows共享的路径。例如,如果Windows机器上的共享路径是\\WINDOWS-HOST\share,则需要确保...
C#快速获取图像大小和分辨率(shell32)
VS中引用 .COM 中的 Microsoft Shell Controls and Automation 修改嵌入互操作类型为 False然后 using Shell32public static void GetJpgSizeByShell(string JpgPath, out Size JpgSize, out fl...
GitLab重置密码
yum方式安装gitlab后,没有找到初始账号和密码,此时就需要重置sudo gitlab-rake 'gitlab:password:reset[root]'执行该命令后需等差不多10秒左右,才会出现 “Enter password: ”,输入新密码...
reconfigure 卡在ruby_block[wait for logrotate service socket]不动
卸载重装gitlab,修改完gitl.rh后,执行“sudo gitlab-ctl reconfigure”时,执行到ruby_block[wait for logrotate service socket]时没反应再次执行gitlab-ctl reconfigure会报错此时只需执行s...
yum方式安装gitlab
设置源为:清华大学开源软件镜像站vim /etc/yum.repos.d/gitlab-ce.repo[gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/ gpgcheck=0 ...
DataGridView使用MouseWheel事件实现鼠标滚动
int VerticalScrollIndex = 0; private void Dgv_MouseWheel(object sender, MouseEventArgs e) { int RowCount = 0; int h = 0; for (int i = dgv.Rows.Count-1; i>=0; i--) { h += dgv.Row...
在 CentOS 上安装 .NET SDK 或 .NET 运行时
安装 .NET 之前,请运行以下命令,将 Microsoft 包签名密钥添加到受信任密钥列表,并添加 Microsoft 包存储库。 打开终端并运行以下命令:sudo rpm -Uvh https://packages.microsoft.com/config...
SQLServer中Convert转换日期和时间样式
日期和时间样式对于日期或时间数据类型的 expression,style 可以具有下表所示的某个值。 其他值作为 0 进行处理。 从 SQL Server 2012 (11.x) 开始,在从日期和时间类型转换为 datetimeoffset ...
微软C#版SQLHelper.cs类
using System;using System.Data;using System.Xml;using System.Data.SqlClient;using System.Collections;using System.Configuration; namespace SQLManager{/// <summary> /// SqlSer...