Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
############################################################################### | |
# Helpful Docker commands and code snippets | |
############################################################################### | |
### CONTAINERS ### | |
docker stop $(docker ps -a -q) #stop ALL containers | |
docker rm -f $(docker ps -a -q) # remove ALL containers | |
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
# exec into container |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
# ASP.NET Core | |
# Build and test ASP.NET Core projects targeting .NET Core. | |
# Add steps that run tests, create a NuGet package, deploy, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core | |
pool: | |
vmImage: 'Ubuntu 16.04' | |
variables: | |
buildConfiguration: 'Release' |
The "set" lines These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing. With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
set -euo pipefail is short for:
set -e
set -u
# GET VERSION | |
npm -v (or --version) | |
# GET HELP | |
npm help | |
npm | |
# CREATE PACKAGE.JSON | |
npm init | |
npm init -y (or --yes) |
Shortcut | Expanded | Description | Flutter Docs |
---|---|---|---|
alertDialog |
Alert Dialog | Creates a showDialog that returns with AlertDialog | View Docs |
animatedBldr |
Animated Builder | Creates an Animated Builder. The child widget is passed to the builder | View Docs |
aspectRatio |
AspectRatio | Creates an AspectRatio | View Docs |
build |
Build Method | Describes the part of the user interface represented by the widget. | |
column |
Column | Creates a Column Widget | View Docs |
container |
Container | Creates a Container Widget | View Docs |
customClipper |
Custom Clipper | Used for creating custom shapes | [View Docs](https://api.flutter. |
//The global script scope | |
def ctx = context(scope: scriptScope()) | |
//What things can be on the script scope | |
contributor(ctx) { | |
method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable') | |
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder') | |
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder') | |
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar') |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#!/bin/bash | |
export AnException=100 | |
export AnotherException=101 | |
# start with a try | |
try | |
( # open a subshell !!! | |
echo "do something" | |
[ someErrorCondition ] && throw $AnException |