Skip to content

Instantly share code, notes, and snippets.

View kabilashgit's full-sized avatar

kabilash kabilashgit

  • Autumn Worldwide
  • Bangalore
View GitHub Profile

Git necessary configs

$ git config --global user.name "my name"
$ git config --global user.email "my name"

# That way, you avoid any automatic transformation.
# Set autocrlf to false when you do only windows-only projects, otherwise `warning: LF will be replaced by CRLF.`
$ git config --global core.autocrlf false
@kabilashgit
kabilashgit / .htaccess
Created December 30, 2021 12:06 — forked from seoagentur-hamburg/.htaccess
UPDATE 2021/10: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
########################################################################
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.1 - 08/2020
# ----------------------------------------------------------------------
# @Author: Andreas Hecht
# @Author URI: https://seoagentur-hamburg.com
# License: GNU General Public License v2 or later
# License URI: http://www.gnu.org/licenses/gpl-2.0.html
########################################################################
@kabilashgit
kabilashgit / node_deploy_server.md
Created July 22, 2022 12:37
Full VPS deployment using Nginx, reverse proxy, pm2, SSL, and Lets Encrypt.

Connecting to the VPS

To connect your VPS server, you can use your server IP, you can create a root password and enter the server with your IP address and password credentials. But the more secure way is using an SSH key.

Creating SSH Key

For MAC OS / Linux / Windows 10 (with openssh)

  1. Launch the Terminal app.
  2. ssh-keygen -t rsa
@kabilashgit
kabilashgit / index.htm
Created February 21, 2023 08:23 — forked from AllThingsSmitty/index.htm
Simple responsive table in CSS (no JS)
<table>
<thead>
<tr>
<th>Payment</th>
<th>Issue Date</th>
<th>Amount</th>
<th>Period</th>
</tr>
</thead>
<tbody>
@kabilashgit
kabilashgit / api-fix.md
Last active July 25, 2023 07:29
Solution: NextJs Public folder new items not accessible after build.

vercel/next.js#18005

Hi,

To anyone who is reading this thread looking for a solution to access files in the public folder at runtime but would prefer a simple solution that works with next you can do the following:

Create a new folder: "./pages/api/public" Add a new file to the folder: "[[...slug]].js" Add the following code to the file: