- Overrides
- Changed the
root
directive in the Caddyfile toweb
instead ofpublic
- Used
-v $PWD:/app
instead of/app/public
- Added
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
tophp.ini
and used-v $PWD/php.ini:/usr/local/lib/php.ini
to suppress warnings. Deprecations were still being printed out.
- Changed the
- Observations
- Many warnings like this one:
**Warning**: ini_set(): Session ini settings cannot be changed after headers have already been sent in **/app/web/core/lib/Drupal/Core/DrupalKernel.php** on line **1000**
- Many deprecations were printed out, such as:
__Deprecated function__: Creation of dynamic property Drupal\Core\Installer\InstallerKernel::$_serviceId is deprecated in __Drupal\Core\DependencyInjection\ContainerBuilder->set()__ (line __83__ of __/app/web/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php__).
- Drupal is still not compatible with PHP 8.2: https://www.drupal.org/project/drupal/issues/3283358
- Many warnings like this one:
- FrankenPHP compiles PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USER="$1" | |
gh api "/users/${USER}/repos?type=owner" \ | |
| jq -r '.[] | select(.private == false) | " - \(.name) (hosted at \(.html_url))"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ParentClass { | |
public static string $foo = 'ooh'; | |
public string $bar = 'lala'; | |
public function __construct($arg) { | |
$this->bar = $arg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"log" | |
"os" | |
"strconv" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
// Fetches the browser window's URL with an accept header set to the mediaType. | |
async function doFetch(mediaType, host) { | |
const loc = window.location | |
const url = `${loc.protocol}//${host || loc.host}${loc.pathname}`; | |
const options = { | |
headers: { | |
accept: mediaType, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let count = undefined; | |
let startTime = undefined; | |
export class ErrorNotStarted extends Error { | |
constructor() { | |
super("The counter has not been started."); | |
} | |
} | |
export class ErrorAlreadyStarted extends Error { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/jsonapi_operations.services.yml b/jsonapi_operations.services.yml | |
index bbb3da6..d6fd805 100644 | |
--- a/jsonapi_operations.services.yml | |
+++ b/jsonapi_operations.services.yml | |
@@ -6,3 +6,8 @@ services: | |
- '@jsonapi.resource_type.repository' | |
- '@database' | |
- '@http_kernel' | |
+ | |
+ jsonapi_operations.local_id_registry: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0] gabe EW7833UAC_linux_v4.3.21_17997.20160531 $ sudo make | |
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.4-1-ARCH/build M=/home/gabe/Downloads/edimax/EW7833UAC_linux_4.3.21_kernel_3.16-4.4/EW7833UAC_linux_v4.3.21_17997.20160531 modules | |
make[1]: Entering directory '/usr/lib/modules/4.12.4-1-ARCH/build' | |
CC [M] /home/gabe/Downloads/edimax/EW7833UAC_linux_4.3.21_kernel_3.16-4.4/EW7833UAC_linux_v4.3.21_17997.20160531/os_dep/linux/ioctl_linux.o | |
/home/gabe/Downloads/edimax/EW7833UAC_linux_4.3.21_kernel_3.16-4.4/EW7833UAC_linux_v4.3.21_17997.20160531/os_dep/linux/ioctl_linux.c: In function ‘rtw_ioctl_wext_private’: | |
/home/gabe/Downloads/edimax/EW7833UAC_linux_4.3.21_kernel_3.16-4.4/EW7833UAC_linux_v4.3.21_17997.20160531/os_dep/linux/ioctl_linux.c:14004:5: error: implicit declaration of function ‘is_compat_task’; did you mean ‘is_idle_task’? [-Werror=implicit-function-declaration] | |
if(is_compat_task()) | |
^~~~~~~~~~~~~~ | |
is_idle_task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
declare -A options | |
options["your"]=false | |
options["options"]=false | |
options["here"]=false | |
main () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// You may uncomment this once you have a database installed. | |
$databases['default']['default'] = [ | |
'database' => '<database_name>', | |
'username' => '<database_username>', | |
'password' => '<database_password>', | |
'host' => '<db.yourdomain.com>', | |
'port' => '3306', | |
'driver' => 'mysql', |
NewerOlder