Skip to content

Instantly share code, notes, and snippets.

View jincod's full-sized avatar

Vadim Abdrashitov jincod

View GitHub Profile
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active April 15, 2024 02:19
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@butaji
butaji / changes.rb
Last active August 29, 2015 14:10
Generate changes by commits included in current TeamCity build
require 'net/http'
require 'json'
def get_json(uri)
url = URI.parse(uri)
req = Net::HTTP::Get.new(url, {'Accept' => "application/json"})
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}