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 November 22, 2024 00:24
MDADM create RAID 10 and copy from old disk/partition

The Publisher:

Collective Ink Ltd, Laurel House, Station Approach, Alresford, Hampshire, SO24 9JH, United Kingdom

The Licensee:

Herman Semenov <[email protected]> (Foreign Publisher and address)

Street: Terschellingsestraat 64 >

@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 March 4, 2025 18:14
PVS Studio analyze Makefile or Ninja script on Linux
# configure project (Meson)
CC=clang CXX=clang++ meson /tmp/name
# or
# configure project (CMake)
CC=clang CXX=clang++ cmake -B /tmp/name ..
# building with trace (Makefile)
pvs-studio-analyzer trace -- make -j72
# building with trace (Ninja)
@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