共有 261 篇文章
📅 最近更新
2023-05-04
- 2024-09-18
1.卸载磁盘 umount -l /data 若提示磁盘忙,使用fuser找出将正在使用磁盘的程序并结束掉。 fuser -m -v /data fuser -m -v -i -k /data 2.磁盘分区 使用fdisk命令重新调整磁盘分区大小 fdisk -l fdisk /dev/sdb p
2023-05-04
- 2024-09-18
一般来说可以按照如下规则设置swap大小: 4G以内的物理内存,SWAP 设置为内存的2倍。 4-8G的物理内存,SWAP 等于内存大小。 8-64G 的物理内存,SWAP 设置为8
2023-03-28
- 2024-09-18
单击 “开始”,指向 “运行”,键入 regedit,然后单击 “确定”。 在注册表编辑器中,找到以下注册表子项: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 右键单击要删除的映射驱动器。 例如,右键单击 ##Serv
2023-03-22
- 2024-09-18
通过命令行控制软件的声音 安装 sudo apt install playerctl 使用 控制当前 playerctl play playerctl pause playerctl play-pause # toggle playerctl stop playerctl next playerctl previous playerctl volume 控制指定软件 获取软件列表 playerctl status -l 控制指定软件,如网易云音乐 playerctl –player=netease-cloud-music play-pause
2023-03-08
- 2024-09-18
系统挂载的一些限制 根目录/是必须挂载的,而且一定要先于其他mount point被挂载进来。 其他挂载点必须为已新建的目录,可任意指定,但一定要遵守必需的系统目录架
2023-02-27
- 2024-09-15
Unreal mode consists of breaking the 64KiB limit of real mode segments (while retaining 16-bit instructions and the segment * 16 + offset addressing mode) by tweaking the descriptor caches.
2023-02-27
- 2024-09-18
https://www.mediawiki.org/wiki/MediaWiki_and_LaTeX_on_a_host_with_shell_access 安装TexLive,使用 which latex 和 which dvipng 检查是否安装 按照注释中操作 <?php # Place this file in extension directory as Mtag.php # Add the following line to LocalSettings.php: # include './extensions/Mtag.php'; # Mediawiki will render as LaTeX the code within <m> </m> tags. $wgExtensionFunctions[] = "wfMtag"; function wfMtag() { global $wgParser; $wgParser->setHook( "m", "returnMtagged" ); } function returnMtagged( $code, $argv)
2023-02-27
- 2024-09-15
The CPU in modern computer hardware performs reads and writes to memory most efficiently when the data is naturally aligned, which generally means that the data’s memory address is a multiple of the data size. For instance, in a 32-bit architecture, the data may be aligned if the data is stored in four consecutive bytes and the first byte lies on a 4-byte boundary.
If the highest and lowest bytes in a datum are not within the same memory word the computer must split the datum access into multiple memory accesses.
2023-02-27
- 2024-09-18
IMG file Make dd if=/dev/zero of=fdimage.img count=2880 # or dd if=/dev/zero of=fdimage.img bs=1024 count=1440 Format mkfs.msdos fdimage.img Mount mount -o loop *.img /mnt Bootable 因为制作可启动镜像一定会用到虚拟机,推荐用 Virtualbox,先到网上下个 DOS 启动盘来引导。用 DOS 的 sys 命令传递系统
2023-02-27
- 2024-09-18
文件所在路径 vim /usr/lib/systemd/system/SERVICE_NAME.service 服务模板 [Unit] Description=Viry Service After=network.target auditd.service [Service] User=root Type=oneshot RemainAfterExit=true ExecStart=/viry/serv/serv.sh ExecStop=/bin/true [Install] WantedBy=multi-user.target Alias=viry.service serv.sh #!/bin/bash echo "Sync Time" ntpdate 172.16.1.1 hwclock -w TIME=$(TZ=UTC-8 date "+%Y-%m-%d %H:%M:%S") LOG="/viry/serv/serv.log" echo "Ready" echo "" >> $LOG echo $TIME >> $LOG echo "Start DEMO" echo "Start DEMO" >> $LOG sh /viry/serv/demo/demo.sh echo "Finished" echo "Finished" >> $LOG demo.sh #!/bin/bash cd /viry/serv/demo/exec/ screen_name="demo" screen -s /usr/bin/bash -dmS $screen_name cmd1="" cmd2="./demo" screen -x
2023-02-25
- 2024-09-18
<div class="wheelPlayer wheelAnimate"> <div>1</div> <div>2</div> <div>3</div> </div> .wheelPlayer{ padding: 20px 0; margin: auto; width: 350px; } .wheelPlayer div{ position: relative; height: 25px; line-height: 26px; width: 70px; text-align: center; border: 1px solid gray; } .wheelAnimate div{ animation: whellPlayer 9s infinite; -moz-animation: whellPlayer 9s infinite; -webkit-animation: whellPlayer 9s infinite; } .wheelPlayer div:nth-of-type(1){ animation-delay: -6s; -moz-animation-delay: -6s; -webkit-animation-delay: -6s; } .wheelPlayer div:nth-of-type(2){ animation-delay: -3s; -moz-animation-delay: -3s; -webkit-animation-delay: -3s; margin-top: -27px; } .wheelPlayer div:nth-of-type(3){ animation-delay: -0s; -moz-animation-delay: 0s; -webkit-animation-delay: 0s; margin-top: -27px; }