vboxmanage extpack install --replace {EXTPACKFILE}
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
version: '3' | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:latest | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_TICK_TIME: 2000 | |
broker: | |
image: confluentinc/cp-kafka:latest |
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
FROM ubuntu:18.04 | |
RUN apt update && apt install default-jdk -y |
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/bash | |
docker run --rm -it \ | |
-v /tmp/out:/out \ | |
jrottenberg/ffmpeg:4.1-alpine \ | |
-user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3554.0 Safari/537.36" \ | |
-headers "origin: https://www.fanstui.com" \ | |
-headers "referer: https://www.fanstui.com/static/player/videojs.html" \ | |
-i xxx.m3u8 \ | |
-c copy /out/v.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
" jsx [insert]<Tab>: auto complete html tag | |
" div | |
" <div></div> | |
autocmd BufNewFile,BufRead *.js,*.jsx inoremap <Tab> <Esc>^i<<Esc>$a><Esc>^v$y$pbi/<Esc>h | |
" jsx [normal]/!: to self close tag | |
" <div>abc</div> | |
" <div />abc | |
autocmd BufNewFile,BufRead *.js,*.jsx nnoremap /! ^f>i /<Esc>f<vf>xF |
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
// setup check service worker manually update interval | |
const useUpdatePwaServiceWorker = (interval=60 * 1000) => { | |
useEffect(() => { | |
const update = () => { | |
const sw = window.navigator.serviceWorker; | |
sw && sw.getRegistrations() | |
.then(rs => rs.forEach(r => r.update())) | |
.catch(console.error); | |
}; |
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
gst-launch-1.0 udpsrc port=9001 ! application/x-rtp, clock-rate=90000, media=video, encoding-name=VP8 ! rtpvp8depay ! vp8dec ! autovideosink |
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
# without traefik.toml config file | |
# use docker service command | |
version: "3.7" | |
services: | |
reverse-proxy: | |
image: traefik:1.7 | |
networks: | |
- traefiknet |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="mobile-web-app-capable" content="yes"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> |
NewerOlder