background picture of the home page

hey,欢迎来到ska的编程日记

tailwindcss/原生css实战踩坑记录

浏览器宽度扩大后再收窄,但是响应式组件跟着收窄却少收了一点宽度,导致组件溢出到视口之外 默认情况下,Flex 组件的子项会受 min-wid

thumbnail of the cover of the post

为项目创建maven包装器

在电脑没有maven的情况下 curl -Nkl https://raw.githubusercontent.com/takari/maven-wrapper/master/mvnw | bash 电脑有maven的情况下 mvn wrapper:wrapper

thumbnail of the cover of the post

Linux创建虚拟内存(交换空间)

sudo fallocate -l 8G /swapfile # 设置权限 sudo chmod 600 /swapfile # 格式化为交换分区 sudo mkswap /swapfile sudo swapon /swapfile # 验证结果 free -h 将上面的交换空间持久

thumbnail of the cover of the post

git切换账号推送仓库

# 先移除现有的 origin git remote remove origin # 添加带有用户名的地址 git remote add origin https://该仓库拥有者@github.com/仓库路径.git # 再次尝试推送 git push -u origin main

thumbnail of the cover of the post