Skip to content

Instantly share code, notes, and snippets.

View edco29's full-sized avatar
🏠
Working from home

Edwin Contreras edco29

🏠
Working from home
View GitHub Profile
@edco29
edco29 / pipeline.gdsl
Created October 9, 2020 01:48 — forked from ggarcia24/pipeline.gdsl
GDSL supporting pipeline declarative
//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')

Generic

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.
@edco29
edco29 / npmcrashcourse.txt
Created August 21, 2020 18:29 — forked from bradtraversy/npmcrashcourse.txt
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)
@edco29
edco29 / bash_strict_mode.md
Created August 21, 2020 17:35 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o pipefail explanation

set -e, -u, -o pipefail

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
@edco29
edco29 / azure-pipelines.yml
Created July 7, 2020 03:04 — forked from Damovisa/azure-pipelines.yml
Azure Pipelines YML for ASP.NET Core
# 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'
@edco29
edco29 / kubernetes_commands.md
Created April 11, 2020 00:27 — forked from edsiper/kubernetes_commands.md
Kubernetes Useful Commands
@edco29
edco29 / helpful-docker-commands.sh
Created February 28, 2020 03:22 — forked from garystafford/helpful-docker-commands.sh
My list of helpful docker commands
###############################################################################
# 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