Skip to content

Instantly share code, notes, and snippets.

@Anime4000
Anime4000 / gist:ea373319c0891a1c84193f6e8de300c2
Created Nov 25, 2021 — forked from TomCan/gist:9644966
Inject drivers in Windows installation after motherboard change
View gist:ea373319c0891a1c84193f6e8de300c2
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 May 14, 2022
Mikrotik LTE Change IMEI
View terminal.md

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 Nov 12, 2021
PCI Passthrough - Proxmox 6.4-4
View iommu.sh
#!/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 Jul 6, 2021
Asus ROG Crosshair VIII Hero (Wi-Fi) IOMMU
View iommu.md
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 Dec 24, 2021
Asus ROG Strix B450-F Gaming IOMMU
View iommu.md
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 Dec 13, 2020
compile l4d2_bugfixes
View compile_l4d2exts.md

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 Mar 13, 2022
XPON SFP ONU (V2801F), XPON STICK ONU (TWCGPON657), RTL8672, RTL9601C1
View advanced_conf-telnet.md
@Anime4000
Anime4000 / conf.xml
Created Sep 24, 2020
Maxis TP-Link Archer C5v
View conf.xml
<?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 Sep 23, 2020
TP-Link Archer C5v UART Log
View putty_late-4g.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 Aug 22, 2020
C# Named Pipe FFmpeg x265
View Command.cmd
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