- https://www.apachefriends.org/de/index.html
chmod 755 xampp-linux-*-installer.run
sudo ./xampp-linux-*-installer.run
sudo /opt/lampp/lampp start
sudo /opt/lampp/lampp stop
- optional
sudo /opt/lampp/manager-linux-x64.run
sudo /opt/lampp/lampp restart
sudo nano /opt/lampp/etc/php.ini
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
/* this ensures that ctrl+links open in a new window */ | |
var ctrlPressed = false; | |
window.addEventListener('keydown', e => { | |
if (e.metaKey || e.ctrlKey || e.key === 'Control' || e.key === 'Meta') { | |
ctrlPressed = true; | |
} | |
}); | |
window.addEventListener('keyup', e => { | |
if (e.metaKey || e.ctrlKey || e.key === 'Control' || e.key === 'Meta') { | |
ctrlPressed = false; |
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 | |
/* problem */ | |
$array = ['a' => 1, 'b' => 2, 'c' => 3]; | |
foreach ($array as $array__key => $array__value) { | |
echo 'iterating over '.$array__key."\n"; | |
if ($array__value === 2) { | |
unset($array['c']); | |
} | |
} | |
// iterating over a |
sudo mv /etc/apt/preferences.d/nosnap.pref ~/Dokumente/nosnap.backup
sudo apt update
sudo apt install snapd
- Terminal neustarten
sudo snap install snap-store
- Linux neustarten
- Snap Store > NextCloud
sudo snap set nextcloud ports.http=8081
sudo snap set nextcloud ports.https=8443
sudo snap restart nextcloud
mkdir test
cd test
git clone [email protected]:vielhuber/test.git .
# clone empty repository- create
.gitignore
,README.MD
,index.html
,index.md
- follow
README.MD
cd test
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(); |
NewerOlder