配有英伟达显卡的主机,装完 Ubuntu 16.04 后出现闪屏现象,是由于没有安装显卡驱动。
显卡型号
NVIDIA Corporation GM204 [GeForce GTX 970]
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netdb.h> | |
| #include <unistd.h> | |
| #include <fcntl.h> | |
| #include <sys/epoll.h> | |
| #include <errno.h> |
| # =============== # | |
| # Unity generated # | |
| # =============== # | |
| [Tt]emp/ | |
| [Oo]bj/ | |
| [Bb]uild | |
| /[Bb]uilds/ | |
| /[Ll]ibrary/ | |
| sysinfo.txt | |
| *.stackdump |
| #pragma once | |
| #include <stdint.h> | |
| struct crc32 | |
| { | |
| static void generate_table(uint32_t(&table)[256]) | |
| { | |
| uint32_t polynomial = 0xEDB88320; | |
| for (uint32_t i = 0; i < 256; i++) |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
wpasupplicantsudo nmcli radio wifi onsudo iwconfigsudo iwlist wlp3s0 scannetplan by dropping a file called 01-netcfg.yaml into /etc/netplan/ or edit existing file there. See example below.netplan try, netplan generate, netplan apply.This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh| " Specify a directory for plugins | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
| Plug 'scrooloose/nerdtree' | |
| "Plug 'tsony-tsonev/nerdtree-git-plugin' | |
| Plug 'Xuyuanp/nerdtree-git-plugin' | |
| Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
| Plug 'ryanoasis/vim-devicons' | |
| Plug 'airblade/vim-gitgutter' |
| class LineChart { | |
| // LineChart by https://kevinkub.de/ | |
| constructor(width, height, values) { | |
| this.ctx = new DrawContext(); | |
| this.ctx.size = new Size(width, height); | |
| this.values = values; | |
| } | |
| _calculatePath() { |