N16※删除设备和驱动器中不常用的图标
在注册表中找到下述位置,删除不常用的文件夹即可 计算机\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
N27※python脚本
1> 一段时间内只允许调用1次函数 import time def once_per_period(period): def decorator(func): last_called = 0 def wrapper(*args, **kwargs): nonlocal last_called now = time.time()...
L14※ubuntu 修改ip地址
1> ubuntu 18.04 ① 修改配置文件/etc/network/interfaces vim /etc/network/interfaces auto lo iface lo inet loopback auto eth0 #设置自动启动eth0接口,eth0根据ifconfig中的网卡名进行...
L10※centos用Dnsmasq搭建dns服务器
1> 安装Dnsmasq yum -y install dnsmasq 2> 备份默认的Dnsmasq的配置文件 cp /etc/dnsmasq.conf /etc/dnsmasq.conf.bak 3> 配置上游DNS文件的路径 vim /etc/dnsmasq.conf ① Vim中搜索...
L24※Centos 升级gcc版本
1> 卸载原来的旧版本 ① 查看当前的版本号 rpm -q gcc ② 卸载掉旧版本 rpm -e [上一步查到的版本号] ③ 如果上一步报错 error: Failed dependencies: gcc = 4.8.5-44.el7 is needed by ...
L07※Linux安装chrome
1> Centos安装chrome ① 安装方法1 a. 修改yum源 cd /etc/yum.repos.d/ vi google-chrome.repo [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/sta...
L36※docker ubuntu 设置ssh开机启动
正常在 linux 操作系统内设置服务自启动的方法一般都是使用 systemctl,但是 Docker 容器没有 systemctl 权限,这里使用脚本设置开机启动 1> 编写启动脚本 vim /root/start_ssh.sh LOGTIME=$(da...
L29※ubuntu搭建NTP Server
1> 寻找NTP SERVER http://www.pool.ntp.org是NTP的官方网站,这里可以查询最近的NTP Server。 ntp1.aliyun.com ntp.tencent.com ntp.ntsc.ac.cn # 中国NTPserver server 0.cn.pool.ntp.org s...
N22※synology 安装Realtek USB RTL8156B 2.5G网卡驱动
1> 查询群辉的架构 群辉套件架构 2> 下载相关的网卡驱动 https://github.com/bb-qq/r8152/releases 3> 套件中心手动安装驱动 4> DSM7 提升套件权限 sudo install -m 4755 -o root -D /var/packa...