Skip to content

Instantly share code, notes, and snippets.

View 3m1n3nc3's full-sized avatar
๐Ÿ˜œ
Not hearing word

Legacy 3m1n3nc3

๐Ÿ˜œ
Not hearing word
View GitHub Profile
@3m1n3nc3
3m1n3nc3 / .htaccess
Last active March 24, 2025 22:33
Perfect .htaccess file for SPA hosting on Apache servers
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
# No caching for all files
@3m1n3nc3
3m1n3nc3 / 2019-https-localhost.md
Created May 6, 2022 01:26 — forked from hrace009/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@3m1n3nc3
3m1n3nc3 / AgrobaysChangelog.md
Created April 25, 2022 18:28
Agrobays (Changelog)

Agrobays (Changelog)

v1.0.4 Beta

  1. Allow preloading of cofiguration options and chart data.
  2. Improved user experience for image uploads.
  3. Remove datatables and use custom built components.
  4. Improve general styling and user experience.
  5. Improve performance.
  6. Fixed multiple bugs.
@3m1n3nc3
3m1n3nc3 / API_RECOMMEND.md
Last active May 3, 2023 16:39
Recommendations for simple COde Camp REST Implementations.

RESPONSE AND IMPLEMENTATION

  1. Validation errors should return 422 response code.
  2. Authentication errors should return 401 response code.
  3. All request to save data should implement the POST http request method.
  4. All request to update data should implement the PUT http request method.
  5. All request to delete data should implement the DELETE http request method.
  6. Successfull POST requests to create new records should return 201 response code.
  7. Successfull GET requests should return 200 response code.
  8. Successfull PUT, DELETE requests should return 202 response code.
  9. If something goes wrong, return 400 response code.
@3m1n3nc3
3m1n3nc3 / Kernel.php
Created November 14, 2021 16:08 — forked from davidrushton/Kernel.php
Laravel 5 Database Queue - Shared Hosting
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**