View snippet.sh
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 |
View smartgit.theme
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 |
View index.php
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>"; |
View randomCzechNameBySeed.php
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 | |
*/ |
View .htaccess
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> |
View .htaccess
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/ |
View CurlService.php
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 |
View misc.xml
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*" /> |
View dropDatabase.sql
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; |
View phpRandomBasedOnTime.php
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