This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.3", | |
| "info": { | |
| "title": "GitHub Gist API", | |
| "version": "1.1.0", | |
| "description": "Lists files in a GitHub Gist. Returns owner.login and files map including file content." | |
| }, | |
| "servers": [{ "url": "https://api.github.com" }], | |
| "paths": { | |
| "/gists/{gist_id}": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.3", | |
| "info": { | |
| "title": "Raw HTTP Fetcher", | |
| "version": "1.0.0", | |
| "description": "Fetches raw content from gist.githubusercontent.com URLs." | |
| }, | |
| "servers": [{ "url": "https://gist.githubusercontent.com" }], | |
| "paths": { | |
| "/{user}/{gist_id}/raw/{filename}": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "name": "Amara Osei", | |
| "email": "amara.osei@nexovian.world", | |
| "role": "Backend Engineer", | |
| "login": "amara-osei" | |
| }, | |
| { | |
| "name": "Björn Lindqvist", | |
| "email": "bjorn.lindqvist@nexovian.world", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.3", | |
| "info": { | |
| "version": "1.1.4", | |
| "title": "GitHub REST API — Orgs & Teams", | |
| "description": "Filtered subset of the GitHub REST API covering organizations and teams management.", | |
| "license": { | |
| "name": "MIT", | |
| "url": "https://spdx.org/licenses/MIT" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| %HOMEDRIVE% | |
| cd %HOMEPATH% | |
| call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 | |
| echo Use full exe names when running under bash, e.g. "msbuild.exe" | |
| echo Loading bash, you may now use git and msbuild in the same console \o/. | |
| "C:\Program Files\Git\bin\sh.exe" --login -i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Theory: | |
| - http://jasonwilder.com/blog/2014/02/04/service-discovery-in-the-cloud/ | |
| Practice: | |
| - https://github.com/yatskevich/service-discovery-box | |
| - https://github.com/yatskevich/pingpong | |
| - https://medium.com/@yatskevich/trying-out-consul-with-docker-on-os-x-3193b7ef9f39 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| boot2docker ip | |
| # 192.168.59.103 | |
| consul members -rpc-addr=192.168.59.103:8400 | |
| # Node Address Status Type Build Protocol | |
| # node4 172.17.0.13:8301 alive client 0.4.1 2 | |
| # node2 172.17.0.11:8301 alive server 0.4.1 2 | |
| # node3 172.17.0.12:8301 alive server 0.4.1 2 | |
| # node1 172.17.0.10:8301 alive server 0.4.1 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # run the first server node expecting at least two more nodes to form a Consul cluster | |
| docker run -d --name node1 -h node1 progrium/consul -server -bootstrap-expect 3 | |
| # other two nodes will join the first one using its IP (in Docker network) | |
| JOIN_IP="$(docker inspect -f '{{.NetworkSettings.IPAddress}}' node1)" | |
| # run second server node | |
| docker run -d --name node2 -h node2 progrium/consul -server -join $JOIN_IP | |
| # run third server node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80 default; | |
| server_name your_server.org; | |
| location / { | |
| proxy_http_version 1.1; # this is essential for chunked responses to work | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location / { | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $scheme; | |
| proxy_pass http://localhost:9000; | |
| } |
NewerOlder