Skip to content

Instantly share code, notes, and snippets.

View phollyer's full-sized avatar

Paul Hollyer phollyer

View GitHub Profile
@phollyer
phollyer / setup.sh
Last active May 27, 2021 13:43
Setup Ubuntu 18.04 server for Elixir Apps behind Nginx
# The process that follows enables an Elixir/Phoenix release to be built and deployed with edeliver.
# However, it results in a 502 Bad Gateway error when trying to access the app over HTTP.
# I have posted a question here: https://stackoverflow.com/questions/61808572/502-bad-gateway-elixir-phoenix but
# as of posting this Gist, I have been unable to resolve the issue.
# If anyone can help, please post in the comments here, or on the SO question. I'll keep this Gist up to date
# with SO and vice versa.
#
# Thank You to anyone that can help.
#
# Some of the steps might seem obvious, but I've included every step taken to help any noobs that come across this.
@phollyer
phollyer / spreadsheet_test
Created September 13, 2011 17:43
Spreadsheet Gem - updating an existing sheet without changing the output location or filename
#!/usr/bin/env ruby
require 'spreadsheet'
# Begin Test
print "Spreadsheet Test\n"
# Create the rows to be inserted
row_1 = ['A1', 'B1']
row_2 = ['A2', 'B2']