Skip to content

Instantly share code, notes, and snippets.

View Anime4000's full-sized avatar

Anime4000

View GitHub Profile
@Anime4000
Anime4000 / huawei.sh
Last active June 6, 2020 14:38
Huawei ONT ONU Traffic Table, Remove Speed Limit
config
display traffic table ip from-index 0
traffic table ip index 6 name NoCap cir off pir off priority 0 priority-policy local-Setting
traffic table ip index 7 name 1Mbps cir 1024 pir 1024 priority 0 priority-policy local-Setting
traffic table ip index 8 name 3Mbps cir 3072 pir 3072 priority 0 priority-policy local-Setting
display traffic table ip from-index 0
display service-port all
@Anime4000
Anime4000 / readme.md
Last active April 29, 2024 07:41
Linux Mail Server Postfix Dovecot Virtual User, no sql database

Linux Mail Server

In this guide, I will show you how to make a Linux Mail Server in fast and easy way. This guide was taken from tiq's tech-blog for recent version, Linux distro I using is Ubuntu 20.04 LTS

Certificate

Make sure you have Certificate and Key file ready to use.

You can use existing Web Server SSL certificate, since we going to use same domain, example.com.

If you plan to use mx.example.com or mail.example.com you need create another one for these.

@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
@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 / 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 / advanced_conf-telnet.md
Last active February 17, 2024 06:09
XPON SFP ONU (V2801F), XPON STICK ONU (TWCGPON657), RTL8672, RTL9601C1
@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 / 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 / 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.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;