View gist:fb3a22ff7f6683f03fd16ae65fe4687e
sudo vim /etc/apt/sources.list | |
----------------------------------------------------------------------------------------------- | |
#------------------------------------------------------------------------------# | |
# OFFICIAL UBUNTU REPOS # | |
#------------------------------------------------------------------------------# | |
###### Ubuntu Main Repos | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse |
View gist:57086324bcd0664f4e017f2c1b848dee
编辑/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 |
View gist:ee1058b9656e7936183e5d62cbf780ae
ffmpeg -i *.mp4 -i *.m4a -acodec copy -vcodec copy video.mp4 | |
ffmpeg -i videoplayback.mp4 -i videoplayback.m4a -acodec copy -vcodec copy video.mp4 |
View start.sh
#!/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 |
View emojis.json
{ | |
"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 |
View markdown-github.css
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; | |
} |
View .vimrc
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行号 |
View gist:bd1733be239ed69352acd7aa33b05dfa
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', |
View gist:f3a9321b4c6924f346be19546c1f0b25
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 |