This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2155 | |
| set -uo pipefail | |
| readonly username="$1" | |
| readonly commitMessage="[TASK] Run PHP-CS-Fixer" | |
| readonly composerScript="fix:php" | |
| readonly workdir="$(mktemp -d)" | |
| failedRepos=() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2155,SC2059 | |
| set -e | |
| RED="\033[0;31m" | |
| GREEN="\033[0;32m" | |
| YELLOW="\033[0;33m" | |
| CYAN="\033[1;36m" | |
| GRAY="\033[0;90m" | |
| NC="\033[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2155 | |
| set -e | |
| RED="\033[0;31m" | |
| GREEN="\033[0;32m" | |
| YELLOW="\033[0;33m" | |
| CYAN="\033[1;36m" | |
| GRAY="\033[0;90m" | |
| NC="\033[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2155 | |
| set -e | |
| # | |
| # Script to track waiting customer count and estimated travel time | |
| # of a Telekom appointment. | |
| # | |
| # Usage: | |
| # ./telekom_appointment_tracker.sh <uuid> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set @rootPageId := 15047; | |
| set @maxDepth := 99; | |
| with recursive children as ( | |
| select root.*, 1 as depth | |
| from pages root | |
| where root.uid = @rootPageId | |
| or (root.sys_language_uid > 0 and root.l10n_source = @rootPageId) | |
| and root.deleted = 0 | |
| union all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace EliasHaeussler\App; | |
| /* | |
| * Copyright (C) 2020 Elias Häußler <elias@haeussler.dev> | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ## Requirements: | |
| ## * jq: https://stedolan.github.io/jq/ | |
| ## * GitLab auth token: https://gitlab.example.com/profile/personal_access_tokens | |
| GITLAB_DOMAIN="https://gitlab.example.com" | |
| AUTH_TOKEN="<insert GitLab auth token here>" | |
| CURRENT_VERSION="$(curl -s -H "Authorization: Bearer ${AUTH_TOKEN}" "${GITLAB_DOMAIN}/api/v4/version" | jq -r '.version')" | |
| STABLE_VERSION="$(curl -s https://gitlab.com/api/v4/projects/13083/repository/tags | jq -r '[ .[] | .name | match("^v?(\\d+\\.\\d+\\.\\d+)$") | .captures[0].string ] | sort_by(split(".") | map(tonumber))[-1]')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace Undkonsorten\BlockMenu\DataProcessing; | |
| /* | |
| * This file is part of the TYPO3 CMS extension "block_menu". | |
| * | |
| * It is free software; you can redistribute it and/or modify it under | |
| * the terms of the GNU General Public License, either version 2 | |
| * of the License, or any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| CONTAINER="${1-server}" | |
| COMMAND="$2" | |
| CONTAINER_ID="$(docker-compose ps -q "$CONTAINER")" | |
| if [[ $(docker-compose ps --services | grep "$CONTAINER") ]]; then | |
| COMPOSE_COMMAND="exec" | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Unix-style newlines with a newline ending every file | |
| [*] | |
| end_of_line = lf | |
| insert_final_newline = true | |
| [*.{js,scss,html}] | |
| charset = utf-8 | |
| indent_style = space | |
| indent_size = 2 |
NewerOlder