This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Funcție pentru a afișa utilizarea și a ieși | |
show_help() { | |
echo "Utilizare: $0 [-i <interfață>] [-t <secunde>]" | |
echo " -i <interfață> : Specifică interfața de rețea de monitorizat (ex: eth0, enp0s3)." | |
echo " Dacă nu este specificată, se va detecta interfața implicită." | |
echo " -t <secunde> : Intervalul de timp în secunde pentru calculul mediei și refresh (implicit: 1)." | |
echo " Va afișa media ultimelor <secunde> și se va actualiza la fiecare <secunde>." | |
echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
these are scratch notes, not a working solution. | |
but please report success if you understand the core idea and it works for you. | |
the idea I'm thinking is to apfs mount two volumes, we need apfs xattrs, that's why symlinks don't work. | |
% cd Library/CloudStorage | |
one volume should be mounted at CloudStorage because it has no xattrs. | |
not cloud provider name, as it needs xattrs which are apfs specific. | |
so you have all clouds in one place, cannot have selectivity. except iCloud which goes into it's own separate world. | |
% xattr OneDrive-Personal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,[email protected] | |
Unable to negotiate with 192.168.1.1 port 22: no matching host key type found. Their offer: ssh-rsa | |
ssh -o KexAlgorithms=diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa user@host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://archive.ph/cBcTD | |
https://web.archive.org/web/20240531085449/https://github.com/raivo-otp/ios-application/issues/328 | |
https://web.archive.org/web/20240209114245/https://github.com/raivo-otp/marketing-website/issues/19 | |
https://archive.ph/fGnO3#selection-8895.0-8895.99 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://bombich.com/kb/ccc6/some-files-and-folders-are-automatically-excluded-from-backup-task | |
Skip to main content | |
Home | |
FEATURES | |
DOWNLOAD | |
BLOG | |
HELP | |
Knowledge Base (ccc6)Some files and folders are automatically excluded from a backup task |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://matt.sh/apfs-object-map-free-recovery | |
APFS Object Map Recovery (free) | |
APFS Object Map Recovery | |
I spent a day figuring out how to look into a corrupt encrypted APFS partition. Here’s the notes. | |
If you only care about the answer, jump to the last section. | |
Kernel Panic | |
macOS hard panicked on me with a graphics driver corruption error com.apple.iokit.IOAcceleratorFamily2 (which happened after seven “gpuRestart” logs were generated back-to-back). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# thanks microsoft copilot. worked from first try. prompt: | |
# can you write a small script in a language of your choice that takes input as defined by the name of the input file, searches for patterns that resemble an ethernet mac address including those that omit the zero, such as like when netstat on macos does, then replace the last three octets of the mac address with xx:xx:xx | |
# it wrote python but python requires xcode so I asked for a rewrite in bash | |
filename="$1" | |
# MAC address pattern (with optional leading zeros) | |
pattern="([0-9A-Fa-f]{1,2}[:-]){5}([0-9A-Fa-f]{1,2})" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copied from https://git.scc.kit.edu/-/snippets/563, found on search for "device mapper volatile writeable readonly" | |
#!/bin/bash | |
set -e | |
# test if $1 exists | |
test -f "$1" | |
BASEDIR=$(dirname "$1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27332 pts/0 S+ 0:00 | \_ sudo -E dnf --enablerepo=ol8_UEKR6 install kernel-uek-5.4.17-2136.320.7.1.el8uek.x86_64 kernel-uek-devel-5.4.17-2136.320.7.1.el8uek.x86_64 | |
27334 pts/0 S+ 1:40 | \_ /usr/libexec/platform-python /bin/dnf --enablerepo=ol8_UEKR6 install kernel-uek-5.4.17-2136.320.7.1.el8uek.x86_64 kernel-uek-devel-5.4.17-2136.320.7.1.el8uek.x86_64 | |
48159 pts/0 S+ 0:00 | \_ /bin/sh /var/tmp/rpm-tmp.UD5iFV 2 | |
56855 pts/0 S+ 0:00 | \_ /bin/bash /bin/kernel-install add 5.4.17-2136.320.7.1.el8uek.x86_64 /lib/modules/5.4.17-2136.320.7.1.el8uek.x86_64/vmlinuz | |
56897 pts/0 S+ 0:00 | \_ /bin/sh /usr/lib/kernel/install.d/40-dkms.install add 5.4.17-2136.320.7.1.el8uek.x86_64 /boot/b26894ddea4a49caaac4c71d4e27f057/5.4.17-2136.320.7.1.el8uek.x86_64 /lib/modules/5.4.17-2136.320.7.1.el8uek.x86_64/vmlinuz | |
56898 pts/0 S+ 0:00 | \_ /bin/sh /usr/lib/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudoedit /etc/tmpfiles.d/libvirt-container.conf | |
d /run/libvirt-fedora 0755 ml35 ml35 - | |
sudo systemd-tmpfiles --create /etc/tmpfiles.d/libvirt-container.conf | |
sudo gpasswd -a ml35 kvm | |
sudo setsebool -P container_use_devices=true | |
sudo setsebool -P container_manage_cgroup true | |
$ grep source /var/local/macos-mojave-10.14.xml | |
<resource> | |
</resource> | |
<source dev='/dev/zvol/gen8/vm/mojave-din-vmware'/> |
NewerOlder