Skip to content

Instantly share code, notes, and snippets.

View maoo's full-sized avatar

Maurizio Pillitu maoo

View GitHub Profile
mvn -Dmaven.repo.local=/tmp/m2repo package
git clean -dxn > dry run, shows what to remove
git clean -dxf > do it
find . -name "*.jar" -exec sh -c 'jar -tf {}|grep -H --label {} 'NodeService.class'' \;
@maoo
maoo / setup-polipo-with-kitchen-on-osx.md
Last active November 19, 2019 18:34
Setting up polipo with Kitchen on OSX

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'
@maoo
maoo / encrypt-md4.py
Last active August 29, 2015 14:26
Encrypt password for alfresco-global.properties
# 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 / mysql.repo
Created November 27, 2015 08:46
MySQL Community YUM 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 / ssf-ccla.md
Created July 14, 2016 09:46
Symphony Software Foundation CCLA

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 / ssf-icla.md
Created July 14, 2016 09:47
Symphony Software Foundation ICLA

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 / keybase.md
Created August 4, 2016 11:14
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 / gentodo.md
Last active April 17, 2017 02:04
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)