Skip to content

Instantly share code, notes, and snippets.

View jkamphausen's full-sized avatar
📃
MA Thesis

Julian Kamphausen jkamphausen

📃
MA Thesis
  • University of Siegen × Freelancer
  • Mönchengladbach × Budapest
View GitHub Profile
@harmlessprince
harmlessprince / Dockerfile
Last active August 29, 2025 19:55
Docker compose laravel configs
FROM php:8.3-fpm
ARG user
ARG uid
RUN apt-get update && apt-get install -y \
git \
curl \
libpng-dev \
libonig-dev \
@adrianorsouza
adrianorsouza / laravel_path_permissions.sh
Last active November 25, 2023 23:53
Laravel storage path permissions. This script makes storage path writable for both users, the admin and PHP Webserver user
#!/bin/bash
#
# DEFINE PROPER WRITABLE PERMISSIONS FOR LARAVEL PROJECT.
# Run this script in a fresh Laravel install.
#
# @author Adriano Rosa (https://adrianorosa.com)
# @created: 2015-02-15 00:59:19
# @updated: 2021-01-28 14:19:16
# @updated: 2023-11-25 20:53:36
#
@jkamphausen
jkamphausen / htaccess.df
Created April 19, 2018 12:30 — forked from gthln/htaccess.df
.htaccess for Laravel at Domainfactory, replaces .htaccess in public
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
@k-con
k-con / htaccess.df
Last active April 19, 2018 12:30 — forked from gthln/htaccess.df
.htaccess for Laravel at Domainfactory, replaces .htaccess in public
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
</IfModule>
@drewjoh
drewjoh / Cors.php
Created June 13, 2016 22:47
Laravel CORS Middleware
<?php // /app/Http/Middleware/Cors.php
namespace App\Http\Middleware;
use Closure;
class Cors {
public function handle($request, Closure $next)
{
return $next($request)
@zspine
zspine / countries.csv
Last active January 12, 2026 14:23
Country Code, ISO and Nationality ( Please use https://mledoze.github.io/countries/ )
CCA2 Name CCA3 Nationality
AD Andorra AND Andorran
AE United Arab Emirates ARE Emirati
AF Afghanistan AFG Afghan
AG Antigua and Barbuda ATG Antiguan, Barbudan
AI Anguilla AIA Anguillian
AL Albania ALB Albanian
AM Armenia ARM Armenian
AN Netherlands Antilles ANT Dutch
AO Angola AGO Angolan