This file contains 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
const puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await puppeteer.launch({ | |
headless : true | |
}); | |
const page = await browser.newPage(); | |
await page.setExtraHTTPHeaders({ | |
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', |
This file contains 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
set nocompatible | |
filetype off | |
set t_Co=24 " Explicitly tell Vim that the terminal supports 256 colors | |
set background=dark | |
set laststatus=2 | |
let g:airline_powerline_fonts=1 | |
let g:airline#extensions#tabline#enabled=1 " enable tabline | |
let g:airline#extensions#tabline#buffer_nr_show=1 " 显示buffer行号 |
This file contains 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
body { | |
-ms-text-size-adjust: 100%; | |
-webkit-text-size-adjust: 100%; | |
line-height: 1.5; | |
color: #333; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
font-size: 16px; | |
line-height: 1.5; | |
word-wrap: break-word; | |
} |
This file contains 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
{ | |
"emojis": [ | |
{"emoji": "👩👩👧👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""}, | |
{"emoji": "👩👩👧👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""}, | |
{"emoji": "👩👩👦👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""}, | |
{"emoji": "👨👩👧👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""}, | |
{"emoji": "👨👩👧👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""}, | |
{"emoji": "👨👩👦👦", "name": "family_two_biys", "shortname": "", "unicode": "", "html": "👨&zw |
This file contains 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
#!/bin/sh | |
RESUME_PATH="$HOME/resume" | |
RESUME_PORT="$1" | |
echo "Port: ${RESUME_PORT:="8080"}" | |
command -v docker >/dev/null 2>&1 | |
if [ $? != 0 ]; then curl -sSL https://get.docker.com/ | sh; fi | |
mkdir -p $RESUME_PATH | |
docker run -d --name resume_tmp zuolan/resume |
This file contains 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
ffmpeg -i *.mp4 -i *.m4a -acodec copy -vcodec copy video.mp4 | |
ffmpeg -i videoplayback.mp4 -i videoplayback.m4a -acodec copy -vcodec copy video.mp4 |
This file contains 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
编辑/etc/apt/sources.list | |
deb http://nginx.org/packages/ubuntu/ xenial nginx | |
deb-src http://nginx.org/packages/ubuntu/ xenial nginx | |
wget https://nginx.org/keys/nginx_signing.key -O - | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install nginx |
This file contains 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
sudo vim /etc/apt/sources.list | |
----------------------------------------------------------------------------------------------- | |
#------------------------------------------------------------------------------# | |
# OFFICIAL UBUNTU REPOS # | |
#------------------------------------------------------------------------------# | |
###### Ubuntu Main Repos | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse |
This file contains 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
sudo vim /etc/apt/sources.list | |
------------------------------------------------------------------------------------------------------ | |
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse | |
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse | |
------------------------------------------------------------------------------------------------------- | |
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse | |
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse |