This is a set of notes on miscellaneous computing-related items, ranging from hardware setup to software tools.
They are mainly for my own reference and hopefully it will also be useful to others in need.
8 DIMM slots filled per socket requirements
For CentOS 7 without upgrade to 7.9, the original kernel is too old to support the getrandom()
(see the closed issue for boost::uuids
here).
To resolve the issue, we need to upgrade the kernel via yum and reboot the machine to load the new kernel.
Linux/isos
./etc/yum.repos.d/CentOS-Base.repo
http://mirror.centos.org/centos/$releasever
to http://vault.centos.org/7.9.2009/
.yum -y update
mywebservice.xml
under /etc/firewalld/services
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>MyWebService</short>
<port protocol="tcp" port="11010-11020"/>
<port protocol="tcp" port="443"/>
</service>
firewall-cmd --reload
firewall-cmd --list-all
firewall-cmd --add-service mywebservice --zone=<targetZone> --permanent
firewall-cmd --reload
Assume
sudo iptables -A FORWARD -i ens3f0np0 -j ACCEPT
sudo iptables -A FORWARD -o ens3f0np0 -j ACCEPT
sudo iptables -t nat -A POSTROUTING -o eno12399 -j MASQUERADE
Netplan not working and complaining about a missing module netifaces
(because of python version mismatch): Set the perferred python version
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
Update the network interface name using Netplan
sudo lshw -C network
match:
macaddress: <serial>
set-name: <new-interface-name>
Check for video length using ffmpeg tools
ffprobe -i <video_file_path> -show_entries format=duration -v quiet -of csv="p=0"
For statistics collection using the node metrics input plugin,
--network=host
blockdev --getbsz <dev>
and multiple the metric node_disk_read_bytes_total
/node_disk_write_bytes_total
to get the exact disk traffic volumes
The example script from https://www.geeksforgeeks.org/draw-ggplot2-legend-without-plot-in-r/
# Load Packages
library("ggplot2")
library("grid")
library("gridExtra")
library("cowplot")
# Create a DataFrame
data <- data.frame(
Xdata = rnorm(10), Ydata = rnorm(10),
LegendData = c("ld-01", "ld-02", "ld-03",
"ld-04", "ld-05", "ld-06",
"ld-07", "ld-08", "ld-09",
"ld-10"))
# Create a Scatter Plot
gplot <- ggplot(data, aes(Xdata, Ydata, color = LegendData)) +
geom_point(size = 7)
# Draw Only Legend without plot
# Grab legend from gplot
legend <- get_legend(gplot)
# Create new plot window
grid.newpage()
# Draw Only legend
grid.draw(legend)
Code snipplet by Microsoft Copilot
# Create an empty plot
plot(0, type = "n", xlim = c(0, 1), ylim = c(0, 1), xlab = "", ylab = "")
# Add a legend
legend(x = "topright", legend = c("J0", "J2"), lty = c(1, 2), col = c(2, 3), lwd = 2)
pdftk <input PDF path> cat 1-endsouth output <output PDF path>
pdfunite <input PDF path> ... <output PDF path>
sudo apt-get install -y ca-certificates
sudo cp local-ca.crt /usr/local/share/ca-certificates
sudo update-ca-certificates
In /etc/hosts
, add an entry <target ip> nedge-proxy
.
.m2/settings.xml
) (official guide)<settings>
<proxies>
<proxy>
<id>example-proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.example.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
</proxy>
</proxies>
</settings>
/etc/libvirt/network.conf
firewall_backend = “iptables”
sudo service libvirtd restart
Reference solution: https://gitlab.com/libvirt/libvirt/-/issues/645
To 'unlock' (i.e., enable resolution adjustment), install the guest tools (drivers) for virtio.
stable-virtio
): https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/