Skip to content

Instantly share code, notes, and snippets.

View lukasdoerr's full-sized avatar
🐕‍🦺

Lukas Dörr lukasdoerr

🐕‍🦺
View GitHub Profile
@lukasdoerr
lukasdoerr / fluxmigrator.php
Last active September 4, 2023 07:42
TYPO3 Flux to Not Flux Migrator
<?php
/*
MIT License with Attribution Clause
Copyright (c) 2023 Lukas Dörr
Permission is hereby granted to use, modify, and distribute this software, provided that:
1. The above copyright notice and this permission notice are included.
lukas@DESKTOP-NKGIEV8:/mnt/d/DDEV/typo3test$ ls -l vendor/bin
total 24
-rwxrwxrwx 1 lukas lukas 3354 Aug 28 10:22 doctrine-dbal
-rwxrwxrwx 1 lukas lukas 3339 Aug 28 10:22 fluid
-rwxrwxrwx 1 lukas lukas 3351 Aug 28 10:22 php-parse
-rwxrwxrwx 1 lukas lukas 3318 Aug 28 10:22 typo3
-rwxrwxrwx 1 lukas lukas 3348 Aug 28 10:22 typo3cms
-rwxrwxrwx 1 lukas lukas 3369 Aug 28 10:22 yaml-lint
lukas@DESKTOP-NKGIEV8:/mnt/d/DDEV/typo3test$
@lukasdoerr
lukasdoerr / gist:af8d674efc12475ea1005091749918b4
Created August 29, 2022 13:29
composer require with ddev mutagen ON
lukas@DESKTOP-NKGIEV8:/mnt/d/DDEV/typo3test$ ddev composer dump-autoload
Generating autoload files
> typo3cms install:fixfolderstructure
sh: 1: typo3cms: Permission denied
Script typo3cms install:fixfolderstructure handling the typo3-cms-scripts event returned with error code 126
Script @typo3-cms-scripts was called via post-autoload-dump
composer [dump-autoload] failed, composer command failed: exit status 126. stderr=
lukas@DESKTOP-NKGIEV8:/mnt/d/DDEV/typo3test$
@lukasdoerr
lukasdoerr / gist:25ef0bfa665ac0158caf4776fad4de5e
Created August 29, 2022 13:25
composer require with ddev mutagen OFF
lukas@DESKTOP-NKGIEV8:/mnt/d/DDEV/typo3test$ ddev composer dump-autoload
Generating autoload files
> typo3cms install:fixfolderstructure
The following directory structure has been fixed:
Fixed permission on /public/typo3temp/index.html.
Fixed permission on /public/fileadmin/.htaccess.
Fixed permission on /public/fileadmin/_temp_/.htaccess.
Fixed permission on /public/fileadmin/_temp_/index.html.
Fixed permission on /public/fileadmin/user_upload/_temp_/index.html.
Fixed permission on /public/fileadmin/user_upload/_temp_/importexport/.htaccess.
@lukasdoerr
lukasdoerr / gist:be134a6c3b76eaa78ccb2ab98bdedc3d
Created August 29, 2022 12:45
ddev mutagen composer problems
lukas@DESKTOP-NKGIEV8:/mnt/d/DDEV/typo3test$ ddev debug test
Running bash [-c /tmp/test_ddev.sh]
OS Information: Linux DESKTOP-NKGIEV8 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
User information: uid=1000(lukas) gid=1000(lukas) groups=1000(lukas),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),119(lxd),1001(docker)
DDEV version: ITEM VALUE
DDEV version v1.21.1
architecture amd64
db drud/ddev-dbserver-mariadb-10.4:v1.20.0
dba phpmyadmin:5
ddev-ssh-agent drud/ddev-ssh-agent:v1.20.0
@lukasdoerr
lukasdoerr / ips_to_ban_apr2022.txt
Created April 23, 2022 15:20
IP Addresses of bots, that bruteforce worpdress login, to put into your ip blacklist :) (APR 2022)
199.192.22.72
109.168.97.89
103.174.87.138
47.105.86.21
89.46.109.154
95.167.178.158
45.162.168.221
107.161.177.10
139.59.117.30
@lukasdoerr
lukasdoerr / api_call.php
Created August 17, 2021 12:48
[PHP] ldoerr.com IP API Call
<?php
//Check if there is a query in GET
if(!$_GET['query']) {
//If not, we can just use our own ip address
$addr = $_SERVER['REMOTE_ADDR'];
}
else {
$addr = $_GET['query'];