Skip to content

Instantly share code, notes, and snippets.

@mrlinnth
mrlinnth / README.md
Last active October 31, 2025 01:02 — forked from SubhanRaj/host-laravel-project-on-hostinger-shared-hosting.md
Guide for Laravel on Hostinger shared hosting

How to host a Laravel project on Hostinger shared hosting

Introduction

When I was looking to deploy a Laravel project on Hostinger shared hosting, I found that there was no proper guide available on the internet. So I decided to write a step-by-step guide on how to host a Laravel project on Hostinger shared hosting. I hope this will help someone who is looking to host a Laravel project on Hostinger shared hosting.

As Hostinger's shared hosting does not provide the same functionalities as a VPS or Dedicated Server, so there are some limitations. However, I have tried to overcome those limitations and make the Laravel project work on Hostinger shared hosting.

What is working

Following is working:

  1. Host Laravel 10 & 11 Project on Hostinger's Shared Hosting
@mrlinnth
mrlinnth / README.md
Last active October 31, 2025 01:02 — forked from AHS12/how to create a Laravel package.md
Guide for Custom Laravel Package
@mrlinnth
mrlinnth / README.md
Last active October 31, 2025 00:57 — forked from vunb/wordpress-change-domain-migration.sql
Wordpress domain change sql script

Use this SQL script when changing domains on a WordPress site. Whether you’re moving from an old domain to a new domain or you’re changing from a development domain to a production domain this will work.

  1. always backup your database.
  2. change the ‘oldsite.com’ and ‘newsite.com’ variables to your own.
  3. make sure your database prefix is “wp_”, if it’s not then you’ll want to go through and change the prefix in each line to whatever yours is.
  4. copy the modified variables and the queries and paste it into phpMyAdmin or, better yet, SequelPro and run it on your database. TEST. DONE.

Changelog: — updated queries to use variables instead of editing the urls in many different areas — commented out GUID and left as optional. shouldn’t reset those.

ref: codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Note

@mrlinnth
mrlinnth / keybindings.json
Created September 13, 2025 02:43
[VSCode settings] Files under $HOME/.config/Code/User
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+alt+l",
"command": "-BracketHighlighter.toggleExtensionStatus",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+l",
"command": "extension.insertLogStatement",
@mrlinnth
mrlinnth / backup-nvim.sh
Last active September 13, 2025 02:45
[Linux bash scripts]
#! /bin/bash
mv $HOME/.config/nvim{,.old}
mv $HOME/.local/share/nvim{,.old}
mv $HOME/.local/state/nvim{,.old}
mv $HOME/.cache/nvim{,.old}
@mrlinnth
mrlinnth / README.md
Last active September 17, 2025 03:28
[Laravel 12 DDEV setup] Based on laravel12-starter repo with pnpm and adminer
  1. Clone starter project which has laravel 12, inertiajs, tailwind css and shadcn components
  • git clone git@github.com:mrlinnth/laravel12-starter.git && cd laravel12-starter
  1. Setup DDEV for laravel together with pnpm and adminer
ddev config --project-type=laravel --docroot=public

ddev add-on get ddev/ddev-adminer
@mrlinnth
mrlinnth / starship.toml
Last active September 13, 2025 02:46
[Starship preset] Fira Code Nerd fonts with Dracula theme
palette = "dracula"
# Define Dracula color palette
[palettes.dracula]
background = "#282a36"
current_line = "#44475a"
foreground = "#f8f8f2"
comment = "#6272a4"
cyan = "#8be9fd"
green = "#50fa7b"