Skip to content

Instantly share code, notes, and snippets.

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
1. create repo to bitbucket.
2. Enable pipeline from repo settings.
3. create 2 files to current repo. (bitbucket-pipelines.yml and execute.sh)
4. Now commit any push to local pc and you can navigate to pipeline page to repo.
Create repo pipeline environment variables to repository settings.
******************************************************************
1. DEPLOY_USER_J -> write server username for login
root
Error:
dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.
Errors we re encountered while processing: mysql-server-8.0 mysql-server E: Sub-process /usr/bin/dpkg returned an error code
Step to encount the error:
1. sudo apt-get clean
2. sudo apt-get purge mysql*
3. sudo apt-get updateYou10:58
4. sudo apt-get purge mysql*
1. **************************************** Import CSV *************************************
public static function importCsv()
{
$file = public_path('file/test.csv');
$customerArr = $this->csvToArray($file);
echo "<pre>";
for ($i = 0; $i < count($customerArr); $i ++){
print_r($customerArr[$i]);
0. Import this to controller
use Intervention\Image\ImageManagerStatic as Image;
use Storage;
use File;
1. Use this function to convert to specific ratio
// path like /var/www/html/testproject/storage/app/public/item_images/64c100497075c4c6c1075b89
// filename - jatin.png
// $width, $height - pass to required size
// $maintain_ratio - same image size is require or not - other wise it will give $height * $image