Skip to content
View jgraham909's full-sized avatar

Highlights

  • Pro

Organizations

@FunnyMonkey @commonsense-org
Block or Report

Block or report jgraham909

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. Given a URL to a PDF convert it to text Given a URL to a PDF convert it to text
    1
    #!/bin/bash
    2
    # This script requires curl and gs.
    3
    
                  
    4
    # Set ghostscript & curl options.
    5
    GSOPTIONS="-dNOPAUSE -dBATCH -sDEVICE=txtwrite -sOutputFile=%stdout -q"
  2. colored diff output to html colored diff output to html
    1
    # uses diff, diffr, sed, aha
    2
    # pre.txt is original file, post.txt is updated file
    3
    diff -u pre.txt post.txt  | diffr | aha | sed 's/color:gray/color:white/g' | sed 's/<pre>/<pre style="white-space: pre-wrap;">/g' > diff.html