Skip to content

Instantly share code, notes, and snippets.

View jack2jm's full-sized avatar

Jatin Mandanka jack2jm

View GitHub Profile
<!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/video.js@8.10.0/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/video.js@8.10.0/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
How to set-up your Google reCAPTCHA account?
Before you can use reCAPTCHA, you need to set-up an account.
Once you have your account, you need to add your website domain and obtain a site key and a secret key.
Step 1. Go to the "Admin" page (click the admin button on the top right of the page).
Step 2. Click on the + (plus) symbol on the top bar to create a new site
Step 3. Add a label, for example, add your domain name.
Step 4. Pick the reCAPTCHA type. Pick 'reCAPTCHA v3'.
Step 5. Enter your website domain name
Here are basic steps to integrate Bitbucket pipeline - where project is already setuped to server.
*********Here is test to yml validtor - https://bitbucket-pipelines.atlassian.io/validator
Create varibles into bitbucket repo settings
*************************************************
REPO_ORIGIN_URL -> url to git pull with username and password
https://username:token@bitbucket.org/workspace/projectreponame.git
DEPLOY_USER_J -> server username