04 2021 档案

摘要:whatruns 阅读全文
posted @ 2021-04-30 07:51 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要:Service: get-service start-service start-service -name spooler -v stop-service restart-service get-service -name spooler | restart-service get-service 阅读全文
posted @ 2021-04-29 09:09 ascertain 阅读(85) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-04-26 08:01 ascertain 阅读(24) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-04-25 09:48 ascertain 阅读(37) 评论(0) 推荐(0) 编辑
摘要:import sys, threading, tkinter,time def stop(window): # window.destroy() window.quit() sys.exit(0) window = tkinter.Tk() window.title('invariant!') wi 阅读全文
posted @ 2021-04-23 19:21 ascertain 阅读(123) 评论(0) 推荐(0) 编辑
摘要:show status like 'innodb_row_lock%';select table_name,table_rows from information_schema.tables where table_schema='courier' order by table_rows desc; 阅读全文
posted @ 2021-04-23 18:46 ascertain 阅读(64) 评论(0) 推荐(0) 编辑
摘要:json.dumps(data,ensure_ascii=False,indent=4,sort_keys=True,skipkeys=True,separators=(',',': ')) try: b(1,0) except Exception as e: logging.exception(s 阅读全文
posted @ 2021-04-23 18:30 ascertain 阅读(109) 评论(0) 推荐(0) 编辑
摘要:import os, zipfile def deflate(paths, zip_path): z = zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED, allowZip64=True, compresslevel=9) for path i 阅读全文
posted @ 2021-04-22 17:10 ascertain 阅读(59) 评论(0) 推荐(0) 编辑
摘要:js 正向肯定预查 正向否定预查 反向肯定预查 反向否定预查 (?=) (?!) (?<=) (?<!)python 阅读全文
posted @ 2021-04-22 08:39 ascertain 阅读(92) 评论(0) 推荐(0) 编辑
摘要:下载 https://github.com/adobe-fonts/source-code-pro/releases 将ttf后缀的字体文件copy到Windows字体文件夹 重启IDE 阅读全文
posted @ 2021-04-21 19:17 ascertain 阅读(333) 评论(0) 推荐(0) 编辑
摘要:下个月的同天 def same_day_of_next_month(obj: datetime.date): def last_day_of_current_month(_obj: datetime.date): if _obj.month == 12: first_day_of_next_mont 阅读全文
posted @ 2021-04-21 18:51 ascertain 阅读(36) 评论(0) 推荐(0) 编辑
摘要:%WORKSPACE% <=> D:\workspace\com.cjml.service.verification 比git仓库多了 .git文件夹 多了 target文件夹 在此编译打包 阅读全文
posted @ 2021-04-21 11:15 ascertain 阅读(46) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-04-21 09:46 ascertain 阅读(61) 评论(0) 推荐(0) 编辑
摘要:ll 和 stat 命令显示的均为文件的apparent-size(实际大小) 需du命令,接下来看du命令的三个选项 du默认显示的是文件实际占用的磁盘空间,默认显示单位为 KB,通过--block-size调节为字节 stat中显示大小为14403342 (apparent-size),占据bl 阅读全文
posted @ 2021-04-20 17:09 ascertain 阅读(259) 评论(0) 推荐(0) 编辑
摘要:php-fpm只支持Unix-like OS,不支持Windows,Windows可使用php-cgi此cgi进程管理器替代php-fpm 比如Apache mod_fcgid 可以用来替代 mod_cgi 和 mod_cgid,具有管理和维持PHP-CGI进程数目的功能. ApacheLounge 阅读全文
posted @ 2021-04-19 08:46 ascertain 阅读(1198) 评论(0) 推荐(0) 编辑
摘要:本地分支master与origin/master建立关联,origin/master被删除,重置 本地分支master与origin/main建立关联 查找配置文件位置 设置变量(默认 local) 拉取远程所有分支 git fetch --tags --force --progress -- ht 阅读全文
posted @ 2021-04-18 19:52 ascertain 阅读(62) 评论(0) 推荐(0) 编辑
摘要:paramiko基于SSH连接ssh Server执行操作(SSHClient远程连接,SFTPClient上传下载) pip install paramiko 简单示例 import paramiko ssh = paramiko.SSHClient() # 创建ssh客户端 know_hosts 阅读全文
posted @ 2021-04-16 17:57 ascertain 阅读(97) 评论(0) 推荐(0) 编辑
摘要:HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe 437(英语),65001(utf-8),936(GBK)。 阅读全文
posted @ 2021-04-16 17:21 ascertain 阅读(254) 评论(0) 推荐(0) 编辑
摘要:选择当前行 缩放字体 更改自动补全,中文书法时,原快捷键不可用 full screen Code Completion 默认Match case font 调整界面的字体,字号 调整console设置 设置split分屏快捷键 调整关闭选项卡为 ctrl + w 修改默认project路径 plug 阅读全文
posted @ 2021-04-16 16:54 ascertain 阅读(348) 评论(0) 推荐(0) 编辑
摘要:/etc/sysconfig/network-scripts/route-eth0ip/prefix via ip /etc/rc.d/rc.local ip route add 10.1.1.0/24 via 192.168.1.1 dev eth0 proto static metric 100 阅读全文
posted @ 2021-04-16 10:56 ascertain 阅读(339) 评论(0) 推荐(0) 编辑
摘要:login.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" 阅读全文
posted @ 2021-04-16 09:56 ascertain 阅读(91) 评论(0) 推荐(0) 编辑
摘要:首先在httpd.conf主配置文件中加载虚拟主机配置文件httpd-vhosts.conf 默认注释,需取消注释 配置httpd-vhosts.conf VirtualHost配置文件必须要包含黄框中的默认配置 <VirtualHost *:80> DocumentRoot "D:/wamp/io 阅读全文
posted @ 2021-04-16 09:54 ascertain 阅读(126) 评论(0) 推荐(0) 编辑
摘要:index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" 阅读全文
posted @ 2021-04-15 22:06 ascertain 阅读(86) 评论(0) 推荐(0) 编辑
摘要:设定字段默认值 alter table b alter id set default 0; 取消字段默认值 alter table b alter id drop default; 修改存储引擎 alter table b engine=myisam; 阅读全文
posted @ 2021-04-15 18:31 ascertain 阅读(67) 评论(0) 推荐(0) 编辑
摘要:配置CA server(master上) /etc/pki/tls/openssl.cnf dir=/etc/pki/CA cd /etc/pki/CA touch index.txt echo 01 > serial (umask 066;openssl genrsa -out private/c 阅读全文
posted @ 2021-04-15 18:07 ascertain 阅读(313) 评论(0) 推荐(0) 编辑
摘要:插件目录 默认目录 /usr/lib64/mysql/plugin 阅读全文
posted @ 2021-04-15 16:20 ascertain 阅读(49) 评论(0) 推荐(0) 编辑
摘要:-s 依据什么排序al average lock timear average rows sentat average query timec countl lock timer rows sentt query time -t show top N queries -g grep: only co 阅读全文
posted @ 2021-04-14 18:03 ascertain 阅读(71) 评论(0) 推荐(0) 编辑
摘要:os.chmod(path:Union[int,str,bytes,PathLike[str],PathLike[bytes]],mode:int,dir_fd:Optional[int],follow_symlinks:bool) -> Nonemode 采用 0o7777表示法 os.chmod 阅读全文
posted @ 2021-04-13 18:44 ascertain 阅读(110) 评论(0) 推荐(0) 编辑
摘要:"," 每三位分割 '{:,}'.format(88888888888888) for align,text in zip('<^>',['left','right','right']): print('{0:{fill}{align}16}'.format(text,fill=align,alig 阅读全文
posted @ 2021-04-12 16:22 ascertain 阅读(128) 评论(0) 推荐(0) 编辑
摘要:Client: # https://dev.mysql.com/doc/refman/8.0/en/mysql-commands.html [client] pipe # 只能使用pipe方式连接 socket=verbatim # /tmp/mysql.sock pipe名字, 由server的s 阅读全文
posted @ 2021-04-12 14:52 ascertain 阅读(187) 评论(0) 推荐(0) 编辑
摘要:xdpyinfo | grep 'name of display' xhost + export DISPLAY=localhost:10.0 阅读全文
posted @ 2021-04-12 12:44 ascertain 阅读(1172) 评论(0) 推荐(0) 编辑
摘要:@echo off echo *************************************************************************************** echo Get Current Time!! echo ****************** 阅读全文
posted @ 2021-04-12 12:34 ascertain 阅读(165) 评论(0) 推荐(0) 编辑
摘要:启用Guest 命令行 net user net user guest net user guest /active:yes 选择要共享的文件文件夹 属性 => 高级 => 高级共享 => 权限 Everyone secpol.msc Security |Settings => Local Poli 阅读全文
posted @ 2021-04-12 11:18 ascertain 阅读(552) 评论(0) 推荐(0) 编辑
摘要:Service Name: TermService Display Name: Remote Desktop Services 查询服务配置 sc query TermService DLL文件 开启多用户登陆 Computer Configuration => Administrative Tem 阅读全文
posted @ 2021-04-10 22:00 ascertain 阅读(575) 评论(0) 推荐(0) 编辑
摘要:HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conten 阅读全文
posted @ 2021-04-10 11:05 ascertain 阅读(84) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-04-10 09:36 ascertain 阅读(56) 评论(0) 推荐(0) 编辑
摘要:<?php session_start(); // $_SESSION['login']=11; echo $_SESSION['login']; ?> <?php // var_dump($_GET); echo '<br/>'; $username=$_GET['username']; $pas 阅读全文
posted @ 2021-04-10 08:52 ascertain 阅读(79) 评论(0) 推荐(0) 编辑
摘要:HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conten 阅读全文
posted @ 2021-04-10 08:46 ascertain 阅读(92) 评论(0) 推荐(0) 编辑
摘要:ProxySQL Admin The ProxySQL Admin (proxysql-admin) solution configures Percona XtraDB cluster nodes into ProxySQL. Please log ProxySQL Admin bug repor 阅读全文
posted @ 2021-04-06 15:27 ascertain 阅读(127) 评论(0) 推荐(0) 编辑
摘要:1 概述 1.1 MySQL MGR 1.1.1 MGR简介 MySQL Group Replication(简称MGR)是MySQL官方推出的一种基于paxos协议的状态机复制,实现了分布式下数据的最终一致性。MySQL组复制提供了高可用、高扩展、高可靠的MySQL集群解决方案。 1.1.2 MG 阅读全文
posted @ 2021-04-06 15:20 ascertain 阅读(936) 评论(0) 推荐(0) 编辑
摘要:文件 & 目录 Access time不会影响其Change time,但是Modify time则会顺带更新Change time 阅读全文
posted @ 2021-04-06 12:40 ascertain 阅读(34) 评论(0) 推荐(0) 编辑
摘要:Date构造函数不使用new时,会忽略参数,返回当前时区的时间对象 new Date()时,创建的是当前时区的时间对象(包含时区) Date.UTC(2020,1,1,1,1,1)可返回一个基于UTC的时间戳,当利用其创建时间对象时,会返回当地时区的时间对象 时间戳是个integer,不可能包含时区 阅读全文
posted @ 2021-04-05 09:25 ascertain 阅读(99) 评论(0) 推荐(0) 编辑
摘要:下载php 配置httpd LoadModule php7_module D:/wamp/php/php7apache2_4.dll Include conf/extra/httpd-fcgid.conf PHPIniDir "D:/wamp/php/" <IfModule dir_module> 阅读全文
posted @ 2021-04-05 07:23 ascertain 阅读(175) 评论(0) 推荐(0) 编辑
摘要:http://httpd.apache.org/ Apache已经不提供MSI安装包,只有源码和编译好的版本 点击此链接后,进入如下页面ApacheHaus & Apache Lounge都是第三方下载平台,其已经为我们编译成二进制了后面三个wamp集成环境 点击ApacheHaus可以看到三个编译 阅读全文
posted @ 2021-04-04 11:08 ascertain 阅读(136) 评论(0) 推荐(0) 编辑
摘要:VMware相关的缩略语和缩略语 AAM Automated Availability Manager 自动化可用性管理器 ADM Application Discover Manager 应用发现管理器 APM Application Performance Manager 应用性能管理器 BYO 阅读全文
posted @ 2021-04-04 09:18 ascertain 阅读(292) 评论(0) 推荐(0) 编辑
摘要:HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conten 阅读全文
posted @ 2021-04-03 11:31 ascertain 阅读(116) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-04-03 10:02 ascertain 阅读(1068) 评论(0) 推荐(0) 编辑
摘要:忘记VMware vcenter的Administrator@vsphere.local密码的解决办法一、 重置密码:ssh root@192.168.230.100Connecting to 192.168.230.100:22...Connection established.To escape 阅读全文
posted @ 2021-04-02 12:34 ascertain 阅读(6072) 评论(1) 推荐(0) 编辑
摘要:关闭MySQL systemctl stop mysqld 强制进行数据字典升级 和 服务安装 rpm -ivh mysql-community* --nodeps --force 卸载旧版 rpm -qa|grep mysql|grep 8.0.21|xargs rpm -e 查看版本 阅读全文
posted @ 2021-04-01 18:36 ascertain 阅读(557) 评论(0) 推荐(0) 编辑
摘要:table_stype 为 enum类型取值 BASE TABLE VIEW SYSTEM VIEW 用法: 某个schema是否存在某个table select table_schema, table_name, table_type, table_rows from information_sc 阅读全文
posted @ 2021-04-01 17:38 ascertain 阅读(284) 评论(0) 推荐(0) 编辑
摘要:建表时,指定字段case sensitive CREATE TABLE tbl_b ( ui VARCHAR ( 30 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, op VARCHAR ( 30 ) CHARACTER SET 阅读全文
posted @ 2021-04-01 14:24 ascertain 阅读(30) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示