ifdef::wiki[] :pve-toplevel: endif::wiki[]
http://cloudinit.readthedocs.io[Cloud-Init] is the defacto multi-distribution package that handles early initialization of a virtual machine instance. Using Cloud-Init, configuration of network
ifdef::wiki[] :pve-toplevel: endif::wiki[]
http://cloudinit.readthedocs.io[Cloud-Init] is the defacto multi-distribution package that handles early initialization of a virtual machine instance. Using Cloud-Init, configuration of network
| Moved to https://github.com/AlexanderWillner/runMacOSinVirtualBox |
sudo apt install build-essential gcc-6 g++-6
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 20
sudo update-alternatives --set gcc /usr/bin/gcc-6Cloud-Init is the defacto multi-distribution package that handles early initialization of a virtual machine instance. Using Cloud-Init, one can configure network
| /** | |
| * 1 打开 https://m.weibo.cn/beta 登陆你被炸的账号 | |
| * 2 打开浏览器控制台 | |
| **/ | |
| function delay (time) { | |
| return new Promise(r => { | |
| setTimeout(() => r(), time || 1000); // 延时 1s,可适当增加延长时间 | |
| }); | |
| } |
| #!/bin/bash | |
| # install CUDA Toolkit v9.0 | |
| # instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb) | |
| CUDA_REPO_PKG="cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64-deb" | |
| wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/${CUDA_REPO_PKG} | |
| sudo dpkg -i ${CUDA_REPO_PKG} | |
| sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub | |
| sudo apt-get update | |
| sudo apt-get -y install cuda-9-0 |
| #!/bin/sh | |
| # More Mac setup at https://mac.iamdeveloper.com | |
| # Log file | |
| timestamp=$(date +%s) | |
| logFile="./my-mac-setup-$timestamp.log" | |
| # if true is passed in, things will reinstall | |
| reinstall=$1 |
| #!/bin/bash | |
| #set persistence mode for all GPU | |
| sudo nvidia-smi -pm 1 | |
| #Set gpu max power at 160w | |
| sudo nvidia-smi -pl 160 | |
| #Set Power level of specific GPU (1080) in watts | |
| # sudo nvidia-smi -i 2 -pl 200 |
| import argparse | |
| import cv2 | |
| import dlib | |
| import json | |
| import numpy | |
| import skimage | |
| from pathlib import Path | |
| from tqdm import tqdm | |
| from umeyama import umeyama |