Skip to content

Instantly share code, notes, and snippets.

Arno Moonen itavero

Block or report user

Report or block itavero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
itavero /
Last active Nov 22, 2018
Generic serializer / marshaller / unserializer / unmarshaller class to convert objects into strings and vice versa. Uses the JAXB lib. Personally used this class for converting messages received/sent to a queue (JMS).
* Copyright (c) 2013, Arno Moonen <>
* 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:
itavero /
Last active Dec 14, 2015
Bash script to export the current branch/rev of a Git repository as a ZIP archive.
# Easy Git Export Command
# Copyright (C) 2013, Arno Moonen <>
# Example usage (from within a Git repository, when using the alias):
# git-export ~/Desktop
# -> Creates the exported archive on your desktop.
# git-export
# -> Creates the exported archive one level up in your path.
itavero / amnl.simple.crypt.php
Created Jul 2, 2012
Easy way to encrypt stuff, just to make it less visible for the end-user. It's not really secure or anything.
View amnl.simple.crypt.php
* Easy way to encrypt / decrypt a string. Notice that this is NOT
* a very secure encryption. But you can use it to make stuff less
* visible for the end user.
* (c) Arno Moonen <>
* @author Arno Moonen <>
itavero / form_div_layout.html.twig
Created May 9, 2012
Workaround for the "Unable to choose translation" problem when using the Form component, Validation component, Translation component and Twig. (keywords: Symfony, Silex)
View form_div_layout.html.twig
{% extends 'Form/form_div_layout.html.twig' %}
Extends from Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
Overrides the form_errors block so it no longer uses transchoice (which
was causing a problem).
{% block form_errors %}
{% spaceless %}
itavero / am_get_real_ip.php
Created Dec 23, 2011
Get the real IP address of the client and optionally also the one from the proxy server.
View am_get_real_ip.php
* Get the IP address of the client.
* @author Arno Moonen <>
* @version 0.1-201112231035
* @param boolean $get_all Set to true to get an array containing all the IP addresses found.
* @return mixed Depending on the value of $get_all the return value will be either a string or an array
You can’t perform that action at this time.