- local - Fícsör kifejlesztése a saját gépen, amíg nem látszik a hiba
- CI - Véleményt mondanak: minőségbiztosító eszközök, tesztek ✔ ❌, kollégák
- staging - Bemutatjuk a hozzá nem értő ügyfélnek, illetve kipróbáljuk egy prod-hoz közeli körenyezetben
- production - Oda adjuk a felhasználóknak
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
wp option get auto_update_plugins --format=json \ | |
| jq -c 'to_entries | map(select(.value != "wordpress-seo/wp-seo.php")) | from_entries' \ | |
| wp option update auto_update_plugins --format=json |
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
# List plugin IDs | |
wp eval 'var_export(array_column(hellopack_client()->api()->plugins(),"name","id"));' | |
# Update the plugin | |
wp plugin install "$(wp eval 'echo hellopack_client()->api()->download(260729283,[]);')" --force |
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 | |
function get_text_width(string $text): int | |
{ | |
$glyph_widths = [ | |
'A' => 10.67, | |
'B' => 10.67, | |
'C' => 11.55, | |
'D' => 11.55, | |
'E' => 10.67, |
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 | |
function addDirToZip(string $dir, ZipArchive $zipFile, string $basePath = '') | |
{ | |
$files = scandir($dir); | |
// Remove '.' and '..' | |
unset($files[0], $files[1]); | |
foreach ($files as $file) { | |
$filePath = $dir . $file; |
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 | |
/* | |
* Plugin Name: Mark comments from Tor exit nodes as spam | |
* Plugin URI: https://github.com/szepeviktor/wordpress-website-lifecycle | |
*/ | |
/** @return string|null */ | |
function getTorExitNodes() | |
{ |
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
{ | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://releases.whmcs.com/v2" | |
} | |
], | |
"require": { | |
"whmcs/whmcs": "^8.9" | |
} |
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
EAM KIEGÉSZÍTŐ SZOLGÁLTATÁSOK ÚTMUTATÓ | |
BKR ÜZLETSZABÁLYZAT 20. SZÁMÚ MELLÉKLETE | |
https://www.giro.hu/storage/DDOYCCedHv8YFOdILSOSNiuL6Mfmu6sv56y2HvBU/BKR%20%C3%9CSZ_20_mell%C3%A9klet_2024_09_01.pdf |
If you are not on UpCloud ...
Server manager
(was Hosting.md)
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 | |
/* | |
* Plugin Name: Add cpt templates | |
*/ | |
add_filter( | |
'template_include', | |
function ($template) { | |
if (is_singular('cpt')) { |
NewerOlder