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 August 15, 2024 18:20
Setup Ubuntu 18.04 server for Elixir Apps behind Nginx
# Some of the steps might seem obvious, but I've included every step taken to help any noobs that come across this.
#
# Add & Create Sudo User: (https://linuxconfig.org/how-to-create-sudo-user-on-ubuntu-18-04-bionic-beaver-linux )
sudo adduser username
# Add the user to the sudo group
sudo usermod -aG sudo username
# SSH Keys: (https://linuxize.com/post/how-to-set-up-ssh-keys-on-ubuntu-1804/)
ssh-copy-id remote_username@server_ip_address
@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']