ubuntu clang bug in
Linux shell `#!` interpreter All In One
Linux shell #! interpreter All In One
指定脚本解释器的路径
#!/usr/bin/env python3
# ✅ 推荐写法, 动态读取 env 配置的解释器路径,切换系统环境不会报错,可移植性高 🚀
#!/usr/bin/python3
# 👎 不推荐写法... ......
Python 数据类型转换 All In One
Python 数据类型转换 All In One Python 3 数据类型转换 |函数 | 描述| -- | -- int(x [,base]) | 将x转换为一个整数 float(x) | 将x转换到一个浮点数 complex(real [,imag]) | 创建一个复数 str(x) | 将对 ......
在SSD存储器(U盘或硬盘)上安装Ubuntu
目标:实现Ubuntu系统的即插即用,在SSD存储器(U盘或硬盘)上安装Ubuntu,在任意电脑的USB接口(defult:USB3.1)上插入存储器,即可通过选择BOOT方式(开机时按F12)启动Ubuntu 以下是本文的安装环境: SSD存储器:thinkplus TU180 PRO 512G( ......
ubuntu 2204 iptable重启自动生效配置方法
安装 iptables-persistent # sudo apt-get -y install iptables-persistent 设置iptables规则(只做演示) # iptables -t nat -A PREROUTING -p tcp --dport 5866 -j DNAT -- ......
ubuntu 修改静态IP
##1. 查看网卡名字 输入命令 ifconfig或者ip a: 我的网卡是‘enp3s0’。 ##2. 修改yaml文件 打开并编辑/etc/netplan/目录中的.yaml文件: 严格按照如下格式修改: 点击查看代码 network: ethernets: enp3s0: #配置的网卡的名称 ......
Ubuntu换阿里云源
2019-07-24 最近,我发现…Ubuntu的官方源很慢,下载速度慢到爆炸,于是决定换阿里云源 首先 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 备份一下源文件,以防万一 在sudo vi /etc/apt/sources. ......
Windows虚拟机安装ubuntu server,网络配置和性能增强
虚拟机网络配置 在setting里搜network设置,修改vmnet8(NAT)配置。根据虚拟机ip来改。 再来一点增强虚拟机性能的技巧 Edit Group Policy Edit group policy (gpedit) Go to Local Computer Policy > Compu ......
Ubuntu VirtualBox基础设置及问题解决
持续更新中............... 功能设置: 拷贝字符串: 选择需要打开该功能的虚拟机; 点击设置; 选择常规; 选择高级; 将“共享粘贴板”与“拖放”全部选择“双向”。 屏幕常亮 进入虚拟机,选择向下的倒三角; 点击设置图标,进入设置界面。 进入设置界面,选择"Power",将"Blank ......
ubuntu两台电脑之间硬盘远程挂载
主要参考这两篇博客 https://blog.csdn.net/ylxwk/article/details/129155931 https://www.shuzhiduo.com/A/kPzOEWN75x/ #服务器电脑配置: 1. 安装nfs服务:sudo apt-get install nfs- ......
云原生应用保护平台市场指南 All In One
云原生应用保护平台市场指南 All In One
Market Guide for Cloud-Native Application Protection Platforms
......
Exclude/Include option in EXPDP and IMPDP Datapump
Exclude/Include option in EXPDP/IMPDP Datapump Oracle Exclude and include option used to limit the object type which can be exported and imported in D ......
Ubuntu 网络相关
#ubuntu 18.04 wired unmanaged 原因未知,参考链接 ##解决方法 sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf sudo vim /etc/NetworkManager/Net ......
解决ubuntu 20.04、22.04 即新版本 fcitx 无法使用的问题
前提 已在系统设置中将fcitx设置为默认 fcitx开机自启 配置的过程不在本文讨论范围之内 开机自启可通过安装gnome-tweaks配置实现 问题分析流程 手动启动fcitx时提示设置XMODIFIERS变量 你安装的fcitx还以为你使用Xorg登录,安装的搜狗输入法也是如此,这些相关的配置 ......
maven的bug
今天写代码,很奇怪,明明maven的依赖没有错误,但有一个模块其他模块就是找不到他的依赖,最后解决的也很奇怪,把那个模块的代码动了一下,立马就找到了,但实际代码没动,很离谱。 .idea文件的问题,里面的maven出现了问题,把这个文件删掉,重新打开idea就可以了 ......
ubuntu 安装mysql
apt install mysql-server #安装 service mysql status #查看状态 默认账户:/etc/mysql/debian.cnf 修改root密码: 使用root用户操作:1. mysql -root -p2. use mysql;3. update user s ......
Bad magic number in super-block
提交svn时报一下错误: Commit failed (details follow): Can't flush file to disk: Input/output error 出现该错误后, 重启svn服务器, 服务器启动不了。 拆除其中一块硬盘的数据线和电源线后,重启电脑,可以进入系统。 修改 ......
Expression #1 of ORDER BY clause is not in SELECT list
mysql问题 Code:3065,SQL State:HY000,Expression #1 of ORDER BY clause is not in SELECT list, references column 'name' which is not in SELECT list; this i ......
Ubuntu Server 全版本更换镜像源为阿里云镜像源
查看当前 Ubuntu 镜像源 less /etc/apt/sources.list 文件部分内容: # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the d ......
Ubuntu18.04基于Apache搭建SVN服务器
安装必需工具 sudo apt-get install apache2 subversion libapache2-mod-svn 建立SVN仓库 确定SVN根目录为 /usr/svn,并创建仓库。 sudo svnadmin create /usr/svn/test1 sudo chown -R ......
ubuntu 20.04 | 18.04 设置静态ip方法
默认情况下网络使用的是DHCP,作为被频繁访问的服务器,需要设置该服务器地址为静态IP。 命令行下,执行: ifconfig 从这里可以找到,本机的IP地址 192.168.1.100,子网掩码 255.255.255.0,以及推测网关地址 192.168.1.1 默认的网卡配置文件 默认情况下,网 ......
如何把一个 Python 项目发布到 PyPI 上指南教程 All In One
如何把一个 Python 项目发布到 PyPI 上指南教程 All In One
如何发布一个 Python 项目到 PyPI 上
如何发布一个 Python 包到 PyPI 上
......
ubuntu 20.04 设置允许root登录
Ubuntu默认不设置 root 帐户和密码。如有需要,可在设置中开启允许 root 用户登录。具体操作步骤如下: 问题描述 Invalid/incorrect password: Warning: Permanently added '192.168.1.156' (ECDSA) to the l ......
Python errors All In One
Python errors All In One errors ❌ from: can't read /var/mail/gpiozero https://stackoverflow.com/questions/16069816/getting-python-error-from-cant-read ......
Ubuntu使用docker部署gitee上个人博客solo项目
使用云服务器 Ubuntu20.04 LTS 1.安装docker # 输入docker提示docker安装语句 apt install docker.io # 从Docker Hub中拉取最新项目镜像 docker pull b3log/solo 2.安装mysql # 使用以下命令将安装mysq ......
Mysql中find_in_set()函数与in()函数的用法
1.认识find_in_set()函数 Mysql官方文档手册,如下图: 2.find_in_set()基本操作 select find_in_set (‘b’, ‘a,b,c,d,w’); 结果为2,因为b字符串在strlist集合中,在第二个位置,起始数是从1开始的 select find_in ......
Ubuntu18.04系统安装nginx
Nginx 软件包在默认的 Ubuntu 存储库中可用。 安装非常简单。首先更新包列表,然后安装 Nginx。 sudo apt update sudo apt install nginx 或 sudo apt install -y nginx 查看nginx版本与启动状态 nginx -v whe ......
Gitlab CI/CD of react app in docker container 用gitlab CI/CD部署docker container react app
1.0 Download project git clone http://oauth2:{token}@{host}/{user}/{project} {dir_folder} download project to target server 2.0 Install gitlab runner ......
The entity cannot be constructed in a LINQ to Entities query 原因及修复方法
public IQueryable<Product> GetProducts(int categoryID) { return from p in db.Products where p.CategoryID== categoryID select new Product { Name = p.Na ......