Skip to content

Instantly share code, notes, and snippets.

View vcarmen's full-sized avatar

Carmen vcarmen

View GitHub Profile
@rcbop
rcbop / docker-cleanup.groovy
Last active January 9, 2024 20:40
Jenkins pipeline script for Docker cleanup (remove dangling images and exited containers) in a given build agent
node("${params.BUILD_AGENT}") {
stage('Dangling Containers') {
sh 'docker ps -q -f status=exited | xargs --no-run-if-empty docker rm'
}
stage('Dangling Images') {
sh 'docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi'
}
@juliosguz
juliosguz / generic-routing.module.ts
Last active March 12, 2018 22:53
NativeScript Angular snippets
import { NgModule } from "@angular/core";
import { Routes } from "@angular/router";
import { NativeScriptRouterModule } from "nativescript-angular/router";
const routes: Routes = [];
@NgModule({
imports: [NativeScriptRouterModule.forChild(routes)],
exports: [NativeScriptRouterModule]
})