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
| export const createTestStore = ( | |
| reducer, | |
| initialState = {}, | |
| path = [], | |
| thunkArguments = {} | |
| ) => { | |
| const stateHistory = []; | |
| const dispatchHistory = []; | |
| const logHistory = store => next => action => { |
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/bash | |
| trap "kill 0" EXIT | |
| # Setup the proxy and wait for it to connect | |
| kubectl proxy & | |
| timeout 10s bash -c "until curl http://127.0.0.1:8001/; do sleep 1; done" | |
| # Grab the Kubernetes openapi schema from the API | |
| SCHEMA=$(curl http://127.0.0.1:8001/openapi/v2) |
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
| function scra { | |
| FILE=/tmp/scratch-`uuidgen`.sh | |
| echo '#!/bin/bash' > ${FILE} | |
| chmod +x ${FILE} | |
| code ${FILE} | |
| ls ${FILE} | entr ${FILE} | |
| } | |
| export -f scra > /dev/null |
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
| import { | |
| DefineFunction, | |
| DefineType, | |
| Schema, | |
| SlackFunction, | |
| } from "deno-slack-sdk/mod.ts"; | |
| export const AlertCustomType = DefineType({ | |
| name: "Alert", | |
| type: Schema.types.object, |
OlderNewer