Categories
Technical

MACOS – How to reset PATH ?

Default PATH David Raleche

 PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/:~/.composer/vendor/bin

Basic and Essential PATH

PATH=/usr/bin:/bin:/usr/sbin:/sbin
export PATH

Categories
Technical

Google-Fi ! $35/month for 2 people !

Click here to have more info about the google-Fi https://g.co/fi/r/UE5V06

Categories
Technical

HTOP – new Linux Command

HTOP

This a new Linux command that allow to monitor different processes

htop is an interactive system-monitor process-viewer and process-manager. It is designed as an alternative to the Unix program top. It shows a frequently updated list of the processes running on a computer, normally ordered by the amount of CPU usage.

Categories
Apache

How to import Jmeter test to Blazemeter ?

To import Jmeter collection test to Blazemeter

  1. Go to Jmeter
  2. Go to File => Save test Plan As
  1. Import the file to Blazemeter (Upload script)
Categories
Apache

How to see logstash status ?

Find below how to check the status of the logstash service

service logstash status

What is logstash ?

Logstash is a free and open server-side data processing pipeline that ingests data from a multitude of sources, transforms it, and then sends it to your favorite “stash.”

Categories
Apache

JMeter – How to add random UUID in the POST body data ?

For POST request, I used the following Jmeter function

  • __UUID() – which returns an unique GUID structure
{
    "project": {
        "uuid": "${__UUID()}"
    }
}
Categories
Programming

How fix Jmeter on a Mac ? Could not initialize class org.apache.jmeter.gui.util.FileDialoger

If you are facing the following error

2021-07-14 11:31:46.861 java[1419:13909] JavaNativeFoundation: GetGlobalVM: Failed to locate @rpath/libjvm.dylib for JNI_GetCreatedJavaVMs(). A JVM must be loaded before calling this function.

2021-07-14 11:31:46.979 java[1419:13909] JavaNativeFoundation: GetGlobalVM: Failed to locate @rpath/libjvm.dylib for JNI_GetCreatedJavaVMs(). A JVM must be loaded before calling this function.

Uncaught Exception java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0x157632c9) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0x157632c9 in thread Thread[AWT-EventQueue-0,6,main]. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger in thread 
Thread[AWT-EventQueue-0,6,main]. See log file for details.

The problem is that the team Dracula is failing

Solution is right below to change it to System

Jmeter => Look and Feel => System

Categories
Apache Technical

How to install Jmeter on a macBook ?

Here is the command line used to install Jmeter on my macbook

brew install jmeter

and here is how to open Jmeter

jemter

Categories
Laravel

How to fix Laravel – Declaration of OM\Db::query(string $statement) must be compatible with PDO::query ?

#1 – Remove from composer Json the similar line

“doctrine/dbal”: “^2.10”,

#2 – Run

composer upgrade

#3 – Run

composer update

#4 – Voila ! The error should be fixed !

Categories
General

PHPStorm – How to fix declaration Not Found ?

I found 3 solutions to this problem

Solution one


-> go to phpStorm->preferences

then select PHP and add your workingspace path into the include path

Solution 2

Got to file->invalidate Caches and choose the option that fits you need

Solution 3 (optional)

Do not forget to get latest file from you git or FTP repository