Skip to content

Instantly share code, notes, and snippets.

View skarlcf's full-sized avatar

Kamil Skrzypiński skarlcf

View GitHub Profile
@skarlcf
skarlcf / app.rb
Created November 21, 2020 17:25
Ruby script to get Amazon AWS Cloudfront IPs addresses and prepare nginx configuration (ngx_http_realip_module)
# frozen_string_literal: true
require 'bundler/inline'
require 'net/http'
gemfile do
source 'https://rubygems.org'
gem 'json'
gem 'pry'
end