Skip to content

Instantly share code, notes, and snippets.

View Anime4000's full-sized avatar

Anime4000

View GitHub Profile
@Anime4000
Anime4000 / gist:ea373319c0891a1c84193f6e8de300c2
Created November 25, 2021 11:56 — forked from TomCan/gist:9644966
Inject drivers in Windows installation after motherboard change
Today, after working with Windows for over 15 years now, I finally came across the solution to the
dreadfull BSOD STOP 0x0000007B after replacing the motherboard of a computer, or after moving the
harddrive to another computer, or after doing a P2V, or after ... you get the point.
Requirements:
- Windows install / boot CD
- Chipset / Mobo / Storage drivers of the new motherboard or storage controller
Steps:
- extract all the drivers to a USB thumb drive
@Anime4000
Anime4000 / terminal.md
Last active March 18, 2024 12:55
Mikrotik LTE Change IMEI

Change Mikrotik LTE IMEI

Query which mode

/interface lte at-chat lte1 input="AT*PROD\?"

Enter Non-production mode

/interface lte at-chat lte1 input="AT*PROD=1"

Delete old IMEI

/interface lte at-chat lte1 input="AT*MRD_IMEI=D"

@Anime4000
Anime4000 / iommu.sh
Last active September 29, 2022 14:22
PCI Passthrough - Proxmox 6.4-4
#!/bin/bash
shopt -s nullglob
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*; do
echo -e "\t$(lspci -nns ${d##*/})"
done;
done;
@Anime4000
Anime4000 / iommu.md
Created July 6, 2021 11:03
Asus ROG Crosshair VIII Hero (Wi-Fi) IOMMU
IOMMU Group 1
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]

IOMMU Group 2
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]

IOMMU Group 3
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
@Anime4000
Anime4000 / iommu.md
Last active December 24, 2021 19:23
Asus ROG Strix B450-F Gaming IOMMU
dmesg |egrep group |awk '{print $NF" "$0}' |sort -n
lspci

Group 0:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex

Not Included

@Anime4000
Anime4000 / compile_l4d2exts.md
Last active July 5, 2022 17:07
compile l4d2_bugfixes

GCC 5.5

Kubuntu 18.04.5 32-bit

Sourcemod 1.8 dev

Metamod: Source 1.8 dev

sudo apt install gcc-5 g++-5 clang libstdc++-5-dev zlib1g-dev libc6-dev linux-libc-dev

git clone https://github.com/Accelerator74/l4d2_bugfixes
git clone --recurse-submodules https://github.com/alliedmodders/sourcemod
git clone --recurse-submodules https://github.com/alliedmodders/metamod-source mmsource
@Anime4000
Anime4000 / advanced_conf-telnet.md
Last active February 17, 2024 06:09
XPON SFP ONU (V2801F), XPON STICK ONU (TWCGPON657), RTL8672, RTL9601C1
@Anime4000
Anime4000 / conf.xml
Created September 24, 2020 18:15
Maxis TP-Link Archer C5v
<?xml version="1.0"?>
<DslCpeConfig>
<InternetGatewayDevice>
<DeviceSummary val="InternetGatewayDevice:1.1[](Baseline:1, EthernetLAN:1)" />
<LANDeviceNumberOfEntries val=2 />
<WANDeviceNumberOfEntries val=3 />
<DeviceInfo>
<ManufacturerOUI val=F8D111 />
<SerialNumber val=0000000000000 />
<HardwareVersion val="Archer C5v v1 00000000" />
@Anime4000
Anime4000 / putty_late-4g.log
Created September 23, 2020 19:29
TP-Link Archer C5v UART Log
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2020.09.24 03:18:58 =~=~=~=~=~=~=~=~=~=~=~=
BGA IC
Xtal:1
DDR3 init.
DRAMC init done.
Calculate size.
DRAM size=128MB
Set new TRFC.
ddr-1066
@Anime4000
Anime4000 / Command.cmd
Created August 22, 2020 07:07
C# Named Pipe FFmpeg x265
ffmpeg -hide_banner -v error -i -strict -1 -map 0:0 -f rawvideo -pix_fmt yuv420p -y \\.\pipe\some_pipe_in
x265-08 \\.\pipe\some_pipe --preset fast --tune psnr --crf 23.5 --input-res 1920x1080 --fps 24 --output-depth 8 -o test.mp4