This file contains 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
#!/bin/bash | |
wget https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v2.0/yaml/petstore.yaml | |
sudo docker run --name swagger-demo -d -p 80:8080 -v ${PWD}:/conf -e SWAGGER_JSON=/conf/petstore.yaml swaggerapi/swagger-ui |
This file contains 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
#!/bin/bash | |
# References: | |
# https://www.youtube.com/watch?v=X6Vk_J3p2KA | |
# https://launchpad.net/~mati865/+archive/ubuntu/mingw-w64 | |
# https://github.com/doitsujin/dxvk/issues/766#issuecomment-442079595 | |
# Vulkan | |
sudo aptitude install libvulkan1 libvulkan1:i386 python3-pip |
This file contains 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
import re as _re | |
import json as _json | |
JSON_EXTENSION = '.json' | |
def find_json_for_file(file: Path): | |
try: | |
if file.with_name(file.name + JSON_EXTENSION).is_file(): | |
# file.jpg -> file.jpg.json | |
the_json_path = file.with_name(file.name + JSON_EXTENSION) |
This file contains 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
import http from 'k6/http'; | |
import { check, sleep } from 'k6'; | |
export const URL = 'https://test.k6.io'; | |
export default function () { | |
let res = http.get(URL); | |
check(res, { | |
'resource returns status 200': (r) => r.status === 200, | |
}); |