Skip to content

Instantly share code, notes, and snippets.

View rozsazoltan's full-sized avatar
🤖
Beep boop

Rózsa Zoltán rozsazoltan

🤖
Beep boop
View GitHub Profile
@rozsazoltan
rozsazoltan / #-Laravel-Schema-MediumInteger-Change.md
Last active February 7, 2024 11:37
Troubleshooting the Issue of Change to mediumInteger Type in Laravel

Updated

Original

Troubleshooting the Issue of Change to mediumInteger Type in Laravel

The Laravel framework utilizes the doctrine/dbal package to update column parameters. The dbal package has its own naming conventions, so for instance, the bigInteger used in Laravel corresponds to bigint in dbal. However, there is no equivalent for mediumInteger used in Laravel within dbal; there is no mediumint (as dbal convention) or mediuminteger (as Laravel convention).

@rozsazoltan
rozsazoltan / #-GitHub-Gist-Discover-Guard.md
Last active February 5, 2024 13:53
GitHub Gist Discover Guard: Spam Filter
github-gist-discover-guard.mp4
@rozsazoltan
rozsazoltan / #-htaccess-redirect-to-index-html.md
Last active December 10, 2022 10:15
All request redirect to index.html (important in JavaScript applications - Vue, React, Preact, Svelte, ...)

Important for JavaScript frameworks: Vue, React, Preact, Svelte, ...

# If mod_rewrite.c is enabled
<IfModule mod_rewrite.c>
  # Enable Rewrite Engine
  RewriteEngine On

  # Redirect closing-slash requests if not a folder
 RewriteCond %{REQUEST_FILENAME} !-d
@rozsazoltan
rozsazoltan / #-htaccess-redirect-to-index-php.md
Last active December 10, 2022 10:16
All request redirect to index.php (important in OOP PHP application)

Important for PHP applications

# If mod_rewrite.c is enabled
<IfModule mod_rewrite.c>
  # Enable Rewrite Engine
  RewriteEngine On

  # Redirect closing-slash requests if not a folder
 RewriteCond %{REQUEST_FILENAME} !-d
@rozsazoltan
rozsazoltan / #-GitHub-Pages-Help.md
Last active December 9, 2022 19:06
Vue/React applikáció futtatása Github Pages-en (minden kérés index.html-re irányítása)

rozsazoltan - gist License

Github Pages Help

Minden kérés átirányítása az index.html fájlra

Ismertetés: Vue/React app statikus meghívás - 404 error

Ha nem statikus html oldalakban gondolkozol, hanem valamilyen JavaScript keretrendszerrel készített applikációt szeretnél publikálni a Github Pages felületén, akkor bizonyára számodra is felmerült a kérdés: Az applikációba beépített Router-ben deffiniált útvonalak statikus meghívásakor, miért kapsz 404-es hibakódot.

@rozsazoltan
rozsazoltan / #-Laravel-LogoutOtherDevices.md
Last active October 6, 2022 11:00
Logout other session with current user, when user athenticated again.

rozsazoltan - gist License

Laravel: új hitelesítést követően minden más munkafolyamat megszakítása

Logout other session with current user, when user athenticated again.

@rozsazoltan
rozsazoltan / #-Laravel-Bread-Controller-Example.md
Last active October 6, 2022 11:00
Laravel - BREAD controller - példa - Hogyan építsük fel az alapértelmezett függvényeket? (Megtekintés, Létrehozás, Szerkesztés, Törlés)

rozsazoltan - gist License

Laravel: BREAD controller példa

Hogyan építsük fel az alapértelmezett függvényeket? (Megtekintés, Létrehozás, Szerkesztés, Törlés)

@rozsazoltan
rozsazoltan / #-Facebook-Extensions.md
Last active October 6, 2022 11:11
How to can remove all send messages permanently in facebook messenger from me and other participants?

rozsazoltan - gist License

Facebook kiegészítők

Messenger elküldött üzenetek végleges törlése

RemoveSendMessages-In-FacebookMessenger.js - Minden általad elküldött üzenet törlése egy adott chatbeszélgetésből. (Ezt ugyanis egyesével kellene megtenned, de az algoritmus ezt elvégzi helyetted, akár az első üzenetig visszamenőleg.)