Skip to content

Instantly share code, notes, and snippets.

Peter Kraume peterkraume

View GitHub Profile
@peterkraume
peterkraume / import-production-data
Created Jan 9, 2020
DDEV custom command for .ddev/commands/host
View import-production-data
#!/bin/bash
## Description: Fetch and import production data
## Usage: import-production-data
## Example: "ddev import-production-data"
SSH_CREDENTIALS="user@domain.tld"
PRODUCTION_DB_USER="user"
PRODUCTION_DB_PASSWORD="pw"
@peterkraume
peterkraume / imapsync.md
Created Mar 5, 2018
Migrate typo3.org emails with homebrew and imapsync
View imapsync.md
  1. Install Homebrew (if you haven't yet): https://brew.sh/
  2. Install imapsync: brew install imapsync
  3. Sync your mails:
imapsync \
--host1 mail.nine.ch --ssl1 --user1 YOUR.NAME@typo3.org --password1 XXXXX \
--host2 mail.typo3.org --ssl1 --user2 YOUR.NAME@typo3.org --password2 YYYYY
@peterkraume
peterkraume / readme.md
Created Mar 2, 2018
how to create a TYPO3 installation to review patches with ddev
View readme.md

how to create a TYPO3 installation to review patches with ddev

This is just a first draft on how to get started. Feedback is welcome!

Prequisites

Install PHP

  • todo
@peterkraume
peterkraume / composer.json
Created Dec 12, 2017 — forked from helhum/composer.json
The (currently) ideal TYPO3 composer setup
View composer.json
{
"require": {
"typo3-console/composer-auto-setup": "^0.1",
"georgringer/news": "^6.1",
"helhum/typo3-secure-web": "^0.2.5",
"typo3/cms-introduction": "^3.0"
},
"extra": {
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
@peterkraume
peterkraume / Default.yaml
Created Oct 26, 2017
Simple CKEditor Plugin for TYPO3 to insert an icon
View Default.yaml
# Load default processing options
imports:
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" }
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" }
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" }
# Add configuration for the editor
# For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config
editor:
externalPlugins:
@peterkraume
peterkraume / Page.ts
Created Jul 20, 2017
Backport for TYPO3 8.7: PageLayoutView - Allow to disable copy- / translate- buttons
View Page.ts
mod {
web_layout {
// disable translation mode for content elements
// backported feature from TYPO3 9.x. See Xclass PageLayoutView.php for details
localization.enableTranslate = 0
}
}
@peterkraume
peterkraume / php.md
Created Mar 31, 2017
CLI PHP Version bei domainfactory ändern
View php.md

Homeverzeichnis des Kunden:

ln -s /usr/local/bin/php7-70LATEST-CLI ~/php

Eintrag in .bashrc/.zshrc

export PATH=/kunden/xxxxx_xxxxx/rp-hosting/xxx/xxx/:$PATH

@peterkraume
peterkraume / mass-dig.sh
Created Jun 19, 2015
List all domains with missing A records
View mass-dig.sh
#!/bin/sh
# this script lists only those domain names with missing A records
domainnames="www.google.de
foobar.google.de
www.heise.de"
for domain in $domainnames
do
@peterkraume
peterkraume / MyDumpSplitter.sh
Created Jun 11, 2015
Extract single table from MySQL dump file
View MyDumpSplitter.sh
#!/bin/sh
# http://kedar.nitty-witty.com
#SPLIT DUMP FILE INTO INDIVIDUAL TABLE DUMPS
# Text color variables
txtund=$(tput sgr 0 1) # Underline
txtbld=$(tput bold) # Bold
txtred=$(tput setaf 1) # Red
txtgrn=$(tput setaf 2) # Green
txtylw=$(tput setaf 3) # Yellow
txtblu=$(tput setaf 4) # Blue
@peterkraume
peterkraume / solr-delete.sh
Created Mar 30, 2015
delete documents from multiple Solr cores
View solr-delete.sh
#!/bin/bash
query="indexed:[2000-01-01T00:00:00Z TO 2015-03-20T00:00:00Z] AND type:tx_solr_file"
host="http://localhost:8080/solr/"
cores="
core_de \
core_en \
core_fr"
You can’t perform that action at this time.