Skip to content

Instantly share code, notes, and snippets.

Blair Anderson blairanderson

Block or report user

Report or block blairanderson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@blairanderson
blairanderson / Sharetribe DB installation
Last active Oct 11, 2016 — forked from gnomet/Sharetribe DB installation
Running these commands in MySQL will create three databases where the user "sharetribe" has access. DON'T FORGET TO CHANGE ALL THE put_a_password_here PARTS TO A SECURE PASSWORD!
View Sharetribe DB installation
CREATE DATABASE sharegrid_test CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE DATABASE sharegrid_development CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT all privileges ON sharegrid_development.* TO 'root'@'localhost' IDENTIFIED BY 'secret';
GRANT all privileges ON sharegrid_test.* TO 'root'@'localhost' IDENTIFIED BY 'secret';
@blairanderson
blairanderson / fromPdfToJpg
Created Jul 16, 2018 — forked from dvcama/fromPdfToJpg
bash: extract high-res images from pdf using imagemagick (recursively)
View fromPdfToJpg
#!/bin/bash
# extract jpg from PDF
# based on a script edited by Purch
#####################################
if [ -z $1 ];then echo Give target directory; exit 0;fi
find "$1" -depth -name '*.pdf' | while read file ; do
directory=$(dirname "$file")
oldfilename=$(basename "$file")
You can’t perform that action at this time.