Skip to content

Instantly share code, notes, and snippets.

Avatar

Maurizio Pillitu maoo

View GitHub Profile
@maoo
maoo / cards-commands.clj
Created Oct 2, 2018
Some clj coding with the Barcelona Clojure Meetup
View cards-commands.clj
(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}
View gist:c29c457123ac5d25bb065f31659b6870
#!/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 / gist:c41d6ebb48af5165812f74d264c14d4e
Last active Apr 7, 2018
Hubspot - Multiple columns in blog listing
View gist:c41d6ebb48af5165812f74d264c14d4e
{% 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 / gentodo.md
Last active Apr 17, 2017
gentodo.md
View gentodo.md
  • Printer and scanner
  • Window Manager (xfce, gnome)
  • Text editor (sublime_text)
  • Browser (chrome)
  • IntelliJ Idea (idea)
  • Shell (terminator)
  • Skype (skype)
  • Keybase (run_keybase)
  • iStat (gnome system monitor)
  • Dropbox (dropbox)
View keybase.md

Keybase proof

I hereby claim:

  • I am maoo on github.
  • I am maoo (https://keybase.io/maoo) on keybase.
  • I have a public key whose fingerprint is 913F D123 23D2 32A2 C7B8 B50E 2A66 4D8C 3D19 7A91

To claim this, I am signing this object:

@maoo
maoo / ssf-icla.md
Created Jul 14, 2016
Symphony Software Foundation ICLA
View ssf-icla.md

The Symphony Software Foundation

Individual Contributor License Agreement (“Agreement”)

Thank you for your interest in The Symphony Software Foundation (the”Foundation”). In order to clarify the intellectual property license granted with Contributions from any person or entity,the Foundation must have a Contributor License Agreement (“CLA”) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Foundation and its users; it does not change your rights to use your own Contributions for any other purpose. If you have not already done so, please complete and sign, then scan and email a pdf file of this Agreement to secretary@symphony.foundation. Alternatively, you may send an original signed Agreement toSymphony Software Foundation,

@maoo
maoo / ssf-ccla.md
Created Jul 14, 2016
Symphony Software Foundation CCLA
View ssf-ccla.md

The Symphony Software Foundation

Corporate Contributor License Agreement (“Agreement”)

By signing below, You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Symphony Software Foundation (the "Foundation"). Except for the licenses granted herein to the Symphony Software Foundation and recipients of software distributed by the Foundation, You reserve all right, title, and interest in and to Your Contributions.

If you have not already done so, please complete and sign, then scan and email a pdf file of this Agreement to secretary@symphony.foundation. Alternatively, you may send an original signed Agreement to Symphony Software Foundation, 1117 California Ave., Palo Alto, CA 94304 USA. Please read this document carefully before signing and keep a copy for your records.

Definitions.

@maoo
maoo / mysql.repo
Created Nov 27, 2015
MySQL Community YUM repo
View mysql.repo
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/$releasever/$basearch/
enabled=1
failovermethod=priority
gpgcheck=1
gpgkey=https://raw.githubusercontent.com/chef-cookbooks/yum-mysql-community/master/files/default/mysql_pubkey.asc
@maoo
maoo / encrypt-md4.py
Last active Aug 29, 2015
Encrypt password for alfresco-global.properties
View encrypt-md4.py
# Taken from http://www.giuseppeurso.eu/en/alfresco-tips-and-tricks-1-reset-the-admin-password/
import sys
import hashlib
if len(sys.argv) > 1:
passwd = sys.argv[1]
print "Encrypting password '%s'" % passwd
passwd.encode('utf-16le')
print "Encryped password is '%s'" % hashlib.new('md4', passwd.encode('utf-16le')).hexdigest()
@maoo
maoo / setup-polipo-with-kitchen-on-osx.md
Last active Nov 19, 2019
Setting up polipo with Kitchen on OSX
View setup-polipo-with-kitchen-on-osx.md

How To setup polipo on OSX

  • Install polipo with brew install polipo

  • Edit your ~/.bashrc or ~/.zshrc and include

$PLIST_FILE=~/opt/homebrew.mxcl.polipo.plist
alias launch-polipo='launchctl load $PLIST_FILE'
alias stop-polipo='launchctl load $PLIST_FILE'