This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
申请ssl证书 | |
//申请 | |
https://freessl.cn/ | |
//下载acme.sh | |
curl https://gitcode.net/cert/cn-acme.sh/-/raw/master/install.sh?inline=false | sh -s [email protected] | |
//部署 | |
acme.sh --issue -d *.huaguochang.net --dns dns_dp --server https://acme.freessl.cn/v2/DV90/directory/4yv6e35nvikr9wsv24j3 | |
//安装到 | |
nginx | |
acme.sh --install-cert -d *.huaguochang.net \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
打开控制台,输入mount会出现一堆东西,找到想要改的硬盘得到路径,比如我的是/dev/sdb1 | |
再输入 | |
sudo mount -o rw,remount /dev/sdb1 | |
输入密码解决root问题。 | |
最后输入mount看一下硬盘括号后的读写情况是否变为rw。 | |
如果变为rw就完事了。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux生成公钥和私钥 | |
服务器A: 192.168.1.1 | |
服务器B: 192.168.1.2 | |
服务器A: | |
配置: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu 引导项修复 | |
最近ubuntu+win10双系统重装了windows系统,ubuntu引导项丢失了,记录下修复方法: | |
1、制作一个同版本的ubuntu启动盘,选 try ubuntu; | |
2、打开终端,添加 boot-repair 源(需连网) | |
sudo add-apt-repository ppa:yannubuntu/boot-repair |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HBuilderX 修改默认的终端 | |
修改D:\dev\tool\HBuilderX\plugins\builtincef3terminal\script\main.js文件 | |
大概16行的位置 | |
if(isWin){ | |
shell = 'D:\\dev\\tool\\cmder\\vendor\\git-for-windows\\bin\\bash.exe'; | |
// shell = 'powershell.exe'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -print0 | xargs -0 dos2unix | |
dos2unix ** **/.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
打开你需要截图的网页,鼠标右键菜单选择“检查”,或按“F12键”打开“开发者工具”。 | |
随后按快捷键 Ctrl + Shift + P | |
输入框输入“Capture”得到如下选项:(用上下键,选择) | |
capture area screenshot(鼠标自定义区域截图) | |
capture full size screenshot(完整页面的截图) | |
capture node screenshot(捕获节点屏幕截图,就原代码区域截图) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
### MSSQL ################################################ | |
services: | |
mssql: | |
build: | |
context: ./mssql | |
environment: | |
- MSSQL_PID=Express | |
- MSSQL_DATABASE=rundao |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'RUNrundao!@#..' -Q 'RESTORE FILELISTONLY FROM DISK = "/var/opt/mssql/data/NantongWeigang.bak"' | tr -s ' ' | cut -d ' ' -f 1-2 | |
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'RUNrundao!@#..' -Q 'RESTORE DATABASE NantongWeigang FROM DISK = "/var/opt/mssql/data/NantongWeigang.bak"' | |
sudo docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd \ | |
-S localhost -U SA -P '<YourNewStrong!Passw0rd>' \ | |
-Q 'RESTORE DATABASE WideWorldImporters FROM DISK = "/var/opt/mssql/backup/wwi.bak" WITH MOVE "WWI_Primary" TO "/var/opt/mssql/data/WideWorldImporters.mdf", MOVE "WWI_UserData" TO "/var/opt/mssql/data/WideWorldImporters_userdata.ndf", MOVE "WWI_Log" TO "/var/opt/mssql/data/WideWorldImporters.ldf", MOVE "WWI_InMemory_Data_1" TO "/var/opt/mssql/data/WideWorldImporters_InMemory_Data_1"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
linux 常用命令 | |
查找根目录 / 最近10分钟内被改动或增加的文件: | |
find / -cmin -10 | |
这条命令一般会查找出很多不相干的文件,所以需要忽略一些文件路径的检索,比如忽略 /sys/路径下的文件检索,命令如下: | |
find / -cmin -10 -! -path "/sys/*" |
NewerOlder