Skip to content

Instantly share code, notes, and snippets.

View RajeshPatadiya's full-sized avatar
🏠
Node Exposition

Rajesh Patadiya RajeshPatadiya

🏠
Node Exposition
View GitHub Profile
@RajeshPatadiya
RajeshPatadiya / vmwk17key.txt
Created April 11, 2023 06:33 — forked from PurpleVibe32/vmwk17key.txt
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
*No spam just license key
@RajeshPatadiya
RajeshPatadiya / nearby-coordinates.sql
Created March 17, 2023 14:03 — forked from statickidz/nearby-coordinates.sql
Ordering with SQL by nearest latitude & longitude coordinates (MySQL & SQLite)
---
METHOD 1
This should roughly sort the items on distance in MySQL, and should work in SQLite.
If you need to sort them preciser, you could try using the Pythagorean theorem (a^2 + b^2 = c^2) to get the exact distance.
---
SELECT *
FROM table
ORDER BY ((lat-$user_lat)*(lat-$user_lat)) + ((lng - $user_lng)*(lng - $user_lng)) ASC
@RajeshPatadiya
RajeshPatadiya / phpstorm_evaluation_license_reset.md
Created August 3, 2022 09:19 — forked from Gyvastis/phpstorm_evaluation_license_reset.md
PhpStorm reset evaluation license/period

PhpStorm reset evaluation license/period

Make sure to export/import your settings through File -> Manage IDE settings before/after

Windows 10

  1. Close PHPStorm
  2. Run these in PowerShell to remove PhpStorm configuration:
Remove-Item '.\AppData\Local\Jetbrains\PhpStorm*'
Remove-Item '.\AppData\Roaming\Jetbrains\PhpStorm*'
@RajeshPatadiya
RajeshPatadiya / hosts
Created August 3, 2022 09:01 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@RajeshPatadiya
RajeshPatadiya / double_metaphone.sql
Created February 27, 2022 04:44 — forked from ano/double_metaphone.sql
MySQL UDF Double Metaphone Function
-- This SQL implements the Double Metaphone algorythm (c) 1998, 1999 by Lawrence Philips
-- it was translated to Python, and then to SQL from the C source written by Kevin Atkinson (http://aspell.net/metaphone/)
-- By Andrew Collins (atomodo.com) - Feb, 2007 who claims no rights to this work
-- github.com/AtomBoy/double-metaphone
-- Tested with MySQL 5.1 on Ubuntu 6.01 and Ubuntu 10.4
-- Updated Nov 27, 2007 to fix a bug in the 'CC' section
-- Updated Jun 01, 2010 to fix a bug in the 'Z' section - thanks Nils Johnsson!
-- Updated Jun 25, 2010 to fix 16 signifigant bugs - thanks again Nils Johnsson for a spectacular
-- bug squashing effort. There were many cases where this function wouldn't give the same output
-- as the original C source that were fixed by his careful attention and excellent communication.
@RajeshPatadiya
RajeshPatadiya / sharing_session.html
Created February 2, 2022 07:10 — forked from aalfiann/sharing_session.html
Sharing sessionStorage between tabs for secure multi-tab authentication
<!DOCTYPE html>
<html>
<head>
<title>Sharing sessionStorage between tabs for secure multi-tab authentication</title>
</head>
<body>
<h3><a href=''>sessionStorage</a></h3>
<h3 id="stData"></h3>
<button id="btnSet">Set session storage</button>
@RajeshPatadiya
RajeshPatadiya / aws-multipartUpload.js
Created June 21, 2021 06:15 — forked from sevastos/aws-multipartUpload.js
Example AWS S3 Multipart Upload with aws-sdk for Node.js - Retries to upload failing parts
// Based on Glacier's example: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/examples.html#Amazon_Glacier__Multi-part_Upload
var fs = require('fs');
var AWS = require('aws-sdk');
AWS.config.loadFromPath('./aws-config.json');
var s3 = new AWS.S3();
// File
var fileName = '5.pdf';
var filePath = './' + fileName;
var fileKey = fileName;
S3
simple research:
https://artisansweb.net/upload-file-s3-using-laravel-filesystem/
https://mattstauffer.com/blog/laravel-5.0-cloud-file-drivers/
https://itsolutionstuff.com/post/laravel-5-amazon-s3-file-upload-tutorial-part-1example.html
https://www.youtube.com/watch?v=BK_hhyBJxuU
https://chrisblackwell.me/upload-files-to-aws-s3-using-laravel/
https://www.youtube.com/watch?v=nMDIVQsESBY&lc=UgxINeYXcc618oxgy-14AaABAg
@RajeshPatadiya
RajeshPatadiya / adminer_setup.sh
Created June 1, 2021 06:50 — forked from zloynemec/adminer_setup.sh
Secure adminer nginx setup
# Secure adminer setup
# Author Taras Kozlov
# download adminer to separate directory
mkdir -p /var/www/admin
cd /var/www/admin
wget http://www.adminer.org/latest.php -O adminer.php
echo '<?php phpinfo(); >' > info.php
sudo -i
@RajeshPatadiya
RajeshPatadiya / EloquentCheatSheet.md
Created February 2, 2021 17:25 — forked from avataru/EloquentCheatSheet.md
Eloquent relationships cheat sheet