929355193的头像-动感记事小屋
管理员
这家伙很懒,什么都没有写...
ubuntu高版本情况下,开机自启动开启-动感记事小屋

ubuntu高版本情况下,开机自启动开启

/lib/systemd/system/rc-local.service 最底部添加 [Install] WantedBy=multi-user.target Alias=rc-local.service 然后自己创建rc.local文件,权限为777 vim /etc/rc.local 然后启动服务 syste...
2年前
1040
bbr安装脚本-动感记事小屋

bbr安装脚本

wget --no-check-certificate -O /opt/bbr.sh https://github.com/teddysun/across/raw/master/bbr.sh;chmod 755 /opt/bbr.sh;/opt/bbr.sh 重启后查看是否生效(包含bbr字符串) sysctl net.ipv...
2年前
1030
orangepi扩展SD卡分区大小-动感记事小屋

orangepi扩展SD卡分区大小

烧写OrangePi镜像后,发现可用空间太少怎么办? 于是查看磁盘状况发现有空闲空间没有被根分区使用,部分系统可以执行sudo fs_resize来进行扩容,Armbian会自动扩容(发现没有扩容的可以重启再看...
7年前
1010
python中doc转pdf-动感记事小屋

python中doc转pdf

pip install pywin32 from win32com.client import gencache from win32com.client import constants, gencache def doctupdf(wordPath, pdfPath): ''' word转pdf :param wordPath: word文件路...
6年前
1010
Kotlin控件自动映射id功能(不用findViewById方法来获取对象了,大大方便开发者)-动感记事小屋

Kotlin控件自动映射id功能(不用findViewById方法来获取对象了,大大方便开发者)

1.在app/build.gradle添加如下插件(两个都要) apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' 如果plugins下面都是id***格式的,就改为id开头: id 'kotlin-andr...
3年前
960
Ubuntu更换阿里云的源-动感记事小屋

Ubuntu更换阿里云的源

先备份 cd /etc/apt cp sources.list sources.list.bak 看下源里面是不是us.archive.ubuntu.com的,如果是就直接替换。一般默认安装的都是这个。 sed -i 's/us.archive.ubuntu.com/mirrors.aliy...
2年前
941
静态路由跨网段访问代码-动感记事小屋

静态路由跨网段访问代码

route add 192.168.123.0 mask 255.255.255.0 192.168.1.253 -p route delete 192.168.123.0 mask 255.255.255.0 192.168.1.253 route add 10.0.0.0(要访问的IP段) mask 255.0.0.0 192.168.0....
2年前
860
vue打包 element 字体图标 丢失-动感记事小屋

vue打包 element 字体图标 丢失

build目录下utils.js文件 if (options.extract) { return ExtractTextPlugin.extract({ use: loaders, fallback: 'vue-style-loader', publicPath: '../../' }) } else { return ['vue-style-lo...
6年前
810
centos 7 网络同步时间-动感记事小屋

centos 7 网络同步时间

yum -y install ntp ntpdate ntpdate ntp1.aliyun.com // 开机启动 vim /etc/rc.d/rc.local /usr/sbin/ntpdate ntp1.aliyun.com;/sbin/hwclock -w 定时任务 crontab -e 0 */1 * * * ntpdate ntp...
6年前
770
url中换行符\n是%0a-动感记事小屋

url中换行符\n是%0a

www.xxxx.com/a.php?a=123%0a456
4年前
730