Skip to content

Instantly share code, notes, and snippets.

View lfelia's full-sized avatar

Lee Elia lfelia

View GitHub Profile
require 'bcrypt'
password = "pain-in-the-ass-word"
psalt = BCrypt::Engine.generate_salt
phash = BCrypt::Engine.hash_secret(password, psalt)
puts psalt
puts phash
@lfelia
lfelia / create-pdf-a
Created May 3, 2018 15:37
Command to create a PDF/A from a regular PDF
# command to create a pdf/a using ghostscript.
# Pdf should be pdf 1.4 to start
gs -dPDFA -dBATCH -dNOPAUSE -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=output.pdf input.pdf
@lfelia
lfelia / keybase.md
Created January 3, 2018 00:25
Keybase Proof

Keybase proof

I hereby claim:

  • I am lfelia on github.
  • I am backrow (https://keybase.io/backrow) on keybase.
  • I have a public key ASC7oks8D1qHk3QBubUzR24OUOh1v580Lp61V3CDUO1iOgo

To claim this, I am signing this object: