Skip to content

Instantly share code, notes, and snippets.

View MaoJianwei's full-sized avatar

Jianwei Mao MaoJianwei

View GitHub Profile
@andelf
andelf / smtp_login_auth.go
Created March 8, 2013 18:40
golang net/smtp SMTP AUTH LOGIN Auth Handler
// MIT license (c) andelf 2013
import (
"net/smtp"
"errors"
)
type loginAuth struct {
username, password string
@nerdalert
nerdalert / Netfilter-IPTables-Diagrams.md
Last active April 16, 2025 02:11
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

@lize240810
lize240810 / Ubuntu 安装使用mysql
Created September 19, 2019 09:18
Ubuntu上安装使用mysql 教程 修改初始密码
# 安装mysql
```
sudo apt install mysql-server
```
# ubuntu18.04 首次登录mysql未设置密码或忘记密码解决方法
1.首先输入以下指令:
```shell
sudo cat /etc/mysql/debian.cnf
```
2.输入显示的帐号与密码