This file contains 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
echo "docker compose --compatibility \"\$@\"" > /bin/docker-compose | |
chmod +x /bin/docker-compose | |
docker-compose version |
This file contains 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
extends=smartgit-dark-theme.properties | |
preferredEditorTheme=dark | |
background1=#2d2d2d | |
background2=#1e1e1e | |
selection.background=#0a0a0a | |
composite.background#border=#1e1e1e | |
selection.background.unfocused=#0a0a0a | |
selection.foreground=foreground2 | |
selection.foreground.unfocused=foreground2 | |
toolBar.background.hover=#0a0a0a |
This file contains 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 | |
if(!empty($_GET["t"]) && isset($_GET["t"]) && is_numeric($_GET["t"])) { | |
echo "<strong>Datum:</strong> <pre>".date("d. m. Y H:i:s", $_GET["t"])."</pre>"; | |
echo "<hr>"; | |
} | |
echo "<strong>Timestamp:</strong> <pre>".time()."</pre>"; | |
echo "<hr>"; | |
echo "<strong>_SERVER:</strong> <pre>"; | |
print_r($_SERVER); | |
echo "</pre>"; |
This file contains 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 | |
declare(strict_types=1); | |
class xyz | |
{ | |
/** | |
* @param string $seed | |
* @return string | |
*/ |
This file contains 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_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{SERVER_NAME} [L,R=301] | |
</IfModule> |
This file contains 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
RewriteEngine On | |
ErrorDocument 500 "500 - Vnitrni chyba!" | |
ErrorDocument 404 "404 - Stranka nenalezena!" | |
ErrorDocument 401 "Litujeme, ale nemate pravo k pristupu k tomuto souboru!" | |
ErrorDocument 403 "Litujeme, ale nemate pravo k pristupu k tomuto souboru!" | |
# cele domeny (aliasy) | |
RewriteCond %{REQUEST_URI} !^domains/ | |
RewriteCond %{REQUEST_URI} !^/domains/ |
This file contains 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 declare(strict_types=1); | |
namespace CurlService; | |
use RuntimeException; | |
/** | |
* Class CurlService | |
* @package CurlService | |
*/ | |
class CurlService |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="JavaScriptSettings"> | |
<option name="languageLevel" value="ES6" /> | |
</component> | |
<component name="PhpEntryPointsManager"> | |
<pattern value="\*\Presenters\*" member="createComponent*" /> | |
<pattern value="\*\Presenters\*" member="handle*" /> | |
<pattern value="\*\Presenters\*" member="action*" /> | |
<pattern value="\*\Presenters\*" member="render*" /> |
This file contains 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
use `dbName`; --your db name here | |
SET FOREIGN_KEY_CHECKS = 0; | |
SET @tables = NULL; | |
SET GROUP_CONCAT_MAX_LEN=32768; | |
SELECT GROUP_CONCAT('`', table_schema, '`.`', table_name, '`') INTO @tables | |
FROM information_schema.tables | |
WHERE table_schema = (SELECT DATABASE()); | |
SELECT IFNULL(@tables, '') INTO @tables; |
This file contains 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 | |
$loginImages = ['login-bg-11.jpg', 'login-bg-12.jpg', 'login-bg-13.jpg', 'login-bg-14.jpg', 'login-bg-15.jpg', 'login-bg-16.jpg', 'login-bg-17.jpg']; | |
$seed = srand(floor(time() / (60*60*24))); | |
$randomizedSeedNumber = rand(0, count($loginImages)) % 100; | |
$randomizedLoginImage = $loginImages[$randomizedSeedNumber]??$loginImages[0]; | |
echo $randomizedLoginImage; | |
?> |
NewerOlder