windows代理软件需要开启允许LAN连接
sudo apt install polipo
vim /etc/polipo/config
在文件中写入如下内容:
socksParentProxy = "localhost:1080"
socksProxyType = socks5
| Python - Competitive Programming Tricks |
| # OpenCV with CUDA C++ installation (Ubuntu Bionic Beaver) | |
| ### Pre-requisites | |
| - sudo apt-get install build-essential | |
| - sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev | |
| - sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev | |
| ### Download source: | |
| - git clone https://github.com/Itseez/opencv.git | |
| - git clone https://github.com/Itseez/opencv_contrib.git |
Partly updated June 2023
General caution: Chrome OS is a secure OS by design, but this has at least one key consequence. If you change your Google account password, you will still be required to enter the old password the next time you access each Chrome OS device. Devices are encrypted with that password, so the OS needs to decrypt using the old password then re-encrypt using the new one. If you forget your old password you will lose access to your Chrome OS device data. As always, make sure you keep backups up to date.
If you have multiple Chrome OS accounts (Say, work and play), you can quickly sitch between them without logging out:
Install Xquartz to get X11 support on MacOS. You can google Xquartz and download it from its official site, or install using HomeBrew.
brew cask install xquartzLaunch Xquartz. Go to Preference -> Security, click the box Allow connections from clients. NOTE: You have to lauch Xquartz with Allow connections from clients enable everytime you want to ssh to remote server with X11 forwarding support.
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt install build-essential python3-dev python-setuptools python-pip python-smbus libncursesw5-dev libgdbm-dev libc6-dev zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl libffi-dev git wget zsh gconf2 libnotify4 libappindicator1 nano tree libnss3 software-properties-common -y
| # Update 2023-07-20: | |
| # I've recently switched to installing `zsh` via `conda` which is a lot less hassle. | |
| # I added it to start automatically in `tmux` with | |
| # `set-option -g default-shell "~/miniconda3/envs/default/bin/zsh"` | |
| # | |
| # # Install Zsh on Sherlock | |
| # Installs Zsh with Oh-My-Zsh without root privileges | |
| # on Stanford's Sherlock (https://sherlock.stanford.edu) for use in tmux | |
| # | |
| # ## Instructions |
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
Single-process:
python main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/
Multi-process:
python -m torch.distributed.launch --nproc_per_node=2 main_amp.py -a resnet50 --b 224 --deterministic --workers 4 --opt-level O1 ./bare_metal_train_val/
| # Download and unpack the latest binary on a 64-bit Debian-compatible system: | |
| curl -L -o VNC https://www.realvnc.com/connect/download/binary/latest/debian/64-bit/ | |
| # Install VNC Server on a Debian-compatible system (assuming download file named as above): | |
| sudo dpkg -i VNC | |
| # Apply your license key, available from the Deployment page of your RealVNC account: | |
| sudo vnclicense -add XXXXX-XXXXX-XXXXX-XXXXX-XXXXX | |
| # Optionally enable cloud connectivity for VNC Server in Service Mode (token available with key): |