sumologic: filter fields
(sourceCategory=prod/* ss-haproxy)
| parse "{|||}" as host,forwarded, referer, ua
| where forwarded matches ","
(sourceCategory=prod/* ss-haproxy)
| parse "{|||}" as host,forwarded, referer, ua
| where forwarded matches ","
dnf update -y
reboot
dnf module disable python36 virt
dnf install https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/centos-stream-release-9.0-22.el9.noarch.rpm https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-9.0-22.el9.noarch.rpm https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-9.0-22.el9.noarch.rpm
dnf --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync -y
rpm --rebuilddb
Disable subscription manager. Open file /etc/yum/pluginconf.d/subscription-manager.conf and set enabled to 0
Reboot and verify
cat /etc/redhat-release
uname -a
# List all boot options
grubby --info=ALL
# Reflect the desired kernel in configuration
grubby --set-default vmlinuz-<version>.<arch>
# Make sure the index is also set in `/etc/default/grub` file
# Regenerate boot configuration
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
# Remove old kernels...
The instructions are inspired by CentOS 8 to CentOS Stream 8 migration guide and Fedora upgrade procedure
sudo dnf copr enable meeuw/droidcam
sudo dnf install droidcam
If droidcam doesn’t start with the following error:
$ droidcam
Fatal: droidcam video device reported pixel format 34524742 (BGR4), expected 32315559 (YU12/I420)
Try 'v4l2loopback-ctl set-caps "video/x-raw, format=I420, width=640, height=480" /dev/video<N>'
Run this command:
v4l2loopback-ctl set-caps /dev/video "YU12:640x480"
This script demonstrates how to disable system inactivity timeout in Gnome when running Rygel and restore it to the original value after exiting:
#!/bin/bash
# Save current inactivity timeout
TIMEOUT=$(gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout)
echo "Current timeout: $TIMEOUT"
# Execute commands on Ctrl + C
function ctrl_c() {
echo "Exiting rygel..."
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout $TIMEOUT
echo "Inactivity timeout restored to $TIMEOUT. Bye!"
sleep 2
}
# Set the trap for Ctrl+C
trap ctrl_c INT
# Disable the inactivity timeout
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
# Briefly start rygel to allow it to add new files
timeout 2s rygel
# Run command to fix filenames
rygel-titlefix
# Actually run rygel
rygel
Example with watch command:
watch -n 1 'ps aux | kazy -i cmproxy -e kazy | kazy -r "[\d]+" -x | xargs -I % ls -l /proc/%/fd/ | kazy -i socket | wc -l'
Example with ttyplot command:
{ while true; do ps aux | kazy -i cmproxy -e kazy | kazy -r "[\d]+" -x | xargs -I % ls -l /proc/%/fd/ | kazy -i socket | wc -l; sleep 1; done } | ttyplot
{ while true; do dig google.com | kazy -i "Query time" | kazy -r -x "[\d.]*"; sleep 1; done } | ttyplot -t "dig to google.com"
Install ttyplot:
grm install tenox7/ttyplot -n ttyplot
Ping plot:
ping 8.8.8.8 | sed -u 's/^.*time=//g; s/ ms//g' | ttyplot -t "ping to 8.8.8.8" -u ms
Open wireshark GUI as root user:
sudo wireshark
Start capturing by clicking Capture button and add the following display filter:
http and (tcp.port == 8082 or tcp.port == 8000)
Case 1: it is done in a separate commit:
git rebase -i <base_branch>pick with d)Case 2: it is done in the commit which contains other changes
git rebase -i <base_branch>pick with e)git restore --staged <path_to_submodule>git rebase --continueTyre width: 23mm up to 40mm (max 50mm).
Max tyre pressure is 8.25 bar (120 psi). Recommended tyre pressure: