博文

终端乱码问题解决方法

文件系统中的中文文件名确实是以 GBK 编码存储的,而您的终端使用的是 UTF-8 编码。现在,所有文件名都已成功转换为 UTF-8,并且可以被您的终端正确识别和显示。  [root@ali-ecs PlayWithDataStructureSourceCode]# ls ''$'\265\332''3'$'\325\302\317\337\320''Ա'$'\355'          ''$'\265\332''6'$'\325\302\312\367'        ''$'\265\332''9'$'\325\302\305\305\320\362' ''$'\265\332''4'$'\325\302''ջ'$'\323\353\266\323\301\320'  ''$'\265\332''7'$'\325\302''ͼ'              README.md ''$'\265\332''5'$'\325''´'$'\256'                          ''$'\265\332''8'$'\325''²'$'\351\325\322' [root@ali-ecs PlayWithDataStructureSourceCode]# convmv -f GBK -t UTF-8 -r ./* Starting a dry run without changes... mv "./��3�����Ա�/02���Ա���ʽ�洢_LinkList.c"      "./��3�����Ա�/02线性表链式存储_LinkL...

Process vs. Thread

图片
  A process is an executing instance of a program with its own memory and resources, while  a thread is the smallest unit of execution within a process that can run concurrently with other threads in the same process .  Processes are isolated with separate address spaces and require system-provided inter-process communication to share data, whereas threads share the process's memory and resources, allowing for faster communication and context switching.   Process vs. Thread Process: An independent program in execution.  Has its own separate memory address space.  Carries more state information and resources (like open files and system handles).  Data sharing requires Inter-Process Communication (IPC) mechanisms.  Considered a "heavyweight" unit of execution due to resource overhead for creation and context switching.  Thread: A subset of a process , executing within the process's context.  Shares the process's address space, memory, and ...

Block Storage

The first block storage device is connected to your server as /dev/vdb . Additional devices will be relabeled ( /dev/vdc , /dev/vdd , and so forth). By default, we do not create any filesystems on block storage volumes. Linux Quickstart Example If you are mounting an existing volume with data, do not create partitions or filesystems. All data will be lost. Vultr does not back up Block Storage. Make sure you have a backup before making any changes to block storage volumes. Create new empty partitions: # parted -s /dev/vdb mklabel gpt # parted -s /dev/vdb unit mib mkpart primary 0% 100% Create new empty filesystem: # mkfs.ext4 /dev/vdb1 Mount the volume after it has been prepared. Mount block storage: # mkdir /mnt/blockstorage # echo >> /etc/fstab # echo /dev/vdb1 /mnt/blockstorage ext4 defaults,noatime,nofail 0 0 >> /etc/fstab # mount /mnt/blockstorage mount: (hint) your fstab has been modified, but systemd still uses the old v...

HTTP代理

图片
/etc/squid/squid.conf 部分:  acl manager proto cache_object acl localhost src 127.0.0.1/32 acl vben      src 163.125.0.0/16 27.38.0.0/16 acl localhost src ::1/128 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 # Example rule allowing access from your local networks. # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed http_access allow localnet http_access allow localhost http_access allow vben # And finally deny all other access to this proxy http_access deny all 日志: 1724483646.153      0 163.125.189.239 NONE_NONE/000 0 - error:transaction-end-before-headers - HIER_NONE/- - 1724483651.077  23670 163.125.189.239 TCP_TUNNEL/200 18382 CONNECT hm.baidu.com:443 - HIER_DIRECT/111.45.11.83 - 1724483656.480     10 163.125.189.239 NONE_NONE/200 0 CONNECT www.youtube.com:443 - HIER_DIRECT/172.217.14.78 - 1724483674.530     11 163.125.189.239 NONE_NONE/200 0 CONNECT www.goog...

GPU

 NVIDIA A100 Delivering unprecedented acceleration and powering the world's highest-performing AI, data analytics, and HPC workloads. 提供前所未有的加速并为世界上性能最高的 AI、数据分析和 HPC 工作负载提供支持。  NVIDIA A40 Combining professional graphics with powerful compute and AI, to meet today’s design, creative, and scientific challenges.   将专业图形与强大的计算和人工智能相结合,以应对当今的设计、创意和科学挑战。 NVIDIA A16 Enabling virtual desktops and workstations with the power and performance to tackle any project from anywhere.  使虚拟桌面和工作站具有强大的功能和性能,可以随时随地处理任何项目。           

Lustre

图片
 1. What a Lustre File System Is The Lustre architecture is a storage architecture for clusters. The central component of the Lustre architecture is the Lustre file system, which is supported on the Linux operating system and provides a POSIX * standard-compliant UNIX file system interface. The Lustre storage architecture is used for many different kinds of clusters. It is best known for powering many of the largest high-performance computing (HPC) clusters worldwide, with tens of thousands of client systems, petabytes (PiB) of storage and hundreds of gigabytes per second (GB/sec) of I/O throughput. Many HPC site use a Lustre file system as a site-wide global file system, serving dozens of clusters. While a Lustre file system can function in many work environments, it is not necessarily the best choice for all applications. It is best suited for uses that exceed the capacity that a single server can provide , though in some use cases, a Lustre file system can perform better with a ...

Socks代理

SOCKS performs at Layer 5 of the OSI model ( the session layer , an intermediate layer between the presentation layer and the transport layer). SOCKS server accepts incoming client connection on TCP port 1080 . 本地开启的是SOCKS5 Server,启用系统代理后,浏览器使用系统HTTP代理连接上SOCKS5 Server。 SOCKS5 Server支持的不止HTTP代理。 Comparison to HTTP proxying SOCKS operates at a lower level than HTTP proxying : SOCKS uses a handshake protocol to inform the proxy software about the connection that the client is trying to make, and then acts as transparently as possible, whereas a regular proxy may interpret and rewrite headers (say, to employ another underlying protocol, such as FTP; however, an HTTP proxy simply forwards an HTTP request to the desired HTTP server). Though HTTP proxying has a different usage model in mind, the CONNECT method allows for forwarding TCP connections; however, SOCKS proxies can also forward UDP traffic and work in reverse, while HTTP proxies cannot. HTTP proxies are traditionally more aware of ...