This is the linux driver for an AC 1200 Dual-Band USB 3.0 Wi-Fi Adapter. (Amazon)
The original repo was forked and edited so that it would compile on Ubuntu 17.04 4.10.0-33-generic, and use DKMS
$ lsusb | grep -i real
Bus 003 Device 002: ID 0bda:b812 Realtek Semiconductor Corp.
$ sudo apt update
$ sudo apt install linux-headers-generic build-essential git
$ git clone https://github.com/ottov/android_hardware_wifi_realtek_drivers_8822bu.git
$ cd android_hardware_wifi_realtek_drivers_8822bu
$ grep -Ri 0bda
rtl8822BU/os_dep/linux/usb_intf.c:#define USB_VENDER_ID_REALTEK 0x0BDA
$ grep -Ri b812
os_dep/linux/usb_intf.c: {USB_DEVICE_AND_INTERFACE_INFO(USB_VENDER_ID_REALTEK, 0xB812, 0xff, 0xff, 0xff),.driver_info = RTL8822B},
$ cd rtl8822BU
$ make
$ make clean
$ sudo apt install dkms
$ cd android_hardware_wifi_realtek_drivers_8822bu
$ sudo dkms add ./rtl8822BU
$ sudo dkms install rtl8822BU/5
$ sudo reboot