Skip to content

Instantly share code, notes, and snippets.

@kleo
Created October 28, 2020 21:43
Show Gist options
  • Select an option

  • Save kleo/b50b6554498d32fe6b821f15db90457c to your computer and use it in GitHub Desktop.

Select an option

Save kleo/b50b6554498d32fe6b821f15db90457c to your computer and use it in GitHub Desktop.
git.io vanity url
https://thiru.in/333/tech/get-github-vanity-url-git-io/
$ curl -i https://git.io -F "url=https://github.com/ithiru" -F "code=thiru"
HTTP/1.1 100 Continue
HTTP/1.1 201 Created
Server: Cowboy
Connection: keep-alive
Date: Thu, 22 Sep 2016 05:05:35 GMT
Status: 201 Created
Content-Type: text/html;charset=utf-8
Location: https://git.io/vi76a
Content-Length: 25
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Runtime: 0.256529
X-Node: 27a81f0a-cb95-4f6d-94d6-0c9891e3714b
X-Revision: 4fdc60de6311e6a3aa31e19bc7b3aad7e85d33a6
Strict-Transport-Security: max-age=31536000; includeSubDomains
Via: 1.1 vegur
# anchor trick
$ curl -i https://git.io -F "url=https://github.com/ithiru#start-of-content" -F "code=thiru"
HTTP/1.1 100 Continue
HTTP/1.1 201 Created
Server: Cowboy
Connection: keep-alive
Date: Thu, 22 Sep 2016 05:12:47 GMT
Status: 201 Created
Content-Type: text/html;charset=utf-8
Location: https://git.io/thiru
Content-Length: 42
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Runtime: 0.255721
X-Node: 722fe806-9844-4265-9a8f-c51d2c170cf7
X-Revision: 4fdc60de6311e6a3aa31e19bc7b3aad7e85d33a6
Strict-Transport-Security: max-age=31536000; includeSubDomains
Via: 1.1 vegur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment