Skip to content

Instantly share code, notes, and snippets.

View devinderaujla's full-sized avatar

devinderaujla

View GitHub Profile

Prerequisites:

  • Machine with 8+ GB of RAM (at least 4 GB required for Docker to compile libraries)
  • 20-25 GB of minimum free disk space
  • Installed Docker and Nvidia driver on host system
  • Nvidia GPU supporting the same driver as host system (for Docker compatibility, preferably Kepler or later generation to support the latest driver) There can be multiple GPUs of different generations installed at the same time, but they all have to support the same driver. For example, my setup has a Quadro K2000 (Kepler) for display and Quadro M4000 (Maxwell) for compute.

Steps:

  1. Clone dlandon's Zoneminder Docker repository: https://github.com/dlandon/zoneminder
@devinderaujla
devinderaujla / win10colors.cmd
Created March 7, 2023 16:05 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m
@devinderaujla
devinderaujla / cloudflare-ddns-update.sh
Last active March 31, 2024 16:21 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# based on https://gist.github.com/Tras2/cba88201b17d765ec065ccbedfb16d9a
# initial data; they need to be filled by the user
#### Added multiple sub domains and proxy state set options
## API token; e.g. FErsdfklw3er59dUlDce44-3D43dsfs3sddsFoD3
api_token=<>
## the email address associated with the Cloudflare account; e.g. email@gmail.com
email=<>
## the zone (domain) should be modified; e.g. example.com
zone_name=example.com