Skip to content

Instantly share code, notes, and snippets.

View saurabheights's full-sized avatar

Saurabh Khanduja saurabheights

View GitHub Profile
FROM nvidia/cuda:9.0-base-ubuntu16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cuda-command-line-tools-9-0 \
cuda-cublas-dev-9-0 \
cuda-cudart-dev-9-0 \
cuda-cufft-dev-9-0 \
cuda-curand-dev-9-0 \
cuda-cusolver-dev-9-0 \
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Anaconda]
"Icon"="%USERPROFILE%\\Anaconda3\\Menu\\Iconleak-Atrous-Console.ico"
@="Open Anaconda Prompt here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Anaconda\command]
@="C:\\Users\\bdforbes\\Anaconda3\\pythonw.exe C:\\Users\\bdforbes\\Anaconda3\\cwp2.py C:\\Users\\bdforbes\\Anaconda3 \"%V\" cmd.exe \"/K\" C:\\Users\\bdforbes\\Anaconda3\\Scripts\\activate.bat C:\\Users\\bdforbes\\Anaconda3"
[HKEY_CLASSES_ROOT\Directory\shell\Anaconda]

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

@saurabheights
saurabheights / pre-push.sh
Created March 15, 2017 12:22 — forked from pixelhandler/pre-push.sh
Git pre-push hook to prevent force pushing master branch
#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. Copy the file into your repo at `.git/hooks/pre-push`
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push`
@saurabheights
saurabheights / .gitignore
Created January 28, 2017 05:35 — forked from adamgit/.gitignore
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#