Skip to content

Instantly share code, notes, and snippets.

@Anime4000
Anime4000 / readme.md
Last active May 18, 2022
Linux Mail Server Postfix Dovecot Virtual User, no sql database
View readme.md

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 / huawei.sh
Last active Jun 6, 2020
Huawei ONT ONU Traffic Table, Remove Speed Limit
View huawei.sh
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 / uart.log
Last active Dec 27, 2021
Huawei HG8240
View uart.log
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 / night-day.js
Created Dec 26, 2019
Day Night Wallpaper Engine
View night-day.js
'use strict';
import * as WEMath from 'WEMath';
/**
* @param {Number} value (for property 'multiply')
*/
export function update(value) {
var t = engine.timeOfDay;
@Anime4000
Anime4000 / httpd-ssl.conf
Last active Dec 8, 2019
WAMP HTTPS/SSL for Internet
View httpd-ssl.conf
<VirtualHost *:443>
ServerName example.com
ServerAdmin admin@example.com
DocumentRoot "${INSTALL_DIR}/www/internet"
<Directory "${INSTALL_DIR}/www/internet/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
@Anime4000
Anime4000 / msys gcc 9 readme.md
Last active Dec 1, 2019
MSYS2 MINGW32 GCC 9.2
View msys gcc 9 readme.md
View msys2 pacman
https://www.msys2.org/
pacman -Syu
pacman -Su
pacman -Ss gcc | grep mingw64
# or everything (32-bit)
pacman -S --needed base-devel git subversion mercurial nasm yasm mingw-w64-i686-toolchain mingw-w64-i686-cmake mingw-w64-i686-qt5
# or everything (64-bit)
@Anime4000
Anime4000 / maxis-voip.txt
Last active Feb 20, 2022
Maxis VoIP on Huawei ONU
View maxis-voip.txt
_________________
WAN Configuration
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
Enable WAN: ✔
Encapsulation mode: IPoE
Protocol type: IPv4
WAN mode: Routed WAN
Service type: VoIP
Enable VLAN: ✔
VLAN ID: 822
@Anime4000
Anime4000 / iperf-loop.sh
Created Mar 10, 2019
VyOS Network Stress Test PPPoE
View iperf-loop.sh
#!/bin/bash
killall -9 iperf 2> /dev/null
echo "[INFO]: Hello!"
while :
do
sleep 10s
@Anime4000
Anime4000 / firefox_about.json
Created Oct 28, 2018
Firefox crash IPv6 Address HTTP to HTTPS
View firefox_about.json
{
"application": {
"name": "Firefox",
"osVersion": "Windows_NT 10.0",
"version": "63.0",
"buildID": "20181018182531",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0",
"safeMode": true,
"updateChannel": "release",
"supportURL": "https://support.mozilla.org/1/firefox/63.0/WINNT/en-US/",