摘要:
1. Edit resolved config file nano /etc/systemd/resolved.conf 2. Replace #DNS into DNS DNS=9.9.9.9 1.1.1.1 3. Restart systemd service service systemd-r 阅读全文
摘要:
When I do command sudo apt update, always get belowing errors: and I have done my proxy setting in file .bash_profile like: and check it with command 阅读全文
摘要:
While this was a really easy way to change some of the settings, what if you want to do more extensive changes to your PowerShell console? For example 阅读全文
摘要:
There are three main disk roles in Azure: the data disk, the OS disk, and the temporary disk. 1. OS Disk– az vm deallocate --resource-group KAY-RG --n 阅读全文
摘要:
Today I run ubuntu docker image on powershell and find the directory color is blue, so I want to change it. Step 1: set ubuntu proxy: export http_prox 阅读全文
摘要:
Method One: mkdir /etc/systemd/system/docker.service.dvim /etc/systemd/system/docker.service.d/http-proxy.conf [Service]Environment="HTTP_PROXY=http:/ 阅读全文
摘要:
Its not that easy to config mRemoteNG custom color themes, not like XShell which is really convinent. There are many options to select and I will give 阅读全文
摘要:
100! = 1 * 2 * 3 * ... * 99 * 100 如果结尾要有0,必然是有两个数字相乘进位了,而10 = 2 * 5,所以一个数字末尾有多少个0,取决于它分解因子后,有多少个2和有多少个5,假设2的个数为m,5的个数为n,那么最终的结果为min(m,n),而根据实际情况,当数字大于 阅读全文
摘要:
1.以下三条输出语句分别输出什么?[C易] 答:分别输出false,false,true。str1和str2都是字符数组,每个都有其自己的存储区,它们的值则是各存储区首地址,不等;str3 和str4同上,只是按const语义,它们所指向的数据区不能修改。str5和str6并非数组而是字符指针,并不 阅读全文
摘要:
今天拷贝了一段代码 编译的时候报错 显然是字符的问题, 猜想M-BM-是Linux下的一个特殊字符,要怎么替换呢,想到用十六进制方式替换,那么首先查看这个特殊字符的十六进制表示,用od命令 可以看到这个特殊字符的十六进制表示是c2 a0,,用如下命令替换即可 阅读全文