Skip to content

Instantly share code, notes, and snippets.

View jack2jm's full-sized avatar

Jatin Mandanka jack2jm

View GitHub Profile
Ubuntu
*************************
If driver not found error then
-> If php version is 8.2, else you can change 8.2 to your preffered php version on server
-> Run below command.
sudo apt install php8.2-dev
sudo update-alternatives --set php /usr/bin/php8.2
sudo update-alternatives --set php-config /usr/bin/php-config8.2
sudo update-alternatives --set phpize /usr/bin/phpize8.2
sudo pecl install -f sqlsrv
Link - https://chatgpt.com/share/986db3e4-ec79-473e-a749-ee9e359b1f8f
-------
How to set up and run your Node.js application on an Ubuntu server using Apache and NVM, follow these steps:
1. Install NVM (Node Version Manager)
1.1 Install bash:
-------
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
1.2 Source NVM:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link href="https://unpkg.com/[email protected]/dist/video-js.min.css" rel="stylesheet">
<link href="https://unpkg.com/videojs-record/dist/css/videojs.record.min.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/video.min.js"></script>
Reference Link (https://medium.com/how-to-react/setup-multilingual-in-react-js-using-i18n-module-33b1bfbb57cd)
-------
1. Installation
npm install react-i18next i18next
npm i18next-browser-languagedetector //this is for autometic browser lang detactor
2. Create i18n.js file inside src.
** file code below attached.
3. now create a locales directory inside the src directory. Here we will keep our translation files in JSON format.
So after creating the directory create en and hn directory inside locales directory and then create translation.json file in
each directory.
@jack2jm
jack2jm / README.md
Created April 3, 2024 03:54 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

Ref Link:
https://jwt-auth.readthedocs.io/en/docs/laravel-installation/
https://medium.com/@online-web-tutor/laravel-10-restful-apis-with-jwt-authentication-tutorial-9f5345e3cce6
Add JWT Auth
======================================================
=> composer require tymon/jwt-auth
=> Add below in your app.php file from /config folder.
'providers' => [
...
Full Doc to learn react
--------------------------------
https://docs.google.com/document/d/1xlMUk6OMMF42X3w1ZG94BnKcmbGI7f5FoF1kCyCBC9Q/edit?usp=sharing
Installations + SSL React
https://medium.com/@poudel.01anuj/deploying-reactjs-project-on-the-linux-server-with-ssl-certificate-https-aa14bf2737aa
--------------------------------
In react js you can store&use enviorment variable
- Create .env file in root of project

Important Gists


Laravel

1.JWT Auth Laravel10 - email/phone
    https://gist.github.com/jack2jm/21b13f96ceec49694967477ecae61334
2.Laravel setup into windows server
Hello Everyone!
I will teach you that "How to Install XAMPP on windows (7/8/8.1/10) and
make it completely secured". Also "How to install SSL Certificates on multiple virtual hosts (vhosts) Free".
And also in this video you will find a lots of XAMPP Errors solutions. Follow the steps given below:
1). Download and Install XAMPP. (Latest Version)
Search Xampp and Run as administrator.
Click on Service tab -> Apache and Mysql -> it will install both service.
Then you can start APache and Mysql
@jack2jm
jack2jm / Setup Laravel Project in windows server
Last active May 27, 2024 06:55 — forked from Bhavya8181/Setup Laravel Project in windows server
setup & install require packege for setup laravel project in windows server iis
Ref Link
======================
Free SSL windows
https://gist.github.com/jack2jm/0aebaea31f467581e0bc7b599a485a0a
youtube video
https://www.youtube.com/watch?v=YMMFfAad3y8
https://www.youtube.com/watch?v=1p985k-sGoc
Enable IIS windows
https://help.claris.com/en/server-installation-configuration-guide/content/enabling-iis-windows.html
Add CGI module