- 博客(16)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注
原创 macOS安装brew和cocoapods之githubusercontent.com异常
【代码】macOS安装brew和cocoapods之githubusercontent.com异常。
2023-06-22 17:40:14
473
1
原创 Django自关联 - 非外键实现
需求:用户设置代理人后,自动发邮件,需要发送给多个代理人,DB字段里需要保存所有发送的代理人UUIDDjango默认的自关联字段,一对多,即代理人字段只能关联一个UUID如果在同一个表里设置自关联多对多,会导致我设置你为代理人时,你那里也会显示我为代理人,不合理使用非外键实现#Modeluser_agent = models.CharField(max_length=128, blank=True, null=True, verbose_name=_(‘User Agent’))..
2021-10-24 17:00:21
784
原创 vue-element-admin-i18n依赖安装
vue-element-admin-i18n依赖安装1. 先安装好vue-element-admin版依赖https://registry.npm.taobao.org/npm config listnpm config set proxy "httpxxx"npm config del proxygit config -lgit config --global http.sslVerify falsegit config --global url."https://".insteadof git://2.
2021-08-30 22:08:57
599
原创 CentOS7_获取系统安装、启动、运行时间_RAM
1. OS安装日期date -d "$(ls -lact --full-time /etc | tail -1 | awk '{print $6,$7}')" +"%Y-%m-%d %H:%M:%S"date -d "$(rpm -q basesystem --qf '%{installtime:date}\n')" +"%Y-%m-%d %H:%M:%S"date -d "$(rpm -q setuptool --qf '%{installtime:date}\n')" +"%Y-%m-%d
2020-07-05 10:05:18
1882
原创 Powershell5.1_获取SharePoint站点存储容量
1. 加載Add-PSSnapin模塊$snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}if ($snapin -eq $null) { Write-Host "Loading SharePoint Powershell Snapin" Add-PSSnapin "Microsoft.SharePoint.Powershell"}2. 获取网站存储信息#$r
2020-05-17 09:09:01
425
原创 Powershell_for_HPiLO
#安装HPiLOCmdlets-x64.msi新版支持8–10HPEiLOCmdlets-x64.msi旧版支持7–9HPiLOCmdlets-x64.msiHPiLOCmdlets-x86.msiPS C:\Users\Sxxxxxxx> env:PSModulePath+=";env:PSModulePath+=";env:PSModulePath+=";env:C:\Pr...
2020-04-24 20:08:02
534
原创 Jumpserver_1.5.6_Q3:远程登录时,全屏显示反而缩小?
1. 解决方法使用Chrome 75以上即可(目前最新80),其他未测试
2020-04-10 21:51:45
1326
原创 Django 2.2之集成SimpleUI 3.8及KeyErrors: "simpletags"异常解决
#1. 环境Windows 10Python 3.6.1VirtualENVDjango 2.2SimpleUI 3.8Eclipse 4.6.3 + PyDev 5.7内网环境官方上手指南#2. Eclipse新建Pydev Django ProjectF:\ECLIPSE463\SIMPLEUIOFFICETEST│ .project│ .pydevprojec...
2019-12-26 12:24:39
1192
1
原创 Ansible 2.8.7 API 使用异常6: /wsman (('urllib3 : [Errno 111] Connection refused'))
#1. 异常信息"msg": "ntlm: HTTPSConnectionPool(host='192.168.1.168', port=5986): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object ...
2019-12-22 16:38:57
1064
原创 Ansible 2.8.7 API 使用异常5:/wsman (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONN
#1. 异常信息requests.exceptions.SSLError: HTTPSConnectionPool(host='192.168.1.168', port=5986): Max retries exceeded with url: /wsman (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONN...
2019-12-19 17:50:00
1379
原创 Powershell5.1_Q1_Filter过滤写法
#1. Powershell的Filter过滤写法,本质为SQL写法#F1Get-WmiObject -Class Win32_Volume -Filter "Drivetype=3 and driveletter=null" | Select-Object BootVolume,FileSystem,DriveLetter,label|ft -a#F2$sql = "SELECT Bl...
2019-12-13 16:17:44
614
原创 Ansible 2.8.7 API 使用异常4:playbook执行powershell脚本返回值“\r\n”,原因分析及解决
Q: Ansible2.8.7和2.7.9通过Playbook执行powershell脚本返回值问题, 系统环境一样#1. get_w_sysinfo.ps1get-wmiobject win32_computersystem |Select-Object Name,Domain,SystemType,Model#2.get_w_sysinfo.yml- name: test scrip...
2019-12-12 09:00:57
1345
原创 Ansible 2.8.7 API 使用异常3:官网例子无输出
[官网API](https://docs.ansible.com/ansible/2.8/dev_guide/developing_api.html#python-api)******************************************************************************************************** #!...
2019-12-10 11:20:51
1010
原创 Ansible 2.8.7 API 使用异常1:"connection plugin class ansible.utils.sentinel.Sentinel was not found"
系统环境 ------ - CENTOS7.6-1810 - virtualenv - python 3.8.0 - ansible 2.8.7 - eclipse 201909 + PyDEV 7.4 以前自定义options: from collections import namedtuple...
2019-12-10 08:24:14
2698
1
原创 Ansible 2.8.7 API 使用异常2:'Unexpected failure during module execution.'
异常抛出定位到 verbosity>3,所以尝试以下: from ansible.module_utils.common.collections import ImmutableDict context.CLIARGS = ImmutableDict( connection='smart', module_path=None,...
2019-12-09 17:48:56
3274
4
Django中用户表自关联字段
2021-10-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人