Skip to content

Instantly share code, notes, and snippets.

@Victordmz
Victordmz / 1create.sh
Last active December 12, 2023 13:32 — forked from alexandrnikitin/1create.sh
How to launch Colab on a GCE spot instance (with Tesla T4 GPU) -- updated april 2023
gcloud beta compute instances create colab-1-vm \
--machine-type=e2-highmem-4 \
--zone=<INSERT_ZONE> \
--accelerator="type=nvidia-tesla-t4,count=1" \
--provisioning-model=SPOT \
--boot-disk-size=200GB \
--boot-disk-type=pd-balanced \
--instance-termination-action=DELETE \
--image=https://www.googleapis.com/compute/v1/projects/colab-marketplace-image-public/global/images/colab-mp-20230410 \
--network=https://www.googleapis.com/compute/v1/projects/<INSERT_PROJECT_ID>/global/networks/default \
@vorozhba
vorozhba / Как удалить commit в Github.txt
Last active April 18, 2024 17:41
Как удалить commit в Github
1. Получаем хэш-код коммита, к которому хотим вернуться.
2. Заходим в папку репозитория и пишем в консоль:
$ git reset --hard a3775a5485af0af20375cedf46112db5f813322a
$ git push --force

How to install dlib v19.9 or newer (w/ python bindings) from github on macOS and Ubuntu

Pre-reqs:

  • Have Python 3 installed. On macOS, this could be installed from homebrew or even via standard Python 3.6 downloaded installer from https://www.python.org/download. On Linux, just use your package manager.
  • On macOS:
    • Install XCode from the Mac App Store (or install the XCode command line utils).
    • Have homebrew installed
  • On Linux: