See: https://github.com/github/renaming
$ git config --global init.defaultBranch main
| #!/bin/bash | |
| set -eu | |
| # see: https://gist.github.com/Rud5G/71058242650001f6a5e4eeb4003daaa3 | |
| if ! test -f "$(pwd)/bin/magento"; | |
| then | |
| echo "Usage $0" | |
| echo "" |
| <?php | |
| declare(strict_types=1); | |
| namespace MyNamespace\Sales\Model\Order\Pdf; | |
| use Magento\Sales\Model\Order\Pdf\AbstractPdf as MagentoAbstractPdf; | |
| /** | |
| * Drastically reduce size of PDF by changing fonts |
| PROFILE=sandbox |
| <?php | |
| // Run with the URL pointing to a require-config.js as the first argument; | |
| // php identify.php http://magento2demo.firebearstudio.com/pub/static/frontend/Magento/luma/en_US/requirejs-config.js | |
| $content = file_get_contents($argv[1]); | |
| preg_match_all( | |
| '/(?P<quote>\'|")(?P<extension>[[:alnum:]]+_[[:alnum:]]+)\/js\/.+?(?P=quote)/m', | |
| $content, | |
| $matches |
| #!/bin/bash | |
| # | |
| # findleak | |
| ########################################################################## | |
| # Script that displays an overview of the virtual memory growth per process | |
| # for the last 14 days. Per process you can find the PID and process name, | |
| # how many days the process has lived (max. 14 days), the total growth of | |
| # the memory consumption during that number of days, and the growth for | |
| # each day (in MiB). | |
| # Processes that were only present for 1 day and processes that did not |
| // MIT License | |
| // Copyright (c) 2023 Max Rogério | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
| FROM php:7.4-cli-alpine | |
| # Install xdebug | |
| RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS \ | |
| && pecl install xdebug \ | |
| && docker-php-ext-enable xdebug \ | |
| && apk del .phpize-deps | |
| WORKDIR /var/www/html |
| #!/usr/bin/env python | |
| """ | |
| Warm the caches of your website by crawling each page defined in sitemap.xml. | |
| To use, download this file and make it executable. Then run: | |
| ./cache-warmer.py --threads 4 --file /data/web/public/sitemap.xml -v | |
| """ | |
| import argparse | |
| import multiprocessing.pool as mpool | |
| import os.path | |
| import re |
See: https://github.com/github/renaming
$ git config --global init.defaultBranch main
| init_config: | |
| mibs_folder: /mibs | |
| profiles: | |
| generic: | |
| definition_file: _generic-host-resources.yaml | |
| instances: | |
| - ip_address: $REPLACE_WITH_SYNOLOGY_IP_ADDRESS | |
| community_string: public | |
| snmp_version: 2 |