sudo mv /etc/apt/preferences.d/nosnap.pref ~/Dokumente/nosnap.backupsudo apt updatesudo apt install snapd- Terminal neustarten
sudo snap install snap-store- Linux neustarten
- Snap Store > NextCloud
sudo snap set nextcloud ports.http=8081sudo snap set nextcloud ports.https=8443sudo snap restart nextcloud
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
| @view-transition { | |
| navigation: auto; | |
| } | |
| @keyframes fade-in { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| @keyframes fade-out { |
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
| div { | |
| height:100svh; /* fixed, no jumps */ | |
| margin-bottom: calc(100lvh - 100svh); /* nice margin below, if nav is hidden */ | |
| } |
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 | |
| $lock = fopen(sys_get_temp_dir() . '/' . md5(__FILE__) . '.lock', 'c'); | |
| if (!flock($lock, LOCK_EX | LOCK_NB)) { | |
| echo 'current script already running...'; | |
| die(); | |
| } | |
| echo 'script running...'; | |
| sleep(10); |
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 | |
| final class Test { | |
| public function init() { | |
| register_rest_route('v1', '/...', [ | |
| /* ... */ | |
| 'callback' => function () { | |
| // basic way | |
| return new \WP_REST_Response([], 200); | |
| // usage in inner functions | |
| $this->fun1(); |
node --version// >= 23npm init -ynpm install whatsapp-web.jsnpm install qrcode-terminalnode --no-deprecation script.js
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
| <IfModule mod_deflate.c> | |
| SetEnv no-gzip 1 | |
| </IfModule> |