Skip to content

Instantly share code, notes, and snippets.

View Anime4000's full-sized avatar

Anime4000

View GitHub Profile
@Anime4000
Anime4000 / readme.md
Last active April 5, 2024 13:12
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 / 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 / uart.log
Last active February 19, 2024 06:23
Huawei HG8240
Chip Type is SD5117P
safetycode boot type: spi nand flash
Safetycode build: (V500R019C00 Sep 7 2018 - 09:29:36)
Select startcodeA
startcode start at 0x1c020088
Startcode 2017.07 (V500R019C00 Sep 07 2018 - 09:30:09 +0800 V5)
NAND: SPI_NAND_FLASH_TYPE
@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 / 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 / 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 / maxis-voip.txt
Last active November 26, 2022 06:05
Maxis VoIP on Huawei ONU
_________________
WAN Configuration
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
Enable WAN: ✔
Encapsulation mode: IPoE
Protocol type: IPv4
WAN mode: Routed WAN
Service type: VoIP
Enable VLAN: ✔
VLAN ID: 822
@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 / 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