剑坤 发布的所有帖子
-
申请YouTube 视频数据 API 密钥
一、使用Google邮箱账号登录Google云平台,网址如下: https://console.developers.google.com/apis/api/youtube.googleapis.com 二、开通Youtube的库,选择 API V3服务 登录成功后在图示中找到API 库中的Youtube API v3点击开通。 三、创建凭据,获得API密钥 四、从Youtube导入视频 演示导入视频,该软件提供了导入youtube视频的接口, 在软件的API视频导入配置中把谷歌云平台上生成的API密钥复制黏贴到这里。 把网址直接导入搜索会发现网址不一定就是该频道的ID,F12打开浏览器开发者工具,在Elements栏搜索channel,可以找到频道ID 单次请求API的最大返回条数为50条,每个Google账户申请到的api key每日有10000个配额的限制。
-
Linux启用ROOT登陆权限 A
部分服务器商为了安全考虑禁用了ROOT默认登陆(如Debian/Ubuntu等)这会导致XFTP类的工具登陆后没有权限,这时就需要开启ROOT用户登陆,同时也需要解除密码登陆的禁用,就是密码和密钥证书都可以登录。 常规操作 修改sshd_config文件,命令为:`vim /etc/ssh/sshd_config` 将`#PasswordAuthentication no`的注释去掉,并且将`no`修改为`yes` 将`#PermitRootLogin prohibit-password`的注释去掉,将`prohibit-password`改为`yes` 启动SSH服务,命令为:`/etc/init.d/ssh restart` // 或者`service ssh restart` 验证SSH服务状态,命令为:`/etc/init.d/ssh status` 添加开机自启动 `update-rc.d ssh enable` (一般无需操作) 备注:如需ROOT密码修改(sudo su -root/passwd 新密码)
-
Nginx同时配置多个二级站点
修改nginx.conf配置文件,在 location / { }节点 或者是 location [安装目录名称] / { }(子目录安装)节点间加入上述规则。 如果用的宝塔,直接在伪静态那里选择对应程序,然后修改二级目录地方即可。以下为zblog的伪静态配置。 主域名location /{ if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } }二级目录location /a/ { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /a/index.php; } }
-
乾坤堂Nginx二级目录配置
下面配置文件是针对同一个站点有二级目录的伪静态配置,并且把主目录重定向到BBS的二级目录 # BBS二级目录 location /bbs/ { try_files $uri $uri/ /bbs/index.php; } location ~^(/page/).*(.php)$ { try_files $uri $uri/ /bbs/index.php; } location /api/ { if (!-e $request_filename){ rewrite ^/api/(.*)$ /bbs/api/index.php; } } # 主域名 location / { rewrite ^/(.*)$ https://www.qiankun.chat/bbs/$1;}
-
Linux删除文件报错出现rm: cannot remove `.user.ini’: Operation not permitted
目录中执行如下命令后即可删除:chattr -i .user.ini
-
Discourse常用命令持续增加中
Discourse常用命令持续增加中 ./launcher destroy app 重载项目 ./launcher start app 开始项目 ./launcher rebuild app 重新编译 ./launcher logs app 查看日志 service docker restart 重启docker ./launcher enter app 进入容器 discourse remap =BEFORE= =AFTER= 更换域名(先进入容器后操作) rake posts:rebake 更换域名(更换域名后重载) cd /var/discourse git pull ./launcher rebuild app(手动升级) ./launcher destroy app web_only (运行双容器) ./launcher start app
-
宝塔面板退回老版本方法
更换7.9.3版本示例 wget https://download.bt.cn/install/update/LinuxPanel-7.9.3.zip unzip LinuxPanel-7.9.3.zip cd panel bash update.sh cd .. && rm -f LinuxPanel-7.9.3.zip && rm -rf panel历史版本集合 > https://download.bt.cn/install/update/LinuxPanel-8.1.0.zip(目前在用) > https://download.bt.cn/install/update/LinuxPanel-7.9.5.zip > https://download.bt.cn/install/update/LinuxPanel-7.9.3.zip > https://download.bt.cn/install/update/LinuxPanel-7.7.0.zip > https://download.bt.cn/install/update/LinuxPanel-7.6.0.zip > https://download.bt.cn/install/update/LinuxPanel-7.5.2.zip > https://download.bt.cn/install/update/LinuxPanel-7.5.1.zip > https://download.bt.cn/install/update/LinuxPanel-7.4.8.zip > https://download.bt.cn/install/update/LinuxPanel-7.4.7.zip > https://download.bt.cn/install/update/LinuxPanel-7.4.6.zip > https://download.bt.cn/install/update/LinuxPanel-7.4.5.zip > https://download.bt.cn/install/update/LinuxPanel-7.4.3.zip > https://download.bt.cn/install/update/LinuxPanel-7.4.2.zip > https://download.bt.cn/install/update/LinuxPanel-7.4.0.zip > https://download.bt.cn/install/update/LinuxPanel-7.3.0.zip > https://download.bt.cn/install/update/LinuxPanel-7.2.0.zip > https://download.bt.cn/install/update/LinuxPanel-7.1.1.zip > https://download.bt.cn/install/update/LinuxPanel-7.1.0.zip > https://download.bt.cn/install/update/LinuxPanel-7.0.3.zip > https://download.bt.cn/install/update/LinuxPanel-7.0.2.zip > https://download.bt.cn/install/update/LinuxPanel-7.0.1.zip > https://download.bt.cn/install/update/LinuxPanel-6.9.9.zip > https://download.bt.cn/install/update/LinuxPanel-6.9.8.zip > https://download.bt.cn/install/update/LinuxPanel-6.9.7.zip > https://download.bt.cn/install/update/LinuxPanel-6.9.6.zip > https://download.bt.cn/install/update/LinuxPanel-6.9.5.zip > https://download.bt.cn/install/update/LinuxPanel-6.9.2.zip > https://download.bt.cn/install/update/LinuxPanel-6.8.5.zip > https://download.bt.cn/install/update/LinuxPanel-6.8.4.zip > https://download.bt.cn/install/update/LinuxPanel-6.8.3.zip > https://download.bt.cn/install/update/LinuxPanel-6.8.2.zip > https://download.bt.cn/install/update/LinuxPanel-6.6.6.zip > https://download.bt.cn/install/update/LinuxPanel-6.5.0.zip > https://download.bt.cn/install/update/LinuxPanel-6.4.0.zip > https://download.bt.cn/install/update/LinuxPanel-6.3.0.zip > https://download.bt.cn/install/update/LinuxPanel-6.2.0.zip > https://download.bt.cn/install/update/LinuxPanel-6.1.0.zip > https://download.bt.cn/install/update/LinuxPanel-5.9.2.zip > https://download.bt.cn/install/update/LinuxPanel-5.9.1.zip > https://download.bt.cn/install/update/LinuxPanel-5.9.0.zip
-
docker启动报错:Cannot connect to the Docker daemon
解决方式:正确的是将当前用户加入docker组 解决步骤: sudo groupadd docker #添加docker用户组 sudo gpasswd -a $USER docker` #将登陆用户加入到docker用户组中 newgrp docker #更新用户组 docker ps #测试docker命令是否可以使用sudo正常使用sudo service docker start sudo systemctl enable dockerCannot connect to the Docker daemon at unix:///var/run/docker.sock 设置 daemon.json,没有的话创建,位置/etc/docker\daemon.json,设置为国内源 #中科大镜像 { "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"] }
-
Linux卸载Docker具体步骤
步骤一:停止Docker服务 在卸载Docker之前需要确保Docker服务已经停止。命令如下: sudo systemctl stop docker 步骤二:卸载Docker软件包 在Linux系统中,我们可以使用包管理器来卸载软件包。命令如下: Debian/Ubuntu: sudo apt-get purge docker-ce docker-ce-cli containerd.io CentOS: sudo yum remove docker-ce docker-ce-cli containerd.io Fedora: sudo dnf remove docker-ce docker-ce-cli containerd.io 步骤三:删除Docker镜像和容器 卸载Docker软件包后还需要手动删除Docker的镜像和容器。命令如下: docker images docker ps -a然后,使用以下命令删除镜像和容器: docker rmi <image_id> docker rm <container_id>步骤四:删除Docker数据目录 卸载Docker后还需要手动删除Docker的数据目录以确保清理干净。默认Docker的数据目录位于/var/lib/docker,命令如下: sudo rm -rf /var/lib/docker 步骤五:验证卸载结果 为了验证Docker是否已成功卸载,命令如下: docker version 如果出现类似以下信息,则表示Docker已成功卸载: Command 'docker' not found, but can be installed with: sudo snap install docker # version 19.03.11, or sudo apt install docker.io # version 19.03.11-0ubuntu1~20.04.1
- Discourse手动升级更新
-
Discourse更换域名教程
进入Dicourse Docker容器: ./launcher enter app进入容器后修改域名格式如下(BEFORE): discourse remap =旧域名= =新域名= 重新编译 rake posts:rebake进入后台把旧域名更替为新域名 /admin/site_settings
-
Windows电脑关闭和开启休眠模式
关闭休眠模式(C空间可以节省十几个G但是会增加电脑能耗) powercfg -h off 开启休眠模式 powercfg -h on
- 《易学入门·张延生著》
- 《刘氏奇门秘箓·法术奇门》
- 《奇门揭要》
- 《奇門遁甲秘笈大全古本·明·劉基撰·共八册》
- 《五行精纪·宋·廖礼伯著》
- 《易象图说内外篇·元·张理撰》
- 《岳武穆易筋经·秘传》
- 《奇经八脉考·清·李时珍》
- 《也是山人医案》·清代·也是山人
-
Debian安装 Docker
第二版本 1、首先进入管理员权限。 2、更新软件源。 sudo apt update 3、安装一些依赖 sudo apt install apt-transport-https ca-certificates curl software-properties-common 4、为系统添加Docker的密钥 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 5、添加Docker源,这里我们选择的是stable稳定版 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" 6、再次更新源 sudo apt update 7、查看有哪些Docker版本可以安装 sudo apt-cache policy docker-ce 8、这里我们安装安装Docker的社区版 sudo apt install docker-ce 9、输入docker,即可检查是否安装成功。 10、启动Docker服务 sudo service docker start 11、查看Docker是否开启 sudo systemctl status docker 12、设置Docker开机自动启动 sudo systemctl enable docker 经过上述配置,我们已经成功安装Docker。但是,现在只有管理员能够使用Docker,其他用户没有使用Docker的权限,下面我们再进行配置,使得其他用户也能使用Docker。 1、添加用户组 sudo groupadd docker 2、将当前用户添加至用户组 sudo gpasswd -a username docker 3、更新用户组 newgrp docker 现在,其他用户也能使用Docker了。
-
如何快速推算万年历
命理师如何快速推算万年历 学八字首先要会排四柱八字。最便捷的的方法当然就是带一本万年历。但是如果出门在外没有万年历怎么办,那么就得学会盲人中流传的“流星赶月法”,此法虽好也准确无误,但是能背下这么多口诀也是不容易的。 下面我教大家一个密诀,用一公式可以推算出1900年到2100年间任何一天的天干地支,且非常准确,比流星赶月法不知要省事多少倍。 推算公式 1:1900至2100年年干=年尾数—3 例:1969年年干=9—3=6,第6位天干就是已;2012年年干=2—3=9,第9位天干是壬(2不足减就补十成12)。 2:1900至1999年年支=年尾二位数+1 2000至2099年 年支=年尾二位数+5 例:1969年年支=69+1=70,去掉60的倍数为10,地支第十位为酉;2012年年支=12+5=17,去掉12余5,地支第五位是辰;那么1969年干支就是已酉2012年干支就是壬辰。 3:月干公式,月的地支是固定的如正月起寅之类,只计算月干 月干=年干数*2+月份 例:1969年(已酉)年八月(酉月)的天干=6*2+8=20,天干10为周期就去掉10,天干第十位为癸,则此月干支为癸酉。 4:日干支公式: 1900至1999年日干支基数=(年尾二位数+3)*5+55+(年尾二位数—1)/4 2000至2099年日干支基数=(年尾二位数+7)*5+15+(年尾二位数+19)/4(只用商数,余数不用,数过60就去掉60) 例:2008年月日10月18日: 日干支基数=(8+7)*5+15+(8+19)/4=36(已去掉60的倍数)这数就是1月1号的干支数。 从1月1号到10月5日按满60去之后数为36+31(1月下类推)+29+31+30+31+30+31+31+30+18=7+0+1+1+1+18=28 则天干去10的倍数余8为辛,地支去12的倍数余4为卯。今天干支就是辛卯。 注:2月份要么是28天,要么是29天,每隔4年为29天的,其他均为28天。比如:2000、2004、2008年等年份的2月份均为29天。 5:时干公式=时干序数*2+日支序数—2 多多练习,这样你可以排任何一天的四柱了哦。 从此每年每日的干支不用去翻皇历了,任何一天的天干地支你都知道 以上公式为年月日时的干支快速算法,其中的日主干支相对较为复杂,需要多加练习才可以熟练的使用(只需算出日干就可以了,日支直接利用农历月份数对应到地支就可以了,如正月建寅二月建卯等),祝各位易友学习愉快!
- 张延生心易PDF下载
- 释延王易筋经洗髓经视频下载