Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Ciao plusCubed

View GitHub Profile
@plusCubed
plusCubed / rotate.py
Last active Nov 5, 2019
Rotate images based on EXIF
View rotate.py
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 Aug 17, 2019
fish install without root
View fish_install.sh
# 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
You can’t perform that action at this time.