Monitor all http traffic in wireshark on specific ports
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)
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 --continuesocat UNIX-LISTEN:/var/run/hapee-lb.sock,mode=666,fork TCP-CONNECT:127.0.0.1:1936
Will create /var/run/hapee-lb.sock file which forwards all input to 127.0.0.1:1936. fork parameter
will allow it to handle connection close and accept more than 1 request
Very useful command to cherry pick the whole branch
git cherry-pick 751a77^..8b62f1
^ - means the the first commit will be included too
If your repository has an installed pre-commit hook which uses husky or anything similar and you use Github Desktop for linux installed via flatpak it won’t work. The reason for this is that flatpak environment doesn’t have all necessary dependencies (npx, husky and etc.). There is a way to mount parts of your host file system to the flatpak environment (with --filesystem flag), but it excludes all sensitive folders (including /usr/bin/). A possible solution would be to mount the content of /usr/bin/ to a custom folder in flatpak environment and override PATH environmental variable. But the quick fix for now is to just disable it:
flatpak override --user --env=HUSKY=0 io.github.shiftey.Desktop
There is no official guide to migrate from Rocky Linux to CentOS Stream, however, it can be achieved by using official CentOS to CentOS Stream migration guide
dnf install https://vault.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-stream-8.1-1.1911.0.7.el8.x86_64.rpm
dnf swap centos-{linux,stream}-repos -y command. However, this command will cause multiple conflicts in Rocky Linux. To solve them:/etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial file from any Centos Stream system into Rocky Linuxrpm -e --nodeps rocky-repos
rpm -e --nodeps rocky-release
dnf swap centos-{linux,stream}-repos -y
dnf distro-sync -y
cat /etc/centos-release
reboot
sudo firewall-cmd --add-rich-rule="rule family='ipv4' source address='89.20.160.77' reject" --timeout=1h
Valid values for timeout - numbers followed by s, m or h
Install sysstat package:
sudo dnf install sysstat -y
Install ttyplot to plot data and kazy to extract data with grm
grm install jsnjack/kazy-go
grm install tenox7/ttyplot==1.6.1 -n ttyplot -l
Check available disk partitions with df command. nvme0n1 is used in example:
iostat -dx 1 | kazy -i nvme0n1 | kazy -r -x "[\d.]*$" | ttyplot -s 100
flatpak uninstall --unused
Maintenance commands for flatpak:
flatpak update && flatpak uninstall --unused