Skip to content

Instantly share code, notes, and snippets.

@reneolivo
reneolivo / readme.md
Last active August 28, 2018 00:33
CiviHR's Model Factory

CiviHR's Model Factory proposal

Overview

The current structure for models, instances, and apis offer a way to access and manipulate CiviHR's data while separating each responsibility into clear distinctive units.

Unfortunately, current implementations have a lack of cohesion, different services implement the same methods with slight variations, lack of inheritance, spec files repeat the same tests, and instance services are created without a purpose, just to follow the convention.

This document will address these issues and propose solutions for them.

@reneolivo
reneolivo / README.md
Last active December 27, 2018 18:36
FE Journal
@reneolivo
reneolivo / index.js
Created June 22, 2020 23:24
List and Update Drupal Modules
const glob = require('glob');
const { readdirSync, createReadStream } = require('fs');
const { createInterface } = require('readline');
const { execSync } = require('child_process');
// 1) - For listing all modules and their versions:
// (async () => console.table(await getModulesList()))();
// 2) - For updating modules one by one:
@reneolivo
reneolivo / README.md
Created April 15, 2021 11:40
CiviCRM Extension Downloader

Usage

download-extension uk.co.compucorp.civicase https://github.com/compucorp/uk.co.compucorp.civicase/archive/1.14.0.zip