Skip to content

Instantly share code, notes, and snippets.

View rohankhudedev's full-sized avatar

Rohan Khude rohankhudedev

View GitHub Profile
rohankhudedev / opcache.ini
Last active February 29, 2024 03:41
Best Zend OpCache Settings / Tuning / Configurations
View opcache.ini
; Determines if Zend OPCache is enabled
; Determines if Zend OPCache is enabled for the CLI version of PHP
; The OPcache shared memory storage size.
rohankhudedev /
Last active February 22, 2024 20:02
Laravel Server Requirements

Hardware Recommendations

4 Core Processor
OS - Latest CentOS

Software Recommendations

  • Make sure your server meets the following requirements:
rohankhudedev / .htaccess
Last active July 4, 2023 01:26
Necessary Apache .htaccess Configuration: Performance and Security settings
View .htaccess
## ~-~-~- How to use ~-~-~-
# You can directly download as use as it is.
# Everything is listed is only perfomance and security related lines
# Validate .htaccess from
# Disable Directory Browsing: Security
Options All -Indexes
# If a dir is a symbol link, follow the link
rohankhudedev / script.js
Created June 13, 2023 12:21
cell lat long for turf
View script.js
This file has been truncated, but you can view the full file.
$json = '[[{"lat":17.00537379223758,"lng":75.03474028272734},{"lat":16.906448552227882,"lng":74.93134923444453}],[{"lat":17.10429903224728,"lng":75.03474028272734},{"lat":17.00537379223758,"lng":74.93134923444453}],[{"lat":17.20322427225698,"lng":75.03474028272734},{"lat":17.10429903224728,"lng":74.93134923444453}],[{"lat":17.302149512266677,"lng":75.03474028272734},{"lat":17.20322427225698,"lng":74.93134923444453}],[{"lat":17.401074752276376,"lng":75.03474028272734},{"lat":17.302149512266677,"lng":74.93134923444453}],[{"lat":17.499999992286075,"lng":75.03474028272734},{"lat":17.401074752276376,"lng":74.93134923444453}],[{"lat":17.598925232295773,"lng":75.03474028272734},{"lat":17.499999992286075,"lng":74.93134923444453}],[{"lat":17.697850472305472,"lng":75.03474028272734},{"lat":17.598925232295773,"lng":74.93134923444453}],[{"lat":17.79677571231517,"lng":75.03474028272734},{"lat":17.697850472305472,"lng":74.93134923444453}],[{"lat":17.89570095232487,"lng":75.03474028272734},{"lat":17.79677571231517,"lng":74.
rohankhudedev /
Last active February 3, 2023 07:30
How to create pipelines

Initial Step

  • Clone repository manually in the server. Use SSH URL to clone

Step 1 - Server

  • run this command ssh-keygen or ssh-keygen -t rsa -b 4096 -C ""
  • copy to authorized_keys by doing below
    • cd ~/.ssh/
  • cp authorized_keys
rohankhudedev / wp-archive-state.php
Last active June 18, 2022 17:21
Wordpress Custom Post Status/State - Archive
View wp-archive-state.php
// Tested in WP Version - 5.9.3
// This file is part of functions.php
// Manipulate robots based on post status.
add_filter( 'wpseo_robots', 'yoast_seo_update_archive_robots_meta' );
function yoast_seo_update_archive_robots_meta( $robots ) {
if ( get_post_status() == 'archived') {
return 'noindex,nofollow';
} else {
View wasp.php
display:inline; /*Added to avoid confusion in outpu*/
<form method="POST">
<textarea name="html_input" required ><?php echo !empty($_POST['html_input'])?$_POST['html_input']:'';?></textarea>
<input type="submit">
rohankhudedev / rediffmail.js
Created May 5, 2021 11:27
Delete All Mails from Rediffmail Inbox
View rediffmail.js
// Simple steps to execute this
// 1. Login to rediffmail
// 2. Goto Inbox
// 3. Copy Below code and paste in console
function deleteAllMailsFromRediffMailInbox()
rohankhudedev / form.html
Last active October 6, 2020 18:02
submit form using simple ajax using post method
View form.html
<!DOCTYPE html>
<meta charset="UTF-8">
<script src=""></script>
rohankhudedev /
Last active October 15, 2019 07:16
Install necessary packages using own shell script
#NOTE : update below links for package URL for all wget URL before proceed
#NOTE : Before running do `chmod +x` && sudo ./
# Update System
sudo apt-get -y update
sudo apt-get dist-upgrade -y
##attempt to correct a system with broken dependencies in place.
sudo apt-get -f install