Skip to content

Instantly share code, notes, and snippets.

View DilanLivera's full-sized avatar
💻

Dilan Waduge DilanLivera

💻
View GitHub Profile
@DilanLivera
DilanLivera / readme.md
Created March 15, 2023 00:22
Diagnosis tips
@DilanLivera
DilanLivera / _scan_files_using_doscan_cli.md
Last active April 4, 2023 00:44
Scan files using DoScan CLI (Semantic Endpoint Protection)
@DilanLivera
DilanLivera / visual_studio.md
Created March 10, 2023 04:50
Visual Studio
@DilanLivera
DilanLivera / hosts_file.md
Last active March 9, 2023 23:39
Hosts file

Hosts file

Windows

File location: C:\Windows\System32\drivers\etc

You can use the following command to open the host file.

# VS Code
@DilanLivera
DilanLivera / how_are_notifications_pushed_to_our_devices.md
Last active March 15, 2023 08:44
How are notifications pushed to our devices
@DilanLivera
DilanLivera / how_to_install_prism_cli_as_a_windows_service.md
Created March 6, 2023 04:36
How to install Prism CLI as a Windows service

How to install Prism CLI as a Windows service

This note is regarding how to install Prism CLI as a Windows service. Prism CLI has a mock command which takes an API document and creates a mock server from the API documentation. The mock server will run until the shell windows stay open. By installing Prism CLI as a Windows service, we can keep the service running in the background.

How to install the service

  1. Install NSSM

    > choco install nssm -y
@DilanLivera
DilanLivera / _how_to_set_up_kibana_on_the_local_machine.md
Last active March 22, 2023 03:32
How to set up Kibana on the local machine

How to set up Kibana on the local machine

  • Install Elasticsearch

    Download Elasticsearch from Elastic - Download Elasticsearch. The download page includes the instructions for the installation process. After downloading, unzip the folder and run the elasticsearch.bat file inside the bin folder. To do this, you can open a PowerShell window and go to the Elasticsearch files folder and run bin\elasticsearch.bat. Port 9200 is the default port for Elasticsearch. You can test if Elasticsearch is running by executing Invoke-RestMethod http://localhost:9200 command in PowerShell. This should return some data about the Elasticsearch instance.

  • Install Kibana

Download Kibana from Elastic - Download Kibana. After downloading Kibana, unzip the folder and open the config/kibana.yml file. Goto the elasticsearch.hosts section in the kibana.yml file and uncomment the line. _**elasticsearch.hos

@DilanLivera
DilanLivera / http_and_https.md
Last active March 6, 2023 07:15
HTTP and HTTPS

HTTP and HTTPS