mysqldump <db> <table> --skip-triggers --compact --no-create-info
# with column names in INSERT statement
mysqldump <db> <table> --skip-triggers --compact --no-create-info --complete-insert
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
# Print only response header | |
curl -sS -D - -o /dev/null 'https://www.google.de' |
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
# This pretty-prints the JSON response: | |
curl -s "https://api.example.com/data" | jq '.' | |
# Useful flags | |
# -c compact | |
# To get all items: | |
curl -s "https://api.example.com/data" | jq '.items[]' | |
# To count all items: | |
curl -s "https://api.example.com/data" | jq '.items[] | length' |
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 | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
RESET='\033[0m' | |
packages=$(jq -r '.require | with_entries(select(.key | test("^typo3/") | not)) | keys[]' composer.json) | |
for package in $packages; do |
$GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['Redirects'] => [
'Service' => [
'RedirectService' => [
'writerConfiguration' => [
\TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFileInfix' => 'core-redirect-service'
],
],
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
# This menu is considered to be 'clever' due to the fact that it's sliding accross the entire page tree: | |
# | |
# * Previous link: if there's no previous sibling page, we're linking to the parent page instead | |
# * Next link: | |
# * if there's no child page, we're linking to the next sibling page | |
# * if that's not available, we're linking to the next sibling page of the parent page | |
# * if that's not available, we're linking to the next sibling page of the grandparent page | |
temp.browseMenuItem = HMENU | |
temp.browseMenuItem.special = browse |
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
renderables: | |
- | |
type: Page | |
identifier: page | |
label: Form | |
renderables: | |
- | |
defaultValue: '' | |
type: Text | |
identifier: name |
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 | |
$tt = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TimeTracker\TimeTracker::class); | |
$tt->start(); | |
// Expensive operation here | |
$tt->finish(); | |
// Print the runtime between start and finish in milliseconds. |
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 | |
/* | |
TYPO3 12+ | |
Registration in Services.yaml | |
See https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/ApiOverview/Events/Events/Backend/ModifyPageLayoutContentEvent.html | |
*/ | |
declare(strict_types=1); |
NewerOlder