Skip to content

Instantly share code, notes, and snippets.

View maoo's full-sized avatar

Maurizio Pillitu maoo

View GitHub Profile
@maoo
maoo / gist:c41d6ebb48af5165812f74d264c14d4e
Last active April 7, 2018 12:06
Hubspot - Multiple columns in blog listing
{% set items = contents|length %}
{# Change '3' with the number of columns you'd like to display #}
{% set itemsPerColumn = items|divide(3) %}
{% for row in contents|batch(itemsPerColumn, ' ') %}
<div class="column span{{ itemsPerColumn }}">
{% for content in row %}
<div class="post-item">
....
</div>
@maoo
maoo / gist:c29c457123ac5d25bb065f31659b6870
Last active September 23, 2018 22:59
Run Gekko on VirtualBox
#!/bin/bash
#1 - Install VirtualBox
#2 - Download and install Centos 7, 64bit - https://www.osboxes.org/centos/
#3 - Add and run this script with sudo: sudo ./install-gekko.sh
cd ~
# Optional, install chromium
# yum install -y epel-release
@maoo
maoo / cards-commands.clj
Created October 2, 2018 21:06
Some clj coding with the Barcelona Clojure Meetup
(def data {:RTDataId "rt-main-values-device",
:CardProjectionType 9,
:Keyword "live-values-items",
:CardProperties [{:Parameter {:Name "Aggregated Strings Availability",
:Unit "%"},
:Value {:Value "99.88", :Date "2018-10-01T00:00:00"},
:Id "id-device:ba986401-c31c-43c7-9065-fc12ee711474:1076",
:TypeKey "8537e625-59cd-537f-93ad-c90b17e32036",
:DisplayName "Aggregated Strings Availability",
:DataSourceId 6871}
@maoo
maoo / soffice.sh
Last active January 3, 2024 16:35
Script to manage soffice service
#!/bin/sh
# Copied from https://gist.github.com/bordin/80aafced80fcb8358c2951baa39c3642 and adapted
# Libre Office
ALF_DATA="/opt/alfresco-community/alf_data"
SOFFICE_PATH="/opt/alfresco-community/libreoffice/program"
SOFFICE_PORT="8100"
SOFFICEBIN=${SOFFICE_PATH}/.soffice.bin
SOFFICEWRAPPER=${SOFFICE_PATH}/soffice.bin
@maoo
maoo / fossa-cli-tests.md
Last active August 28, 2019 13:24
JSON license report with fossa-cli

Creating and running Docker image for fossa-cli

docker pull fossa/fossa-cli:buildtools
docker run -it fossa/fossa-cli:buildtools /bin/bash

Run commands within the container


# Installing JQ for JSON manipulation
@maoo
maoo / finos-meetings.csv
Created February 28, 2019 23:18
finos-meetings.csv
email name organization github id program activity date
rob.underwood@finos.org Rob Underwood FINOS brooklynrob Data Tech Data Tech PMC 2019-01-25
rob.underwood@finos.org Rob Underwood FINOS brooklynrob Data Tech Data Tech PMC 2018-09-28
tosha.ellison@finos.org Tosha Ellison FINOS Data Tech Security Reference Data 2018-12-11
rob.underwood@finos.org Rob Underwood FINOS brooklynrob Data Tech Security Reference Data 2018-12-11
tosha.ellison@finos.org Tosha Ellison FINOS Data Tech Security Reference Data 2019-01-08
maoo@finos.org Maurizio Pillitu FINOS maoo FDC3 FDC3 PMC 2018-10-19
gab@finos.org Gabriele Columbro FINOS mindthegab FDC3 FDC3 PMC 2018-10-19
rob.underwood@finos.org Rob Underwood FINOS brooklynrob FDC3 FDC3 PMC 2018-10-19
maoo@finos.org Maurizio Pillitu FINOS maoo FDC3 FDC3 PMC 2018-11-02
@maoo
maoo / install-alfresco-6-ce.sh
Last active January 19, 2021 14:55
Install Alfresco 6.x CE without Share
###
# DEPRECATED - checkout https://github.com/Alfresco/acs-deployment/tree/master/docker-compose
#
#! /bin/bash
# Alfresco Community 6.x installation script for CentOS 7.x ; mysql-server 5.x is expected to be installed in the box.
# Started from https://community.alfresco.com/community/ecm/blog/2019/02/05/a-script-to-install-alfresco-community-60
# To test with Docker...
~ » rio systemlogs m@maomini
rio-controller | time="2019-05-30T06:06:45Z" level=info msg="Updating CRD clusterissuers.certmanager.k8s.io"
rio-controller | time="2019-05-30T06:06:45Z" level=info msg="Updating CRD clusterbuildtemplates.build.knative.dev"
rio-controller | time="2019-05-30T06:06:45Z" level=info msg="Updating CRD rioinfos.admin.rio.cattle.io"
rio-controller | time="2019-05-30T06:06:45Z" level=info msg="Updating CRD buildtemplates.build.knative.dev"
rio-controller | time="2019-05-30T06:06:45Z" level=info msg="Updating CRD images.caching.internal.knative.dev"
rio-controller | time="2019-05-30T06:06:45Z" level=info msg="Updating CRD apps.rio.cattle.io"
rio-controller | time="2019-05-30T06:06:45Z" level=info msg="Updating CRD externalservices.rio.cattle.io"
rio-controller | time="2019-05-30T06:06:45Z" level=info msg="Updating CRD routers.rio.cattle.io"
rio-controller | time="2019-05-30T06:06:45Z" level=info msg="Updating CRD services.rio.cattle.io"
@maoo
maoo / finos-repo-validation.json
Last active March 24, 2020 18:54
finos-repo-validation.json
[{
"url": "https:\/\/github.com\/finos\/waltz",
"org": "finos",
"repo-name": "waltz",
"ignore": null,
"validations": {
"no-whitesource": true,
"has-admin": true,
"no-readme": false,
"no-teams": false,
@maoo
maoo / finos-landscape.yml
Last active March 28, 2020 03:06
finos-landscape.yml
landscape:
- category: null
name: Plexus
subcategories:
- subcategory: null
name: undefined
items:
- {
item: null,
name: Desktop Interoperability API Project,