Skip to content

Instantly share code, notes, and snippets.

View phmLabs's full-sized avatar
🐨
Koalitytime

Nils Langner phmLabs

🐨
Koalitytime
View GitHub Profile
{
system: "WordPress",
version: "5.3.4",
status: "insecure",
components: [
{
system: "Askismet",
repository: "https://github.com/deployphp/deployer.git",
version: "7.3",
status: "outdated"
@phmLabs
phmLabs / feed-rss2.php
Last active June 14, 2019 08:43
add featured image to rss feed
#wp-includes/feed-rss2.php
#https://wordpress.org/support/topic/image-size-with-get_the_post_thumbnail_url/
<image><?php echo wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'medium_large')[0]; ?></image>
@phmLabs
phmLabs / deleteOldFiles.sh
Last active May 29, 2019 07:15
Delete files older that 90 days
time find /leankoala/storage/ -mtime +90 -exec rm {} \;
- https://joostvanveen.com/a-28/install-and-configure-apache-2-on-mojave-with-homebrew
@phmLabs
phmLabs / apache.conf
Created April 1, 2019 07:15
Vhost config for apache
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
- name: make cert extra dir
file: state=directory path=/usr/share/ca-certificates/extra
- name: Install cert
copy: src=../../templates/worker/certificates/entrust_l1k.cer dest=/usr/share/ca-certificates/extra/entrust_l1k.cer
- name: Cert exists
shell: grep "^entrust_l1k.cer" /etc/ca-certificates.conf | cat
register: cert_exists

Nils ist Webentwickler. Seit 20 Jahren. Seit zehn Jahren schlägt sein Herz aber ebenfalls für Qualität. Er hat in Hamburg für Gruner+Jahr und dem Bauer Verlag das Qualitätsmanagement als Head of QM aufgebaut. Vor einem Jahr hat er gemeinsam mit seiner Frau Stefanie Leankoala (www.leankoala.com) gegründet. Die Software-as-a-Service vollautomatisiert das Testen von Webseiten mit einem neuen eigenschaftsbasierten Ansatz.

<?php
class LeankoalaHandler
{
const ENDPOINT = 'https://monitor.leankoala.com/rest/%s/system/%s/component/add?api_key=%s';
private $projectIdentifier;
private $projectApiKey;
public function __construct($projectIdentifier, $projectApiKey)
@phmLabs
phmLabs / startMysql
Last active December 11, 2017 12:01
Start mysql as docker container
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d -p 3306:3306 -v /Users/exthcont049/mysqldata:/var/lib/mysql mysql:5.7