Skip to content

Instantly share code, notes, and snippets.

@wanghuibin0
wanghuibin0 / ffmpeg.md
Created May 24, 2021 03:33 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet

bash自定义配置

alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias r='cd -'

export VISUAL=vi

这是我的vim配置文件

全局使用请放在/etc/vim/vimrc.local

给某个用户使用请放在$HOME/.vimrc

@wanghuibin0
wanghuibin0 / ppt_and_pdf_downloader.py
Last active March 19, 2021 07:31
This is a python script to download all pdf or ppt files from a user-specified url
# Run this script with two command line arguments:
# 1. the source url
# 2. the destination folder
from pprint import pprint
import requests
from bs4 import BeautifulSoup
import sys, os
def get_html(url):

确保代理可用

curl -x socks5://127.0.0.1:2333 google.com

有返回内容则代表代理可用

配置http/https协议的git走代理

git config --global http.proxy 'socks5://127.0.0.1:2333'