Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| import { EditorState, Modifier, SelectionState, ContentBlock } from 'draft-js' | |
| import * as linkifyIt from 'linkify-it' | |
| const linkify = linkifyIt() | |
| // tslint:disable-next-line:no-var-requires | |
| linkify.tlds(require('tlds')) | |
| const findLinks = ( | |
| contentBlock: ContentBlock, | |
| callback: (firstIndex: number, lastIndex: number, href: string) => void | 
| ////// Save as index.js and upload it to Lambda as zip archive with node_modules directory. After: | |
| ////// npm install aws-cloudwatch-chart | |
| ////// npm install request | |
| ////// no need to upload aws-sdk module | |
| ////// Don't forget to change API keys here. | |
| ////// License: MIT | |
| ////// Docs: | 
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes | 
| #!/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |