devops
Copy a Visio drawing
Copy a Visio drawing to Word, PowerPoint, or Excel [https://support.microsoft.com/en-us/office/copy-a-visio-drawing-to-word-powerpoint-or-excel-e301fef0-27cf-4540-9f91-901a824074ee]
In Visio, open the file you want to appear in the Word document.
Make sure nothing is selected, and then, on the Home tab, select
Copyor pressCtrl+Cpaste
In Word, select where you want the Visio drawing to appear and then select
Pasteor pressCtrl+VIn PowerPoint or Excel, On the Home tab, select
Paste > Paste Special, and then selectMicrosoft Visio Drawing Object
LSF (Platform Load Sharing Facility)
bjobs: Displaying Job Status
bkill: cancels pending batch jobs and sends signals to
running jobs
bhosts: displays hosts and their static and dynamic
resources
busers: displays information about the user who runs the
command
Module System
module avail: Lists the modules currently available to
load on the system
module list: Lists the modules currently loaded in the
user environment.
module load|add: This loads the
requested module into the active environment
module purge: To clear all modules
module rm|unload: To unload a
module
module switch|swap: To change the version of a loaded
software module
unlock "secured" (read-protected) PDF
1 | # Source - https://stackoverflow.com/a/63422342 |
MATLAB Win10 Unable to open the requested feature. Error code: -202
clear AppData\Roaming\MathWorks\MATLAB
miniconda3/envs/myenv/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found
This is because you have some old versions not cleaned up while upgrading gcc.
First of all, make sure that you have the latest lib with
conda install -c conda-forge libstdcxx-ng
OBS 无声录制带有声音的视频
录制视频时,想要 obs 能录制声音,但是不想人耳听到。
pactl load-module module-virtual-sink sink_name=VAC
unfortunately, Virtual audio sinks & settings gone after reboot


obs 无声录制带有声音的视频 [https://www.cnblogs.com/wztshine/p/17764073.html]
Virtual Audio Cable For Ubuntu [https://askubuntu.com/a/1268269/845522]
能不能设置个定时器,让录像自动停? [https://www.reddit.com/r/obs/comments/j5j1qa/comment/g7sk588/]
wget fetch a directory
1 | $ wget -r -np -R "index.html*" http://example.com/configs/.vim/ |
Using wget to recursively fetch a directory with arbitrary files in it [https://stackoverflow.com/a/273776/8037585]
mount/umount ISO
1 | $ sudo mount -t auto -o loop /path/to/matlab.iso /mnt/matlab |
Google search tips


Restart Xfce panel
1 | xfce4-panel -r |
Rocky Linux 8 rpm for cadence binary and cdnshelp
qt5 and openssl
1 | sudo yum install openssl compat-openssl10 qca-qt5-ossl.x86_64 openssl-devel |
library preparation for EDA installation
1 | libc6, gdb |
Rocky Linux 8 extend LVM in VMware
1 | 1) gparted extend |
compile vim from source with GUI support
1 | # gtk3 in Rocky Linux 8.5 |
binkey
Inserting a new line below: o
above: O
To insert before the cursor: i
After: a
Before the line (home): I
Append at the end of line: A
network connection using nmcli
Problem
There is no network connection and device is not managed
1 | $ nmcli device status |

solution
1 | sudo nmcli networking on |
Then, eth0 is connected
1 | $ nmcli device status |

What is the proper method to remove old kernels from a Red Hat Enterprise Linux system?
Red Hat Enterprise Linux 8
The YUM version 4 (based on the upstream DNF project)
method for removing kernels and keeping only the latest version and
running kernel:
1 | $ yum remove --oldinstallonly |
From the yum man page:
1 | dnf [options] remove --oldinstallonly |
New windows and forms appear behind the Library Manager in background when using GNOME 3
Using Red Hat Enterprise Linux 8, Rocky Linux 8 and the GNOME 3 window manager, the new Virtuoso Schematic/Layout/ADE windows and forms sometimes pop up under or below the Library Manager or on the desktop in the background instead of the foreground and cannot be seen. Sometimes, they are iconized; they do not come on the top in front, though it is the most recent window opened.
solution
Install Focus my window GNOME Shell extension

reference
Article (11612426) Title: New windows and forms appear behind the Library Manager in background or iconized instead of foreground on RHEL and SuSE Linux in GNOME, KDE Desktop, Metacity window manager
VMware Disk Shrink
In Guest OS and run
1 | sudo vmware-toolbox-cmd disk shrink / |
https://superuser.com/q/211798
GitHub Pages Build and deployment
The repository visibility shall be public

squash all git commits into one?
https://stackoverflow.com/a/9254257/8037585
As of git
1.6.2, you can use git rebase --root -i
For each commit except the first, change pick to
squash.
this works find, but I had to do a forced push. be careful!
git push -f
Build VMware host modules
1 | git clone git@github.com:mkubecek/vmware-host-modules.git |
AWT-EventQueue-0 Matlab
1 | Renaming libstdc++.so.6 to libstdc++.so.6old solved it for me in MATLAB 2021B UBUNTU 20.04. Thanks! |
[https://www.mathworks.com/matlabcentral/answers/329796-issue-with-libstdc-so-6#comment_2316900]