How to set JAVA_HOME in Mac OS X High Sierra

This post describes how to configure the JAVA_HOME environment variable required by many enterprise tools, frameworks, and CMSes. For instance, Liferay, Tomcat, etc. will use this variable to work properly. In case you have changed your default shell (Bash) that comes with OS X out-of-the-box, please read How to set JAVA_HOME in Mac OS X High…

How to get the timezone in Ubuntu Linux?

If you are using a GNU/Linux distribution based on Ubuntu the easiest way to get the timezone is by using following command: timedatectl The output should look similar to this: Local time: Tue 2018-07-24 11:27:00 CDT Universal time: Tue 2018-07-24 16:27:00 UTC RTC time: n/a Time zone: America/Mexico_City (CDT, -0500) Network time on: yes NTP…

How to get MySQL time zone?

Under certain circumstances it is relevant to know the timezone in which your date is being stored in a Relational Database System, for example MySQL. One of the easiest ways to know is just by running following command: Step 1. Login to MySQL mysql -u root -p Step 2. Run a “select” query to get…

Getting started with Gulp.js from scratch

Let’s talk and think… So, you are a front-end developer, right? Don’t you think we should optimize our repetitive tasks as much as possible? Well, I have good news for you; nowadays we have a vast amount of tools that make our life easier and happier… you don’t believe me, right? Continue reading then… When…

How to list the Node.js packages that are installed as globals

This is probable one of the simplest commands that NPM has; it is just to get the whole list of packages that we have installed as global. npm -g ls –depth=0 The output should look like this: /usr/local/lib ├── bower@1.5.3 ├── bufferstreams@0.0.2 ├── clean-css@2.1.8 ├── clone@0.1.11 ├── connect@2.24.3 ├── doctoc@0.7.1 ├── event-stream@3.1.2 ├── git-changelog@0.1.1 ├──…

Cleaning the DNS cache

Sometimes when we are working with web projects, we have re-configure the DNS for any reason, so after that, it couldn’t be possible to connect to our page, so this is set of commands for trying to clean the DNS cache in your computer (thanks to @xmz). For Yosemite, run this command in Terminal: sudo discoveryutil…

How to get metadata of images in Mac OSX

Today, one of our clients was having an issue with images on iOS devices, so, the first thing they asked us, was about if the images were in the right format, for answering that, we had to obtain the metadata of every single image and see if the extension matched with the real information. So,…

Useful IBM DB2 commands

When I start to use a new Database Relational System like IBM DB2, first thing I think is “I need to learn how to do this…”, so, in order to answer that question I have written this small article A useful list of IBM DB2 commands in Base22 Knowledge Wiki where you will find a set of commands that I…