Skip to content

Instantly share code, notes, and snippets.

@toddwprice
toddwprice / GraphicsMagick.sh
Last active September 20, 2020 17:04 — forked from paul91/GraphicsMagick.sh
How to install GraphicsMagick on CentOS 6.4
#!/bin/bash
# Install build dependencies
sudo yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
# Get GraphicsMagick source
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.gz
tar zxvf GraphicsMagick-LATEST.tar.gz
# Configure and compile
@toddwprice
toddwprice / Install Graphics Magick on CentOS 7
Created September 20, 2020 16:56 — forked from abernardobr/Install Graphics Magick on CentOS 7
Install Graphics Magick on CentOS 7
# Get Graphics Magick
> cd /
> mkdir /dowload
> cd /download
> wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.gz
> tar -xzvf GraphicsMagick-LATEST.tar.gz
> cd GraphicsMagick-1.3.21 (or the lastest graphics magick)
# Install Graphics Magick
## Get libs
@toddwprice
toddwprice / app.html
Created June 29, 2016 15:31 — forked from jdanyow/app.html
Aurelia file input binding
<template>
<require from="./blob-to-url"></require>
<require from="./file-list-to-array"></require>
<input type="file" multiple accept="image/*" files.bind="selectedFiles">
<div>
<ul>
<li repeat.for="file of selectedFiles | fileListToArray">
<img src.bind="file | blobToUrl" />
@toddwprice
toddwprice / digicert_to_aws.sh
Created December 15, 2015 23:50 — forked from PuKoren/digicert_to_aws.sh
Upload Digicert certificate to Amazon Web Services (AWS)
#!/bin/sh
# $1: certificate name on AWS
# $2: certificate file (crt)
# $3: private key file (pem)
# $4: DigicertCA2 path
# $5: TrustedRoot path
# Download certificates on Digicert (Other formats > Individual crt files with a .cer extension)
# Generate intermediate cert for AWS (not an option, many browsers requires it it). Intermediate is concatenation of CA and Root certs
(openssl x509 -inform PEM -in $4; openssl x509 -inform PEM -in $5) > Intermediate.cer