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 / gist:ee90f5e4789b5bf1642cab8a7e24a601
Created April 14, 2025 12:23
Network server Linux optimization
https://nixsanctuary.com/linux-network-performance-optimization-tips-for-optimizing-linux-network-throughput-and-latency/
@GermanAizek
GermanAizek / gist:e0d67c9ef724cf3a77e4e613109a4845
Created April 9, 2025 20:06
GTX 650 bios flash SPI (HannStar J MV-4)
G 25020T E4A812 AH1235 (G - GigaDevice)
It's similar JEDEC ID to
GD25Q20C
size 256K
page size 256
@GermanAizek
GermanAizek / README.md
Created April 8, 2025 21:46
Deploy Whonix Gateway on Debian 12

in host debian 12

sudo apt -y install qemu-kvm libvirt-daemon bridge-utils virtinst libvirt-daemon-system
sudo apt -y install virt-top libguestfs-tools libosinfo-bin qemu-system virt-manager
sudo sed '/net.ipv4_forward=/s/^#//' -i /etc/sysctl.conf
sudo sysctl -p
sudo ln -s /etc/apparmor.d/libvirt/TEMPLATE.qemu /etc/apparmor.d/libvirt/TEMPLATE.kvm
sudo addgroup "$(whoami)" libvirt
sudo addgroup "$(whoami)" kvm
mkdir whonix-image && cd whonix-image
@GermanAizek
GermanAizek / migrate_gtk_to_qt.md
Last active March 22, 2025 17:33
[Guide] Migrate from GTK+ to Qt
@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