Skip to content

Instantly share code, notes, and snippets.

function decamelize($input_string) {
return preg_replace_callback(
'#(^|[a-z])([A-Z])#',
function (array $matches) {
$result = '';
if (0 === strlen($matches[1]))
$result = $matches[2];
else
$result = "{$matches[1]}_{$matches[2]}";
$result = strtolower($result);
<?xml version="1.0" encoding="UTF-8"?>
<!-- log4j2.xml - Example log4j configuration file
Place this file in the same directory as your server.jar, edit
to taste, and add -Dlog4j.configurationFile=log4j2.xml to your
server startup flags.
More log4j example configs can be found at
<http://logging.apache.org/log4j/2.x/manual/appenders.html>.
-->
@scones
scones / .gitlab-ci.yml
Created October 14, 2025 14:57
gitlab-pipeline-for-parallel-sync-external-repos-for-migration
image: $GIT_SYNC_IMAGE
stages: [sync]
sync-file-based:
stage: sync
variables:
GIT_SYNC_TARGET_PROJECT_BASE: "our.git.server.de/some/path/studydrive"
SOURCE_TOKEN_VARIABLE_NAME: "GIT_SYNC_GENERIC_BITBUCKET_TOKEN"