Wesley13 Wesley13
4年前
Ubuntu下忘记MySQL密码重设方法
1、结束当前正在运行的mysql进程。\/etc/init.d/mysqlstop2、用mysql安全模式运行并跳过权限验证。\/usr/bin/mysqld\_safeskipgranttables3、重开一个终端以root身份登录mysql。\mysqluroot4、修改
Wesley13 Wesley13
4年前
K8S命令集
命令说明kubectln<namespacegetpods获取指定命名空间podkubectldescribepods<pod查看指定pod事件明细kubectlexecit<podbash进入指定pod容器kubectldescribepod查看pod描述信息与Event事件kub
Wesley13 Wesley13
4年前
JAVA获取所有接口的实现类或父类的所有子类
packagefind;importjava.io.File;importjava.io.IOException;importjava.net.URL;importjava.util.ArrayList;importjava.util.List;importfind.test.Intf;importfind.tes
Stella981 Stella981
4年前
PHP远程下载图片,微信头像存到本地,本地图片转base64
方法一(推荐):functiondownload_remote_pic($url){$header'UserAgent:Mozilla/5.0(WindowsNT6.1;Win64;x64;rv:45.0)Gecko/20100101Firefox/45.0',
Wesley13 Wesley13
4年前
Java解析X509证书代码
通过PKCS12格式的证书库文件获取证书对象InputStreaminStreamnewFileInputStream("c:/certificate.p12");KeyStoreksKeyStore.getInstance("PKCS12");ks.l
Wesley13 Wesley13
4年前
Android 开发之 Notification
调用步骤:调用getSystemService(NOTIFICATION\_SERVICE)方法获取系统的NotificationManager服务通过构造器创建一个Notification对象为Notification设置各种属性通过NotificationManager发送Notification
Stella981 Stella981
4年前
PHP的$_SERVER数组字段详解
$\_SERVER\'PHP\_SELF'\当前正在执行脚本的文件名,与documentroot相关。$\_SERVER\'argv'\传递给该脚本的参数。$\_SERVER\'argc'\包含传递给程序的命令行参数的个数(如果运行在命令行模式)。$\_SERVER\'GATEWAY\_INTERFACE'\
Stella981 Stella981
4年前
SpringBoot2.x搭建Eureka
1说明1.全部配置基于1.8.0_1112.当前SpringBoot使用2.0.52创建项目在SpringBoot项目生成器(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fstart.spring.io%2F)中,输入Grou
调兵遣将 调兵遣将
2年前
canvas 动态修改favicon(模拟消息提醒)
其实主要原理就是先获取到初始的favicon图标,填充到canvas画布中,动态在画布上画出消息提示。最后更新到favicon的href中去