Skip to content

Instantly share code, notes, and snippets.

View mikecarroll's full-sized avatar

Michael Carroll mikecarroll

View GitHub Profile
@dwilkie
dwilkie / docker-cheat-sheat.md
Last active May 12, 2024 14:08
Docker Cheat Sheet

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

@afeld
afeld / gist:10d85bb67c3cc8c7b7bb
Last active December 29, 2020 20:40
fix orientation for all images in an S3 bucket
# Reads from EXIF data and applies the appropriate rotation. Requires AWS CLI and ImageMagick.
# To use, replace `BUCKET` and run in your terminal.
mkdir -p BUCKET/upright
cd BUCKET
aws s3 sync s3://BUCKET .
find . -name "*.jpg" -exec convert {} -auto-orient upright/{} \;
aws s3 sync . s3://BUCKET --acl public-read
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active November 11, 2024 22:46
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@blacktm
blacktm / install_ruby_rpi.sh
Last active May 26, 2024 15:13
A Bash script to install Ruby on the Raspberry Pi
#!/bin/bash
# --------------------------------------------------------------------------------------------
# Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian)
#
# Run from the web:
# bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
# --------------------------------------------------------------------------------------------
# Set the Ruby version you want to install
@afeld
afeld / gist:5201086
Last active August 17, 2023 18:43
job boards
@afeld
afeld / gist:4952991
Last active February 8, 2022 03:13
good APIs for mashups

This list has been superseded by Public APIs. Check there for APIs with Auth: No, HTTPS and CORS Yes.


List of data APIs that require no server-side auth or private credentials, and are thus good for small browser-only JS projects.