$ openapi-generator generate -i ./swagger.json -g elm -t templates/ --global-property debugModels
[error] Found unexpected parameters: [--global-property, debugModels]
See 'openapi-generator help' for usage
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
| #!/usr/bin/env bash | |
| set -e | |
| usage() { echo "$0 usage:" && grep " .)\ #" $0; exit 0; } | |
| [ $# -eq 0 ] && usage | |
| while getopts ":hb:p:" arg; do | |
| case $arg in | |
| p) # Specify port prefix value. Any of: 80, 83, 84, 85, 86, 87. |
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
| module RouteCodec exposing (..) | |
| import Url exposing (Url) | |
| import Url.Parser as UP exposing ((</>), Parser, s) | |
| type Route | |
| = Home | |
| | Settings | |
| | User String UserRoute |
I was getting errors like...
$ ./gradlew build
... snip ...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSearchableOptions'.
> A problem occurred starting process 'command '/home/rkb/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbrx-8u202-linux-x64-b1483.49/jre/bin/java''this is as close as I've gotten to building Hippo in NixOS
Can't get past the errors:
MSB4242: The SDK resolver "Microsoft.DotNet.MSBuildSdkResolver" failed to run
and
warning NU1701: Package was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
As of 2020-06-04 the links in the original index are broken, so here's an updated index:
Raymond
March 23rd, 2018
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
| // Intended to be run from the Snippets panel in Chrome Dev Tools, targeting the Elm Debugger popout window. | |
| // https://gist.github.com/r-k-b/9e341370159e87b7f8b09200660e93ea | |
| (() => { | |
| // these are multiple megabytes in size, too big to diff | |
| const blacklist = ['lookup', 'repository', 'historyDetail', 'templateInfos']; | |
| const getChevrons = () => { | |
| const all = [...document.querySelectorAll('span[style*="width: 2ch"]')] | |
| .map(node => ({node, label: node.nextSibling.textContent})) | |
| .filter(chev => !blacklist.includes(chev.label)); |
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
| #!/bin/sh | |
| # https://gist.github.com/r-k-b/f0d3ac22760da2795e928d8f105134cc | |
| while true; | |
| do | |
| printf '.'; | |
| # You can get all this curl noise form the Chrome Devtools, Network panel, the main request, then select "Copy as curl (bash)" | |
| curl 'http://baf.robert.test/' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3842.0 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' -H 'Referer: http://baf.robert.test/login.aspx?ReturnUrl=%2f' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' -H 'Cookie: _ga=GA1.2.1267220546.1560392349; _gid=GA1.2.1075512879.1562207502; _gat=1; .buildaformAuth=668344A8E90D04C8A897DD22F5D37165B113948EE420D4FC7364FDDAFDDB9BA0B92ABA5AA5126307D365B541A14F00355B21620D3ED1F5DEFB85A19AB8EB2CDEE7A64 |
cat build-output.txt | sed -rn 's/^.*\[([A-Z]+[0-9]+)\].*$/\1/p' | sort | uniq -c | sort -nrExplanation:
↑ ↑ ↑ ↑
a b c d