Skip to content

Instantly share code, notes, and snippets.

View vheidari's full-sized avatar

Vahid Heidari vheidari

View GitHub Profile
@vheidari
vheidari / bring-back-wifi-icon-in-the-linux-mint.md
Created April 18, 2025 20:14
Bring Back Wi-Fi Icon in the Linux Mint

Wi-fi issue in Linux Mint :(

There is an issue with the Wi-Fi icon in Linux Mint that immediately disappears. If it decides to disappear next time, you can bring it back with this command in Linux.

nm-applet &
@vheidari
vheidari / Upgrade-HP-printer-driver.md
Created March 25, 2025 11:17
Upgrade your HP printer driver on a linux machine, specialy if this driver not work properly on your machine.

HP Printer and Linux Mint 22 (VERSION="22 (Wilma)") Driver

If you have installed an old version of the HPLIP driver on your Linux system and it's not working with your new Linux version, I had a similar problem on my Linux Mint 22 (Wilma).

The older version of HPLIP did not work for me. Recently, I checked the official HPLIP page, and fortunately, the new version supports my Linux Mint 22 (Wilma). You can check it on the page below:

https://developers.hp.com/hp-linux-imaging-and-printing/install
@vheidari
vheidari / how-to-find-google-chrome-extesion-and-backup-them.md
Last active June 21, 2024 21:41
In this little MD I explain where should find google chrome installed extensions and how we could backup them :)

How To Back up Google Chorom extensions in your linux :

To back up an extension of Google Chrome in Linux, you should follow these instructions:

cd ~/.config/google-chrome/[$ProfileName or $ProfileId]/Extensions/

tar -cf [$ExtensionId].tar ./[$ExtensionId]

mv ./[$ExtensionId].tar ~/Download
@vheidari
vheidari / howToUsePatchUtility.md
Last active June 4, 2024 15:16
In this tutorial I try to explain how patch utility could help us during development , fixing a bug or etc

What is patch and how we could take its advantage to our code ?

Unix-based systems carry a lot of useful tool. actually they made them to help us improve our productivity. patch is one of useful tool that help programer update a existing codebase.

Note

A patch is a file that contains the differences between two sets of code or files. It is used to update an existing codebase by applying changes without rewriting the entire code. The patch utility is a useful tool for programmers to apply updates to codebases.

When we work on a existing codebase we might update and do some change to it to fix a bug then we can use patch utility to add update to codebase. I try to explain its advantage with an example like this :

An example

@vheidari
vheidari / how-to-handel-multiple-version-of-devtool-in-linux.md
Last active December 17, 2023 23:48
If you have any problem to manage multiple version of development tools on your machine I recommend read this little MD to end.

Handling multiple version of CMake , Clang, Python or etc on your Linux system by symbolic link

In this presentation we will learn how to manage multiple version of development tools inside a linux machine.

I have three different versions of clang

version :
    - clang-12
    - clang-14
  • clang-15
@vheidari
vheidari / a-quick-guide-to-learn-adb.md
Last active August 11, 2024 06:36
If you need to learn how to use ADB this quick guide help you to learn how you can use it.

A quick tour inside your Android smatrphone with ADB

In this quick guide, we will learn what ADB (Android Debug Bridge) is and explore its options through a simple example. it should provid enough to understanding of how it works ;)

If you aren't familiar with it, this tool allows us to explore the inner workings of our Android smartphone, like a hacker (not literally, of course), without requiring root access. it enable various task such as installing and debugging applications, transferring files, and executing shell commands on the device.

How to install and use it ?

To install ADB tools, we have two approaches that you can choose from and follow through.

Install ADB through APT/Manually

What is ES6 standard, and how we could use it inside React

ES6 stands for ESCIMASCript 2015. in this standard we got some features that added to javascrip. there is a list of ES6 feature that React support them. in folow we familiar with them.

Class

// Base Class defination
//-----------------------------------------------------
class Car {
    
    constructor(name, type, model, color) {
@vheidari
vheidari / compiling-jakt-programing-language.md
Last active July 17, 2023 00:35
Lets compile Jakt programing language compiler on the Linux

Lets compile Jakt programing language compiler on the Linux

Okey, today we work with Jakt.What is Jakt ? this is your answerd -> Jakt is a memory-safe systems programming language.it develop and maintain by Serenity OS team and today we would like to compile it and use it.

Who are the project maintainers?

The project maintainers at this time (Wed 10 May 2023 01:30:45 PM) are :

- @awesomekling, 
- @jntrnr, 
- @linusg,
  • @alimpfard,
@vheidari
vheidari / DLINK-ADSL-Modem-Firmware.md
Last active May 9, 2023 19:05
How to reverse engineering a D'LINK ADSL Modem Firmware - First version [Alpha] [maybe we have some english issues]
@vheidari
vheidari / Puppeteer.md
Last active May 9, 2023 16:41
Let's learn Puppeteer with some example :)

Puppeteer

In this article I wanna introduce Puppeteer as a tools that help us to do something cool like Web Scraping or Automation some task. Puppeteer helps developer up and run a google chromium browser throught command line tools this google chromium is headless browser that acting like real world browser. Puppeteer Api helps developer to do anyting that a user could do with it's browser. for example :

  • we could open and new page or new tab
  • we could select any element from DOM with it's api
  • we could typing and selection input element and manipulate them value
  • we could select a button and click on it
  • we could create a pdf from current page that
  • we could create a screenshot from current page
  • ...