Hacking Archives - Arcadiy Ivanov https://www.ivanov.biz/category/hacking/ Fighting entropy one code line at a time Sun, 19 Jun 2022 20:11:07 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 https://www.ivanov.biz/wp-content/uploads/2023/02/cropped-Arcadiy_2141-scaled-e1677291990351-32x32.jpg Hacking Archives - Arcadiy Ivanov https://www.ivanov.biz/category/hacking/ 32 32 84149164 How to Optimize Intel Graphics Performance on Fedora KDE Linux Laptop https://www.ivanov.biz/2019/howto-optimize-intel-graphics-performance-fedora-kde-linux-laptop/ https://www.ivanov.biz/2019/howto-optimize-intel-graphics-performance-fedora-kde-linux-laptop/#respond Sat, 27 Apr 2019 21:23:52 +0000 https://www.ivanov.biz/?p=579 For several years I’ve struggled with poor Intel integrated graphics performance on my Dell Precision Mobile 7510 (Intel HD 530 primary and Quadro M2000M discrete via Bumblebee) on Fedora Linux. After starting to experience hard full system locks on video playback requiring a hard power off a few times a week, I have dug into … Continue reading "How to Optimize Intel Graphics Performance on Fedora KDE Linux Laptop"

The post How to Optimize Intel Graphics Performance on Fedora KDE Linux Laptop appeared first on Arcadiy Ivanov.

]]>
https://www.ivanov.biz/2019/howto-optimize-intel-graphics-performance-fedora-kde-linux-laptop/feed/ 0 579
PSA: Default Configuration IPMI Vulnerability on Supermicro Boards https://www.ivanov.biz/2018/default-configuration-ipmi-vulnerability/ https://www.ivanov.biz/2018/default-configuration-ipmi-vulnerability/#respond Sat, 16 Jun 2018 08:28:26 +0000 https://www.ivanov.biz/?p=550 I’m using Supermicro boards (X11SBA-F) for virtually all of my servers, including the firewall. These boards come with IPMI enabled. The IPMI default configuration vulnerability I’m going to describe here rears its ugly head in dual-homed machines and machines plugged directly to WAN, putting them specifically in great danger. IPMI is an Intel’s management interface … Continue reading "PSA: Default Configuration IPMI Vulnerability on Supermicro Boards"

The post PSA: Default Configuration IPMI Vulnerability on Supermicro Boards appeared first on Arcadiy Ivanov.

]]>
https://www.ivanov.biz/2018/default-configuration-ipmi-vulnerability/feed/ 0 550
PSA: X11SBA-F rev 1.01 secondary LAN port timeouts https://www.ivanov.biz/2016/psa-x11sba-f-rev-1-01-secondary-lan-port-timeouts/ https://www.ivanov.biz/2016/psa-x11sba-f-rev-1-01-secondary-lan-port-timeouts/#respond Fri, 16 Dec 2016 02:06:24 +0000 https://www.ivanov.biz/?p=527 Hopefully this post will save someone time, money and aggravation. If you’re considering buying Supermicro X11SBA-F/LN4F you need to be aware that at the very least some boards (and possibly all) with a hardware revision 1.01 have serious and seemingly non-correctable issues with a secondary PCI-E bridge that feeds secondary LANs. DO NOT BUY X11SBA rev … Continue reading "PSA: X11SBA-F rev 1.01 secondary LAN port timeouts"

The post PSA: X11SBA-F rev 1.01 secondary LAN port timeouts appeared first on Arcadiy Ivanov.

]]>
https://www.ivanov.biz/2016/psa-x11sba-f-rev-1-01-secondary-lan-port-timeouts/feed/ 0 527
How to spy on Mock-wrapped method calls in Python https://www.ivanov.biz/2016/howto-spy-with-python-mock/ https://www.ivanov.biz/2016/howto-spy-with-python-mock/#respond Fri, 01 Apr 2016 22:40:13 +0000 https://www.ivanov.biz/?p=431 You have a class whose API you want to verify: class Class_A(object): def method_X(self): self.method_Y() def method_Y(self): pass You write the following test fully expecting it to pass. Alas, the method_Y assertion fails. def test_class_a(self): obj = Class_A() mock = MagicMock(spec_set=obj, wraps=obj) mock.method_X() mock.method_Y.assert_called_once_with() This is because the Python Unittest Mock, while wrapping mock.method_X(), Mock … Continue reading "How to spy on Mock-wrapped method calls in Python"

The post How to spy on Mock-wrapped method calls in Python appeared first on Arcadiy Ivanov.

]]>
https://www.ivanov.biz/2016/howto-spy-with-python-mock/feed/ 0 431
Dell Seagate SSHD Firmware Update on Linux https://www.ivanov.biz/2014/dell-seagate-firmware-update-linux/ https://www.ivanov.biz/2014/dell-seagate-firmware-update-linux/#respond Wed, 30 Jul 2014 06:26:44 +0000 https://www.ivanov.biz/?p=263 I am a happy owner of a Dell Precision M4800. Just kidding – The biggest problem was in that I kept losing my Seagate ST1000LM014 SSHD at runtime. All of a sudden my /dev/sda1 partition would vanish without a trace and would stay vanished until the full power-off, battery & power removal, capacitor discharge and … Continue reading "Dell Seagate SSHD Firmware Update on Linux"

The post Dell Seagate SSHD Firmware Update on Linux appeared first on Arcadiy Ivanov.

]]>
https://www.ivanov.biz/2014/dell-seagate-firmware-update-linux/feed/ 0 263