Skip to content

Instantly share code, notes, and snippets.

View AWqxKAWERbXo's full-sized avatar
🎯
Focusing

Alex AWqxKAWERbXo

🎯
Focusing
View GitHub Profile
@AWqxKAWERbXo
AWqxKAWERbXo / timed-auto-updates.php
Created July 13, 2025 11:11
WordPress Auto-Updates nur in Wartungsfenstern von 4 bis 6 Uhr montags bis samstags
<?php
/**
* Plugin Name: Timed Auto Updates
* Description: Erlaubt automatische Updates nur zwischen 4 und 6 Uhr, Montag bis Samstag.
*/
# Lege diese Datei als /wp-content/mu-plugins/timed-auto-updates.php ab
add_filter('automatic_updater_disabled', function () {
$current_hour = (int) current_time('H');
@abobija
abobija / wsl2-ubuntu-lamp.md
Last active May 1, 2025 21:51
LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

Apache

sudo apt-get update && sudo apt-get upgrade 
sudo apt-get install -y apache2

PHP

@derick-montague
derick-montague / sync-github-to-bitbucket.md
Last active May 6, 2025 07:39
Sync github repo to bitbucket repo

Set up remotes

setup local repo

mkdir myrepository
cd myrepository
git init

add bitbucket remote as "origin"