Alt + f/b - Move cursor to previous/next word
Ctrl + a/e - Move cursor to beginning/end of command
Ctrl + xx - Toggle between the start of line and current cursor position
| import * as cdk from "@aws-cdk/core"; | |
| import * as wafv2 from "@aws-cdk/aws-wafv2"; | |
| // This extends the base cdk stack properties to include a tag name input. | |
| export interface StackProps extends cdk.StackProps { | |
| tag: string; | |
| applicationName?: string; | |
| } | |
| export class WAFStack extends cdk.Stack { |
| # Source: https://gist.github.com/ed8ad113fff4322ef309198d5455687f | |
| ############################################################################################## | |
| # Full App Lifecycle In Kubernetes With Argo CD, DevSpace, vCluster, k3d, and GitHub Actions # | |
| # https://youtu.be/uU-EAQ8Vbvk # | |
| ############################################################################################## | |
| # Referenced videos: | |
| # - How To Create Virtual Kubernetes Clusters With vcluster By loft: https://youtu.be/JqBjpvp268Y | |
| # - DevSpace - Development Environments in Kubernetes: https://youtu.be/nQly_CEjJc4 |
| #!/bin/bash | |
| ### | |
| ### my-script — does one thing well | |
| ### | |
| ### Usage: | |
| ### my-script <input> <output> | |
| ### | |
| ### Options: | |
| ### <input> Input file to read. | |
| ### <output> Output file to write. Use '-' for stdout. |
Motion, keyboard commands and shortcuts for VI Improved
| Map | Action |
|---|---|
| <F1> | Causes Netrw to issue help |
| <cr> | Netrw will enter the directory or read the file |
| <del> | Netrw will attempt to remove the file/directory |
| - | Makes Netrw go up one directory |
| a | Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide) |
| c | Make browsing directory the current directory |
| C | Setting the editing window |
| d | Make a directory |
| # best practice: linux | |
| nano ~/.pgpass | |
| *:5432:*:username:password | |
| chmod 0600 ~/.pgpass | |
| # best practice: windows | |
| edit %APPDATA%\postgresql\pgpass.conf | |
| *:5432:*:username:password | |
| # linux |
| # Create a promise: | |
| myCoolPromise = new Promise (resolve, reject) -> | |
| # do a thing | |
| success = true | |
| if success | |
| resolve 'stuff worked' | |
| else | |
| reject Error 'it broke' |
| var express = require('express'), | |
| http = require('http'), | |
| redis = require('redis'); | |
| var app = express(); | |
| var client = redis.createClient('6379', 'localhost'); | |
| app.get('/', function(req, res, next) { | |
| client.incr('counter', function(err, counter) { |