• support[@]kurinchilion.com
  • +1 (888) 666-4252

Steps to update WordPress using the WordPress Command Line Interface (WP-CLI)

Feb 01, 2023 - by kurinchilamp 329 Views
SSH into your server: Connect to your server using SSH and navigate to the root directory of your WordPress installation. Update WP-CLI: Make sure that you have the latest version of WP-CLI installed. You can update it by running the following command: wp cli update. Check WordPress version: Run the following command to check the current version of WordPress installed on your site: wp core version. (more…)
Continue Reading

A shell script to find the memory-consuming processes in Linux

Jan 31, 2023 - by kurinchilamp 367 Views
Bash script #!/bin/bash # Function to sort processes by memory usage function sort_by_memory() { # Get the process information and sort by memory usage ps -eo pid,comm,pmem --sort=-pmem | head } # Call the function to get the list of processes sorted by memory usage sort_by_memory This script uses the ps command to get the process information, including the process ID (pid), the process name (comm), and the percentage of physical memory used by the process (pmem). The information is sorted in descending order by the memory usage (pmem) and the top 10 processes with the highest memory usage are displayed. You can adjust the number of processes displayed by changing the number after the head command in the script.    
Continue Reading

Git message: does not have a commit checked out

Jan 25, 2023 - by kurinchilamp 380 Views
If you have a git repository and a sub-folder inside it with another git repository (.git folder), you will get this message. Have only one .git folder inside the repository for code management.  
Continue Reading

Git: Could not open a connection to your authentication agent

Jan 24, 2023 - by kurinchilamp 310 Views
This message is shown when the ssh-agent is not running. You will need to start the ssh-agent before running the ssh-add command $ eval `ssh-agent -s` $ ssh-add yourkey eval is a built in command that is used to execute the arguments as a shell command Note: in the eval command used, we need to use the backtick and not the single quote.  
Continue Reading

Git: Display log of commits with author name and date in single line

Dec 20, 2022 - by kurinchilamp 315 Views
To display the git logs in a single line, we use the command $ git log --oneline To display git logs in a single line with commit id, author name and date we can use $git log --pretty=format:"%h%x09%an%x09%aI%x09%s" For more variations of the command, you can refer to kernel.org.
Continue Reading

PostgreSQL: uuid_generate fails

Dec 18, 2022 - by kurinchilamp 358 Views
i) If you are using pgadmin or any other psql client, make sure that the path to psql bin directory is correctly set under the client's preference In pgAdmin4, it is File > Preference > Path > Binary Path ii) Execute the below command if the extension is available but is not installed db=# > \c <DATABASE> db=# > CREATE EXTENSION IF NOT EXISTS "uuid-ossp";  
Continue Reading

TECHNOLOGY DEV STACK

Following are some of the technologies that we use to build and maintain solutions for our clients.