android-studio查看当前所在Activity
每个人当人都可以逞强,但限于在他所懂的方面。——歌德 分享一个安卓技巧,这里可以使用android-studio自带的Profiler查看 非常简单易用
ios禁用夜间模式
家庭应该尽各种方法,鼓励儿童对运动的兴趣。不过应当注意,不要让这种兴趣成为旁观者的兴趣。——马卡连柯 iOS 13以上禁用夜间模式这里设置 然后在AppDelegate里加上这行代码: 1self.window.overrideUserInterfaceStyle = UIUserInterfaceStyleLight; 即可
k8s管理工具kuboard
锻炼是健康的基础,卫生是健康的保证。——佚名 分享一个工具 比 Kubernetes Dashboard 更好用的管理工具 - Kuboard | Kuboard github: https://github.com/eip-work/kuboard-press Kuboard 是一款免费的 Kubernetes 管理工具,提供了丰富的功能,结合代码仓库、镜像仓库、CI/CD工具等,可以便捷的搭建一个生产可用的 Kubernetes 容器云平台,轻松管理和运行云原生应用。Kuboard 提供的功能有: Kubernetes 基本管理功能 节点管理 名称空间管理 存储类/存储卷管理 控制器(Deployment/StatefulSet/DaemonSet/CronJob/Job/ReplicaSet)管理 Service/Ingress 管理 ConfigMap/Secret 管理 CustomerResourceDefinition 管理 Kubernetes 问题诊断 Top ...
阿里云oss-cloud-sdk-springboot3兼容问题
辛勤的蜂蜜永远没有时间悲哀。——布莱克 前两天提到了: minio临时凭证直传切换到阿里云oss | 阿超 但是忘记说依赖和配置了,因为我本地是jdk17+springboot3,所以需要修改,首先是依赖: 123456<!-- https://mvnrepository.com/artifact/com.aliyun.oss/aliyun-sdk-oss --> <dependency> <groupId>com.aliyun.oss</groupId> <artifactId>aliyun-sdk-oss</artifactId> <version>3.17.4</version> </dependency> 按照我原来的博客里肯定是不行的 阿里云OSS临时凭证前后端配合上传文件 | 阿超 不能使用原来的 12345<dependency> <gr...
github或gitee配置ssh
生命的定义就是拥有明天。——冯骥才 分享一个小技巧,配置ssh clone代码 步骤大致如下: 123456789101112131415161718192021222324252627282930313233343536373839404142434445Last login: Tue Jan 30 15:29:27 on ttys001The default interactive shell is now zsh.To update your account to use zsh, please run `chsh -s /bin/zsh`.For more details, please visit https://support.apple.com/kb/HT208050.# 我这里为了演示,清除之前配置的sshGithub-Id-VampireAchao:blog achao$ rm -rf ~/.ssh/*# 确保配置好了gitGithub-Id-VampireAchao:blog achao$ git config --global user.name ...
minio临时凭证直传切换到阿里云oss
孤独没有什么不好。使孤独变得不好,是因为你害怕孤独。——《孤独六讲》 代码非常简单,像之前的实现: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273import cn.hutool.core.date.DateUtil;import cn.hutool.core.io.file.FileNameUtil;import cn.hutool.core.lang.UUID;import cn.hutool.core.text.StrPool;import cn.hutool.core.util.StrUtil;import cn.hutool.core.util.URLUtil;import cn.hutool.http.ContentType;import com.aliyun.oss.HttpMethod;import com.aliyun.oss.OSS...
charlesproxy抓包工具
帮人要帮心,帮心要知心,知心要诚心。——伊索 分享一个抓包工具: https://www.charlesproxy.com/ 支持mac,可以记录请求、方便分析
新版阿里云内容安全对接
只有不够聪明的人才批评、指责和抱怨别人。但是,善解人意和宽恕他人,需要培养和自制的功夫。——卡耐基 文档: 图片审核增强版SDK_内容安全(Content Moderation)-阿里云帮助中心 代码: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475import cn.hutool.core.thread.AsyncUtil;import cn.hutool.core.util.RandomUtil;import com.alibaba.nacos.common.utils.JacksonUtils;import com.aliyun.auth.credentials.Credential;import com.aliyun.auth.credentials.provider.StaticCredentialProvider;import co...
apache-incubator-streampark源码编译本地运行(七)
要求旁人都合我们的脾气,那是很愚蠢的。——歌德 这次删除.idea目录后,重新打开项目,运行build.sh 发现报错: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167~/IdeaProjects/incubator-streampark/bin/b...
各系统查看端口占用并停止
一个人不应该与被财富毁了的人交结来往。——佚名 windows-cmd 1234567891011121314151617181920212223242526272829# 查询占用特定端口(例如8080)的PIDnetstat -ano | findstr :8080# 搜索包含关键词"your_keyword"的进程tasklist | findstr "your_keyword"# 强制停止特定PID的进程taskkill /F /PID [PID]# 搜索占用特定端口(例如8080)的进程并停止for /f "tokens=5" %a in ('netstat -ano ^| findstr :8080') do taskkill /F /PID %a# 搜索包含关键词"your_keyword"的进程并停止for /f "tokens=2" %i in ('tasklist ^| findstr "your_keyword&q...
