每日一言接口
<script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
<a id="jinrishici-sentence" nav="tags" ></a >
<script src="https://api.hjn.xyz/wy/mrmy.php?code=javascript" type="text/javascript"></script>
<script>mrmy()</script>
https://developer.hitokoto.cn/sentence/deploy/#%E4%BD%BF%E7%94%A8-docker-compose-%E5%90%AF%E5%8A%A8%E6%9C%8D%E5%8A%A1
<p id="hitokoto"><a href="#" id="hitokoto_text"></a></p>
<script src="https://v1.hitokoto.cn/?encode=js&select=%23hitokoto" defer></script>
win10删除edge浏览器
PS C:\Program Files (x86)\Microsoft\Edge\Application\98.0.1108.56\Installer> ./setup.exe --uninstall --system-level --verbose-logging --force-uninstall
个人照片
http://1.117.176.116:9007/
个人音乐网站
http://1.117.176.116:9002/ (账号密码均为test)
个人服务器地址(1022)
114.119.191.4
1.117.176.116
宝塔面板安装
#centos
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
#Ubuntu系统的宝塔面板安装命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
#Debian系统的宝塔面板安装命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
宝塔面板卸载
wget http://download.bt.cn/install/bt-uninstall.sh
bash uninstall.sh
k8s官网
https://kubernetes.io/docs/tutorials/kubernetes-basics/
域名查询网站
https://instantdomainsearch.com/
https://leandomainsearch.com/
其他开源好用的知识库
#showdoc
docker run -d --name showdoc --user=root --privileged=true -p 4999:80 \
-v /showdoc_data/html:/var/www/html/ star7th/showdoc
#参考:https://www.showdoc.com.cn/help?page_id=65610
docker登录及退出登录
#交互式登录
[root@compute ~]# docker login
#命令登录
[root@compute ~]# docker login -u jrt101 -p passwd
#退出登录
[root@compute ~]# docker logout
Removing login credentials for https://index.docker.io/v1/
linux-设置代理和取消代理
#设置代理:
export http_proxy="http://proxy-XXXXX"
export https_proxy="https://proxy-XXXXX:"
#取消代理:
unset http_proxy
unset https_proxy
#举例
export http_proxy=127.0.0.1:10809
export https_proxy=127.0.0.1:10809
unset http_proxy
unset https_proxy
```
### linux清除缓存
linux清除缓存:需要root权限 $ sync $ echo 3 >/proc/sys/vm/drop_caches 上面的echo 3 是清理所有缓存 echo 0 是不释放缓存 echo 1 是释放页缓存 ehco 2 是释放dentries和inodes缓存 echo 3 是释放 1 和 2 中说道的的所有缓存
举例
[root@JRT data]# echo 3 >/proc/sys/vm/drop_caches [root@JRT data]# du -sh 17G .
### md首行空格
的空格是一个字节,而使用“ ”是占两个字节,建议使用这个,这样可以少写几次
### excel对比两列中每行是否相同公式
=IF(D1=G1,"相同","不同")
### winhost配置
hosts配置好域名后需要刷新DNS ipconfig /flushdns 查看DNS缓存内容变没变,检查是否配置成功 ipconfig /displaydns
### shell一键删除grep在多文本 筛选的关键词
sed -i s/州的先生//g $(grep -nr "州的先生" |awk -F : '{print $1}')
### 在线制作svg
http://www.skyfont.com/
### git使用
https://mp.weixin.qq.com/s/EEEIf8FRO7YFuHP5wCJuhA
### 查看本机对外ip
web:
http://httpbin.org/ip
linux:
curl http://httpbin.org/ip
### 网页html加背景音乐
### github加速
https://ghproxy.com/ https://blog.sctux.com/archives/
### linux中中文文档乱码
vim /etc/vimrc set termencoding=utf-8 set encoding=utf8 set fileencodings=utf8,ucs-bom,gbk,cp936,gb2312,gb18030
### linux查内网地址
ip a|grep 网卡名称(主机默认eth0,虚拟机默认ens33)
### 修改主机名
hostnamectl set-hostname --static "RHEL7.2" #注:该命令会同步修改/etc/hostname hostnamectl set-hostname --pretty "RHEL7init" #给主机起别名(昵称) hostnamectl set-hostname k8s #修改主机名为k8s hostnamectl #查看设置后的主机名信息
### 网站禁止复制js
### 破解复制
javascript:alert(document.onselectstart = document.oncontextmenu = document.onmousedown = document.onkeydown = function(){return true;});
### centos加ip登录白名单
PasswordAuthentication no PermitRootLogin yes UseDNS no Match User root Address 1.1.1.1,2.2.2.2 PasswordAuthentication yes ```