Skip to content

Instantly share code, notes, and snippets.

VS Keyboard Shortcuts

Add Comment Ctrl + /

Refactor Ctrl + .

Get intellisense Ctrl + Space

Format document Ctrl + K, D

@jonathanbass
jonathanbass / kubectl.md
Created March 6, 2020 13:56
Kubectl Cheat Sheet

Kubectl Cheat Sheet

  • check the current kubectl config:

    kubectl config current-context
    
  • All pods in namespace

    kubectl get pods -n jcb
    
@jonathanbass
jonathanbass / docker.md
Last active January 15, 2021 09:58
Docker Cheat Sheet

Docker Cheat Sheet

  • List all images

    docker images
    
  • Build image from dockerfile with name

    docker build -t flex_ui .
    
@jonathanbass
jonathanbass / app.html
Last active May 19, 2016 11:32
Aurelia 101
<template>
<h1 innerHtml.bind="title"></h1>
<h2>${title}</h2>
<form submit.trigger="addTodo()">
<input type="text" value.bind="newTodo"/>
<input type="submit"/>
</form>
<ul>
<li repeat.for="todo of todos">
<label>${todo.text}</label><input type="checkbox" checked.bind="todo.done" />
@jonathanbass
jonathanbass / index.html
Last active August 25, 2017 07:56
ES6 Example
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ES2015 Examples</title>
<script data-require="jquery@*" data-semver="2.2.0" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
@jonathanbass
jonathanbass / app.html
Last active March 22, 2016 17:04 — forked from jdanyow/app.html
Aurelia To Do Gist
<template>
<form action="submit" submit.trigger="AddTask()">
<h1 style="color:${colour}">${message}</h1>
<input type="text" value.bind="currentTask" focus.bind="hasFocus" />
<button type="submit">Add Task</button>
<div repeat.for="task of tasks">
<button type="button" click.trigger="RemoveTask($index)">X</button> ${task}
</div>
</form>
</template>
@jonathanbass
jonathanbass / index.html
Created March 22, 2016 16:32
Aurelia To Do List
<html>
<head>
<title>Aurelia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body aurelia-app="main">
<h1>Loading...</h1>
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/jspm_packages/system.js"></script>
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/config.js"></script>