grep -rl "[SUCHBEGRIFF]" | xargs sed -i 's,[SUCHBEGRIFF],[ERSATZ],g'
HNPWA
A nice way to compare frameworks: HNPWA.
Rust Language Overview
PHP Standard Recommendations
Sort the output of ‘ls’
Sort ls output – Directories, then files, then links:
ls -la | grep "^d" && ls -la | grep "^-" && ls -la | grep "^l"
HyperHTML
The 8-Point Grid
35 Free Fonts
How to do Scrum without killing yourself (Update 2018)
How to do Scrum without killing yourself (Presentation Slides)
Once again it was a pleasure hanging out with the Web Engineering Group Düsseldorf (Meetup, Twitter). This time as a speaker. Great audience, good questions, good feedback. Nice. Largest attending audience yet for WebEngDus, btw. 👍
UTF 8 Icons
PHP: URL path to file in same directory
<?php $urlPathToFileInSameDirectory = (isset($_SERVER['HTTPS']) ? "https" : "http") . str_replace("THISFILENAME","","://$_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]")."FILETOLOADNAME"; ?>
Remote WordPress File Dump with wget & ftp (excluding uploads dir)
Put this in a bash script and execute it:
#!/bin/bash wget -X /PATH/TO/WP_ROOT/wp-content/uploads -r -nH -nc ftp://FTP_USER:FT_PPW@FTP_HOST//WP_ROOT
Bash CLI Farben/Colors
reg bld und tput-command-colors Text Text Text $(tput setaf 1) Text Text Text $(tput setaf 2) Text Text Text $(tput setaf 3) Text Text Text $(tput setaf 4) Text Text Text $(tput setaf 5) Text Text Text $(tput setaf 6) Text Text Text $(tput setaf 7) Bold $(tput bold) Underline $(tput sgr 0 1) Reset $(tput sgr0)
Browsersync with Proxy example
Very handy:
browser-sync start --proxy "http://mytest.local/adminui.php?view=myview" --files "/usr/share/webapps/myapp/myview" --browser "firefox-developer"
proxy param gets URL to refresh, files param gets dir to observere, browser is the browser binary you want to launch and use. Browsersync has many other options.
Find more information on the Browsersync website.
Cookiehinweis und “Gut is’.”? … Nein, ganz bestimmt nicht.
Die EU DSGVO kommt und sie kommt mit Karacho. Wer meint, er hätte seine Schuldigkeit mit einem generischen, oftmals nervigen und weitgehend sinnfreien Cookiehinweis auf seiner Website getan, täuscht sich gewaltig. Dokumentationspflicht, Privacy by Design, Privacy by Default, Kopplungsverbot und weitere Grundkonzepte, die tief in der EU DSGVO verankert sind, sind mit Cookiepopups und dem fadenscheinigen catch-all Spruch vom “berechtigtem wirtschaftlichem Interesse” ganz gewiss nicht erfüllt.
Cookiehinweis und “Gut is’.”? … Nein, ganz bestimmt nicht. weiterlesen
EU Datenschutzgrundverordnung DSGVO
Die DSGVO rückt näher. Mit dieser EU-weit vereinheitlichten Gesetzeslage wird der Datenschutz noch mal ein Stück ernster genommen. Wer dieses Thema schleifen lässt, den erwarten unangenehme Überraschungen. Es steht zu erwarten, das die Behörden zum Thema Datenschutz deutlich humorloser und strenger werden.
Hier ein paar Links zum Thema:
EU Datenschutzgrundverordnung DSGVO weiterlesen
Prevent perpetual WordPress login redirects in local and test installations
To prevent perpetual login redircet loops in local/development WordPress installations add this function to your wp-config.php (have it return the users ID you want to authenticate):
function wp_validate_auth_cookie($cookie='',$scheme='') { return 1; // admin user id }
Docker
Docker ist in aller Munde. Zu recht. Eine vollständige Virtualisierung der Arbeitsumgebung ist heutzutage eine Fingerübung und mit Docker geht das weitgehend verlustfrei und als organischer Teil des Softwareentwicklungsprozesses. Entkoppelt vom Betriebssystem kann man mit und auf Docker ausliefern und bleibt weitgehend unabhängig von Unwägbarkeiten der Laufzeitumgebung. Der ganze Prozess ist automatisiert und lässt sich leicht reproduzieren.
Hier ein paar hilfreiche Links zum Thema:
PhpMyAdmin SQL Dump – split into smaller files / in kleinere Dateien aufteilen
csplit MEINE_SQL_DATEI.sql '/-- --------------------------------------------------------/' {9999} && rename 's/(xx.*)/$1.sql/' *
xx – Je nach Anzahl der Fragmentdateien stehen im Prefix mehr oder weniger Xe.