Skip to content

Instantly share code, notes, and snippets.

View metaplus's full-sized avatar
🎯
Focusing

Jingxing Xu metaplus

🎯
Focusing
  • Alibaba Inc
  • Shanghai
View GitHub Profile
HTTP_PROXY=http://127.0.0.1:1080 // vcpkg.cmake
HTTP_PROXYS=http://127.0.0.1:1080 // vcpkg.cmake
PreferredToolArchitecture=x64 // vs2017
VCPKG_DEFAULT_TRIPLET=x64-windows-static-dynamic // vcpkg.triplet
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CXX_FLAGS "-std=c++17")
set(VCPKG_C_FLAGS "")
@metaplus
metaplus / ffmpeg-cheatsheet.md
Created July 29, 2017 23:59 — forked from nickkraakman/ffmpeg-cheatsheet.md
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
@metaplus
metaplus / how-to-install-latest-gcc-on-ubuntu-lts.txt
Created July 29, 2017 21:15 — forked from application2000/how-to-install-latest-gcc-on-ubuntu-lts.txt
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \