Skip to content

Instantly share code, notes, and snippets.

View genuinefafa's full-sized avatar
🎯
Focusing

Facundo Donato genuinefafa

🎯
Focusing
View GitHub Profile
@genuinefafa
genuinefafa / LICENSE
Last active November 1, 2026 14:55
relevar.py — qué imágenes de Docker de terceros tienen versión nueva: compara lo que corre contra los registries, avisa por Telegram y arma una página. No actualiza nada.
MIT License
Copyright (c) 2026 genuinefafa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@genuinefafa
genuinefafa / jenkins_delete_builds.groovy
Created June 9, 2018 02:28 — forked from pkouman/jenkins_delete_builds.groovy
Jenkins - Delete old builds script
MAX_BUILDS = 10 // max builds to keep
def jobs = Jenkins.instance.items;
for (job in jobs) {
println "Job: " + job.name
def recent = job.builds.limit(MAX_BUILDS)
println "Recent Builds: " + recent
println "============================="
for (build in job.builds) {
@genuinefafa
genuinefafa / rest-client-crud.resource.ts
Created July 25, 2017 16:04
based on the example from Jonathan Serra using ngx-resource as of "^3.2.4"
// based on http://blog.slals.net/programming/2017/01/12/angular2-a-rest-client-interface.html
import { Http, Request } from '@angular/http';
import { ResourceCRUD, ResourceActionBase } from 'ngx-resource';
import { Observable } from 'rxjs/Observable';
import { Subscriber } from 'rxjs/Subscriber';
export class RestClientCRUD<TQuery, TShort, TFull> extends ResourceCRUD<TQuery, TShort, TFull> {
$getHeaders(methodOptions?: any): any {
import { Directive, ElementRef, Renderer2, HostListener, Input } from '@angular/core';
import { OnDestroy, AfterContentInit } from '@angular/core';
@Directive({
selector: '[appAnchoEnFoco]'
})
export class AnchoEnFocoDirective implements OnDestroy, AfterContentInit {
private _focused = false;
private _listenFocus;
@genuinefafa
genuinefafa / ng2-semantic-ui.es.ts
Last active June 30, 2017 14:28
ng2-semantic-i18n
const esES:ILocaleValues = {
datepicker: {
months: [
"Enero", "Febrero", "Marzo", "Abril",
"Mayo", "Junio", "Julio", "Agosto",
"Septiembre", "Octubre", "Noviembre", "Diciembre"
],
monthsShort: [
"Ene", "Feb", "Mar", "Abr",
"May", "Jun", "Jul", "Ago",
import { Component, AfterViewInit, ViewChild, TemplateRef } from "@angular/core";
import { SuiLocalizationService } from "../../../../../src/util/services/localization.service";
@Component({
selector: "demo-page-test",
templateUrl: "./test.page.html"
})
export class TestPage {
public date:Date = new Date();