We are going to explain how to install and use Time zones with MariaDB on Ubuntu. Install on Ubuntu Convert to sql and import to MariaDB Time zone data are in /usr/share/zoneinfo and is found as binaries. To use Time zones with MariaDB we need to convert to sql. Now we have the zoneinfo.sql file […]
How to reset your root password in MariaDB?
1. The first thing to do is to stop MariaDB server 2. Start MariaDB without asking for a password 3. Connect from localhost to your server as root 4. Reload the grant tables 5. Change the root password for a new one So the password has been changed. 6. Stop the manual instance of the […]
Programming principles
Any fool can write code that a computer can understand. Good programmers write code that humans can understand. Martin Fowler, 2008 Bad code comes in many ways. Variables that don’t make sense or inconsistent naming, messy code, massive if-else chains, illegible formatting, hard to mantain, lack of tests, low cohesion, high coupling… If you want to be a programmer, don’t settle for shortcuts […]
Current date and time in bash script
In Linux shell script you can use date command to get the current Date and time.This command is part of the Linux coreutils package. Basic date command uses Formatted date output For more information about date command you can see man pages.
Wildfly 10 https redirection
In Wildfly server can we redirect request from http to https through the undertow subsystem (standalone.xml or domain.xml). In standalone.xml or domain.xml files To do this redirection we need to create a filter to rewrite url. Once the filter is created, create the filter reference to configure a predicate that decides when the filter will […]
- development
- ...
Maven behind a proxy
1. Proxy configuration To configure basic proxy in maven we have to edit the file settings.xml in our ‘<user_home>/.m2’ directory. If there is no file, we can copy it from the global settings folder ‘<maven_home>/conf’. We can define an <id> to the proxy to change between proxies, and deactivate our original entry by setting <active> […]
HTTPS Redirection
In Apache In your Apache server and go to the conf folder and take a backup of httpd.conf file. Open httpd.conf using your favourite editor. Ensure mod_rewrite.so module is loaded. LoadModule rewrite_module modules/mod_rewrite.so If you see above line is commented then uncomment it. Add the following at the end of the file. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Restart […]
Linux environment variables
You can use any one of the following command to display environment variables and their values using bash shell. printenv print all or part of environment variables env print all exported environment or run a program in a modified environment set print the name and value of each shell variable export to set environment variables […]
¡Hola mundo!
Bienvenido a WordPress. Esta es tu primera entrada. Edítala o bórrala, ¡y comienza a escribir!