Skip to content

Instantly share code, notes, and snippets.

Enrico Simonetti esimonetti

Block or report user

Report or block esimonetti

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
esimonetti /
Created Sep 25, 2018 — forked from bastman/
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
esimonetti /
Created May 3, 2018 — forked from adrienbrault/
Script to reduce VM size before packaging for vagrant
# Credits to:
# -
# -
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
esimonetti / FakeLinkApi.php
Created Aug 24, 2017 — forked from elchele/FakeLinkApi.php
Customization for pulling external/ad-hoc data into a Sugar subpanel
View FakeLinkApi.php
/* File: ./custom/clients/base/api/FakeLinkApi.php */
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class FakeLinkApi extends SugarApi {
public function registerApiRest() {
return array(
'filterRelatedRecords' => array(
esimonetti / TidewaysProf.php
Last active Feb 20, 2019
POC of Tideways profiling extension for Sugar on PHP 7.1
View TidewaysProf.php
// Enrico Simonetti
// Original work:
// 2017-07-31 on Sugar with PHP 7.1
// filename: custom/include/SugarXHprof/TidewaysProf.php
esimonetti / SugarCronFilteredJobs.php
Created May 2, 2017 — forked from jhoffmann/SugarCronFilteredJobs.php
Both files go into custom/include/SugarQueue, then run a Repair to regenerate cache/file_map.php and you're good to go.
View SugarCronFilteredJobs.php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
require_once 'include/SugarQueue/SugarCronJobs.php';
require_once 'custom/include/SugarQueue/SugarJobFilteredQueue.php';
// Sample configuration:
You can’t perform that action at this time.