Skip to content

Instantly share code, notes, and snippets.

View ohartl's full-sized avatar

Oliver Hartl ohartl

View GitHub Profile
@wololock
wololock / Jenkinsfile.groovy
Last active April 1, 2023 15:30
Jenkins Pipeline with matrix used for parallel deployments
pipeline {
agent any
stages {
stage("Deploy") {
matrix {
axes {
axis {
name "DEPLOY_ENVIRONMENT"
values "DEPLOY_DEV", "DEPLOY_STAGING", "DEPLOY_PROD"
@ataylor284
ataylor284 / nxrm-minio.md
Last active February 5, 2024 09:56
Creating a Minio S3 Blobstore on NXRM 3.13

Creating a Minio S3 Blobstore on NXRM 3.13

This is a quick guide on creating using the NXRM S3 blob store with Minio's S3 implementation. Disclaimer: Using Minio with NXRM is not officially supported by Sonatype.

Step 1: Start Minio locally

Follow the quick start guide here: https://github.com/minio/minio. For my testing, I started minio with docker with

@finchandfriends
finchandfriends / pre-commit
Created March 14, 2018 22:02 — forked from fdemiramon/pre-commit
Pre-commit hook for git with phpcs and phpcbf (auto-correct obvious violations)
#!/bin/sh
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"`
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php`
# Determine if a file list is passed
if [ "$#" -eq 1 ]
then
oIFS=$IFS
IFS='
@ajaegers
ajaegers / git-move-files-in-subfolder.md
Last active February 17, 2024 13:28
Git: move files in an subfolder keeping history

Change structure of project folder with Git

I have this structure:

 project-folder/
     .git
     wp-admin/
     wp-content/
     wp-includes/

.htaccess

@rroblak
rroblak / pac_aliases
Last active April 12, 2023 13:49
Package manager-independent bash aliases
# paci - install one or more packages
# pacu - upgrade all packages to their newest version
# pacr - uninstall one or more packages
# pacs - search for a package using one or more keywords
# pacinfo - show information about a package
# pacinstalled - show if a package is installed
# paca - list all installed packages
# paclo - list all packages which are orphaned
# pacdnc - delete all not currently installed package files
# pacfiles - list all files installed by a given package