git config credential.helper store
vim /etc/docker/daemon.json
{
"registry-mirrors": [
"https://ung2thfc.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
]
set ts=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set hlsearch
set backspace=2
set autoindent
curl -fsSL https://get.docker.com -o get-docker.sh bash get-docker.sh
vim ~/.pip/pip.conf, make sure the ~/.pip directory exists. fill pip.conf with:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
you can replace the tsinghua mirror with any of:
- install snap
sudo apt update
sudo apt install snapd
- reboot system
sudo reboot
- install snap core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/device.h> | |
#include <linux/init.h> | |
#include <linux/fs.h> | |
#include <linux/mm.h> | |
#include <asm/uaccess.h> | |
#define MAX_SIZE (PAGE_SIZE * 2) /* max size mmaped to userspace */ | |
#define DEVICE_NAME "mchar" |
NewerOlder