examples.ts contains example graphql queries and mutations for working with the IP allow list
gql-paginate.ts contains a recursive function example to paginate a graphql query with more than 100 results
This gist runs a standalong Splunk server with Add-on Builder pre installed. This is the simplest way to start developing a Splunk Add-on.
Step 1. Install Docker Desktop
homepage to package.json{
"homepage": "https://user.github.io/repo"
}gh-pages npm package| img { | |
| height: auto; | |
| width: 100%; | |
| /* even more control with max-width */ | |
| max-width: 720px; | |
| /* max-height fixes stretching issues in safari/ios */ | |
| max-height: 200px; | |
| } |
| html,body | |
| { | |
| width: 100%; | |
| height: 100%; | |
| margin: 0px; | |
| padding: 0px; | |
| overflow-x: hidden; | |
| } |
| Object.fromEntries( | |
| Object.entries(obj) | |
| .filter(([key]) => ['foo', 'bar'].includes(key)) | |
| ) |
| # Publish a Babel or TypeScript package to NPM and Github Package Repository | |
| # | |
| # This version triggers when you create a GitHub release in the repo | |
| # Note there is no caching because currently caching is not supported | |
| # for release events, only push and pull_request. | |
| # | |
| # Required secrets: | |
| # NPM_TOKEN: A token for NPM with write access | |
| name: Publish |
To change all the directories to 755 (drwxr-xr-x):
find . -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r--r--):
find . -type f -exec chmod 644 {} \;
| const pick = (...props) => o => props.reduce((a, e) => ({ ...a, [e]: o[e] }), {}); |
| ### These next lines were added in the steps above | |
| # pyenv | |
| if command -v pyenv 1>/dev/null 2>&1; then | |
| eval "$(pyenv init -)" | |
| fi | |
| # pipx | |
| export PATH="~/.local/bin:$PATH" |