Skip to content

Instantly share code, notes, and snippets.

View GermanAizek's full-sized avatar
:shipit:
Red-eyed byte4cker

Herman Semenoff GermanAizek

:shipit:
Red-eyed byte4cker
View GitHub Profile
@GermanAizek
GermanAizek / README.md
Last active October 25, 2024 22:04
(Remember to) Update your Intel Arc Firmware on Linux!

Intel does NOT update the GPU firmware on Linux and asks you to install Windows. Workaround below.

If you are like me, you might have an Intel Arc A380 or something similar that is used for a host GPU on Linux. However there’s one caveat that Intel does not explicitly tell you - They do not update the firmware on the GPU whatsoever on Linux. Not even their official Ubuntu package will update the firmware.

They have a help article about that here: https://www.intel.com/content/www/us/en/support/articles/000096950/graphics.html which is something you need to dig deep to find. Intel kindly asks you to install Windows to update critical firmware on the device which in all honesty should have been done through fwupd like most other firmware. In fact, the A380 and others do “support” fwupd, but they don’t have updates posted there which ruins the entire point.

I bought the ASRock Challenger A380 at launch and while I haven’t had any problems using it day-to-day, the fans on it acted weirdly so I checked the firm

@GermanAizek
GermanAizek / dns_get_record_from.php
Created August 19, 2024 21:21 — forked from bohwaz/dns_get_record_from.php
PHP script to retrieve a DNS record from a custom nameserver
<?php
/**
* Make a DNS a request to a custom nameserver, this is similar to dns_get_record, but allows you to query any nameserver
* Usage: dns_get_record_from('ns.server.tld', 'A', 'mydomain.tld');
* => ['42.42.42.42']
* @author bohwaz
*/
function dns_get_record_from(string $server, string $type, string $record): array
{
This file has been truncated, but you can view the full file.
======================
Proton: 1721412568 experimental-9.0-20240719
SteamGameId: 2051620
Command: ['/home/debian/.steam/debian-installation/steamapps/common/Enlisted/enlisted_eac_launcher.exe', '-eac_dir', 'EasyAntiCheat/enlisted', '-config:circuit:t=jupiter', '-game:enlisted', '-circuit:jupiter', '-skip_pkg_validation']
Options: {'forcelgadd'}
depot: 0.20240618.92328
pressure-vessel: 0.20240610.0 scout
scripts: 0.20240610.0
sniper: 0.20240618.92328 sniper 0.20240618.92328
Kernel: Linux 6.9.10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.10-1 (2024-07-19) x86_64
This file has been truncated, but you can view the full file.
======================
Proton: 1721412568 experimental-9.0-20240719
SteamGameId: 2051620
Command: ['/home/debian/.steam/debian-installation/steamapps/common/Enlisted/enlisted_eac_launcher.exe', '-eac_dir', 'EasyAntiCheat/enlisted', '-config:circuit:t=jupiter', '-game:enlisted', '-circuit:jupiter', '-skip_pkg_validation']
Options: {'forcelgadd'}
depot: 0.20240618.92328
pressure-vessel: 0.20240610.0 scout
scripts: 0.20240610.0
sniper: 0.20240618.92328 sniper 0.20240618.92328
Kernel: Linux 6.9.10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.10-1 (2024-07-19) x86_64
This file has been truncated, but you can view the full file.
======================
Proton: 1721412568 experimental-9.0-20240719
SteamGameId: 2051620
Command: ['/home/debian/.steam/debian-installation/steamapps/common/Enlisted/enlisted_eac_launcher.exe', '-eac_dir', 'EasyAntiCheat/enlisted', '-config:circuit:t=jupiter', '-game:enlisted', '-circuit:jupiter', '-skip_pkg_validation']
Options: {'forcelgadd'}
depot: 0.20240618.92328
pressure-vessel: 0.20240610.0 scout
scripts: 0.20240610.0
sniper: 0.20240618.92328 sniper 0.20240618.92328
Kernel: Linux 6.9.10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.10-1 (2024-07-19) x86_64
This file has been truncated, but you can view the full file.
======================
Proton: 1721412568 experimental-9.0-20240719
SteamGameId: 2051620
Command: ['/home/debian/.steam/debian-installation/steamapps/common/Enlisted/enlisted_eac_launcher.exe', '-eac_dir', 'EasyAntiCheat/enlisted', '-config:circuit:t=jupiter', '-game:enlisted', '-circuit:jupiter', '-skip_pkg_validation']
Options: {'forcelgadd'}
depot: 0.20240618.92328
pressure-vessel: 0.20240610.0 scout
scripts: 0.20240610.0
sniper: 0.20240618.92328 sniper 0.20240618.92328
Kernel: Linux 6.9.10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.10-1 (2024-07-19) x86_64
======================
Proton: 1721412568 experimental-9.0-20240719
SteamGameId: 2990
Command: ['/home/debian/.steam/debian-installation/steamapps/common/FlatOut 2/FlatOut2.exe']
Options: {'forcelgadd'}
depot: 0.20240618.92328
pressure-vessel: 0.20240610.0 scout
scripts: 0.20240610.0
sniper: 0.20240618.92328 sniper 0.20240618.92328
Kernel: Linux 6.9.10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.10-1 (2024-07-19) x86_64
@GermanAizek
GermanAizek / analyze_makefile_ninja.sh
Last active August 18, 2024 22:30
PVS Studio analyze Makefile or Ninja script on Linux
# configure project (CMake or Meson)
# building with trace (Makefile)
pvs-studio-analyzer trace -- make -j8
# building with trace (Ninja)
pvs-studio-analyzer trace -- ninja
# analyze strace_out or compile_commands.json (Makefile)
pvs-studio-analyzer analyze -j8 --intermodular -a "GA;64;OP" -o PVS.log # CLion and Visual Studio
@GermanAizek
GermanAizek / README.md
Last active May 4, 2024 17:21
"ifconfig: command not found" or "iwconfig: command not found"
  1. Update Debian or Ubuntu repositories.
sudo apt update
  1. Install net-tools with apt.
sudo apt install net-tools
@GermanAizek
GermanAizek / README.md
Last active April 12, 2024 15:37
Enable Google Sanitizers in Visual Studio
  1. Address Sanitizer is integrated with Visual Studio IDE. To turn on AddressSanitizer for an MSBuild project, right-click on the project in Solution Explorer and choose Properties. In the Property Pages dialog, select Configuration Properties > C/C++ > General, then modify the Enable Address Sanitizer and Enable Fuzzer Support property.

  2. Choose OK to save your changes.

  3. To build from the IDE, opt out of any incompatible options. For an existing project compiled by using /Od (or Debug mode), you may need to turn off these options:

  • Turn off edit and continue (???)
  • Turn off /RTC1 (Basic Runtime Checks) (Clear field)