Skip to content

Instantly share code, notes, and snippets.

@pluscubed
pluscubed / rotate.py
Last active November 5, 2019 09:35
Rotate images based on EXIF
from PIL import Image, ImageOps
import sys
import glob
import os
import piexif
if len(sys.argv) != 3:
print("usage: rotate.py [input-dir] [output-dir]")
exit(1)
@pluscubed
pluscubed / fish_install.sh
Created August 17, 2019 04:32
fish install without root
# Bash script for installing Fish Shell on systems without root access
# Fish Shell will be installed in $HOME/local/bin
# It's assumed that wget and a C/C++ compiler are installed
set -e # exit on error
FISH_VER=3.0.2
mkdir -p $HOME/local $HOME/fish_shell_tmp # create our directories
cd $HOME/fish_shell_tmp
wget http://github.com/fish-shell/fish-shell/releases/download/${FISH_VER}/fish-${FISH_VER}.tar.gz # download source files for Fish Shell