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 / 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 / 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 / night-day.js
Created December 26, 2019 15:32
Day Night Wallpaper Engine
'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 December 8, 2019 04:58
WAMP HTTPS/SSL for Internet
<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 December 1, 2019 17:23
MSYS2 MINGW32 GCC 9.2
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 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 / iperf-loop.sh
Created March 10, 2019 18:02
VyOS Network Stress Test PPPoE
#!/bin/bash
killall -9 iperf 2> /dev/null
echo "[INFO]: Hello!"
while :
do
sleep 10s
@Anime4000
Anime4000 / firefox_about.json
Created October 28, 2018 14:54
Firefox crash IPv6 Address HTTP to HTTPS
{
"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/",