Skip to content

Instantly share code, notes, and snippets.

View huyinjie's full-sized avatar

Yinjie Hu huyinjie

  • NanJing , China
View GitHub Profile
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',
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行号
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;
}
@huyinjie
huyinjie / emojis.json
Created December 18, 2017 05:08 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"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
@huyinjie
huyinjie / start.sh
Last active November 25, 2017 15:58
#!/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
ffmpeg -i *.mp4 -i *.m4a -acodec copy -vcodec copy video.mp4
ffmpeg -i videoplayback.mp4 -i videoplayback.m4a -acodec copy -vcodec copy video.mp4
编辑/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
@huyinjie
huyinjie / gist:fb3a22ff7f6683f03fd16ae65fe4687e
Last active March 22, 2017 06:32
BWG Ubuntu 16.04 Setup
sudo vim /etc/apt/sources.list
-----------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
@huyinjie
huyinjie / gist:f3a9321b4c6924f346be19546c1f0b25
Last active August 16, 2019 09:05
Ubuntu 16.04 官方源(US)
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