How to Install and Configure tmux
https://github.com/jaclu/tmux-menus
# 方法1:最清楚(推荐)
grep -i -C 3 windows /boot/grub/grub.cfg # 或者 /boot/grub2/grub.cfg(Fedora系)
# 方法2:只看 menuentry 行
grep menuentry /boot/grub/grub.cfg | nl -v 0
# 方法3:快速只看含 Windows 的那几行
grep -i windows /boot/grub/grub.cfg
sudo grub-reboot "Windows Boot Manager (on /dev/nvme0n1p1)" && sudo reboot
https://wiki.debian.org/GrubReboot
https://unix.stackexchange.com/questions/43196
aka@aka-linux:~$ sudo awk -F\'\|\" '/(submenu|menuentry) / { printf "%s\t%s\n", $1, $2}' /boot/grub/grub.cfg
menuentry Kubuntu GNU/Linux
submenu Advanced options for Kubuntu GNU/Linux
menuentry Kubuntu GNU/Linux, with Linux 6.17.0-8-generic
menuentry Kubuntu GNU/Linux, with Linux 6.17.0-8-generic (recovery mode)
menuentry Kubuntu GNU/Linux, with Linux 6.17.0-5-generic
menuentry Kubuntu GNU/Linux, with Linux 6.17.0-5-generic (recovery mode)
menuentry Memory test (memtest86+x64.efi)
menuentry Memory test (memtest86+x64.efi, serial console)
menuentry Memory test (memtest86+ia32.efi)
menuentry Memory test (memtest86+ia32.efi, serial console)
menuentry Memory test (memtest86+x64.bin)
menuentry Memory test (memtest86+x64.bin, serial console)
menuentry Memory test (memtest86+ia32.bin)
menuentry Memory test (memtest86+ia32.bin, serial console)
menuentry Windows Boot Manager (on /dev/nvme1n1p1)
menuentry UEFI Firmware Settings
aka@aka-linux:~$ sudo grub-editenv - list
next_entry=
aka@aka-linux:~$ sudo grub-reboot 2
aka@aka-linux:~$ sudo grub-editenv - list
next_entry=2
aka@aka-linux:~$ sudo reboot
aka@aka-linux:~$ Connection to 192.168.31.59 closed by remote host.
Connection to 192.168.31.59 closed.
lyq@debian:~/bin$ ssh aka@192.168.31.59
ssh: connect to host 192.168.31.59 port 22: No route to host
https://pypi.org/project/kaleido/
import plotly.express as px
fig = px.scatter(px.data.iris(), x="sepal_length", y="sepal_width", color="species")
fig.write_image("figure.png", engine="kaleido")
https://www.powershellgallery.com/packages/PSFzf/2.6.7
如何安装 PowerShellGet 和 PSResourceGet
PS C:\aka\my_git\> Install-Module PowerShellGet -Force -AllowClobber
警告: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'PowerShellGet'. Try Get-PSRepository to see all ava
ilable registered module repositories.
1、webdav 服务器配置:
cert: ./tls_self/my-service.crt
key: ./tls_self/my-service.key
2、joplin PC客户端同步设置:
C:\Users\username\my-service.crt
3、小米15
只需要安装 ca.crt 即可
4、ios 18
windows中,
通过 python -m venv生成的虚拟环境,
在dos窗口中,通过activate.bat激活虚拟环境,
执行虚拟环境scripts目录中的python.exe,
实际执行的却是C:\Users\username\AppData\Local\Programs\Python\中的python
这可能是pytorch的DataLoader,当num_workers大于0时,出错的原因。
Change the location of the standard Python libraries. By default, the libraries are searched in prefix/lib/pythonversion and exec_prefix/lib/pythonversion, where prefix and exec_prefix are installation-dependent directories, both defaulting to /usr/local.
When PYTHONHOME is set to a single directory, its value replaces both prefix and exec_prefix. To specify different values for these, set PYTHONHOME to prefix:exec_prefix.
Augment the default search path for module files. The format is the same as the shell’s PATH: one or more directory pathnames separated by os.pathsep (e.g. colons on Unix or semicolons on Windows). Non-existent directories are silently ignored.
In addition to normal directories, individual PYTHONPATH entries may refer to zipfiles containing pure Python modules (in either source or compiled form). Extension modules cannot be imported from zipfiles.
The default search path is installation dependent, but generally begins with prefix/lib/pythonversion (see PYTHONHOME above). It is always appended to PYTHONPATH.
An additional directory will be inserted in the search path in front of PYTHONPATH as described above under Interface options. The search path can be manipulated from within a Python program as the variable sys.path.