Skip to content

Instantly share code, notes, and snippets.

View Kazhnuz's full-sized avatar

Kazhnuz Kazhnuz

View GitHub Profile
require 'zlib'
require 'yaml'
require "uri"
require "open-uri"
# HTTPS doesn't work
componentsDataGz = open("http://packages.elementary.io/appcenter/dists/xenial/main/dep11/Components-amd64.yml.gz")
componentsData = Zlib::GzipReader.new( componentsDataGz ).read
template = '---