Uncategorized

Vmware: GhettoVCB

Posted on

This script was created by William Lam (https://www.virtuallyghetto.com) and is a great tool to backup your VMs with a Script.  Download the Script to your datastore Configure the Shell Create a file with the names of the VMs you want to backup (for example vmbackup) After this run the command ./ghettoVCB.sh -f vmbackup    

Uncategorized

PFSense: Turn off Interface with Script

Posted on

  On our office, we have a USB Stick as a backup for our internet. The problem is that after reviewing the log, every night it consumes about 4gb of data (not sure why).  So, for the time being, I would like to programatically disable the Interface every night and enable it every morning, this […]

Uncategorized

Script to Rotate Backups

Posted on

Delete all files except the ones the first day of the month.  root@DiskStation:/volume1/homes/scripts# find /volume1/NetBackup/Servers/MIA/Asterisk/Admin/Cron/ -type f -mtime +7 ! -name ‘*01-*’ -exec rm -rf {} \;

Uncategorized

SugarCRM: Run Java Script from Custom logic hook

Posted on

    <?php if(!defined(‘sugarEntry’) || !sugarEntry) die(‘Not A Valid Entry Point’); class idempiere_sync { function idempiere_sync(&$bean, $event, $arguments) { require_once(‘log4php/LoggerManager.php’); $JAVA_HOME = “/usr/lib/jvm/java-8-openjdk-amd64”; $PATH = “$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/bin”; putenv(“JAVA_HOME=$JAVA_HOME”); putenv(“PATH=$PATH”); $output = shell_exec(‘/home/Scripts/talend/iDempiere/SugarCRM/CRM_iDempiere/CRM_iDempiere_run.sh’); echo $output; } } ?>

Uncategorized

Pfsense: Automatic Reboot

Posted on

We have a remote pfsense router on a remote location with no employees. On this location we have several critical servers. We used to have a pretty stable internet conection, with our ISP being Comcast (up to 100 mbps download speeds).  Since a couple of months ago, we have been experiencing some problems, first, our […]

Uncategorized

Ubuntu: Resolve out of Memory

Posted on

  Out of memory: Kill process 10356 (mysqld)   This happens because the system is out of memory, you should investigate the reason. It is not necessarily a MySQL problem, there may be a memory leak somewhere else that leaves little memory (ram) to continue working. There are several workarounds to this. The easy way […]

Uncategorized

Ubiquiti: Install UNIFI Video on Ubuntu 16.04

Posted on

https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu   There’s a problem with the server start, so I start it manually.  sudo service unifi start   Get the error:   root@mohe:~# service unifi-video status ● unifi-video.service – LSB: Ubiquiti unifi-video Loaded: loaded (/etc/init.d/unifi-video; bad; vendor preset: enabled) Active: inactive (dead) Docs: man:systemd-sysv-generator(8)     root@mohe:~# service unifi-video status ● unifi-video.service – LSB: […]