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
// 20px gutters between collumns | |
.row.gutter-20 { | |
margin-right: -10px; | |
margin-left: -10px; | |
.row.gutter-20>.col, | |
.row.gutter-20>[class*="col-"] { | |
padding-right: 10px; | |
padding-left: 10px; | |
} |
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 | |
/** | |
* Change default WP login errors message. | |
*/ | |
add_filter('login_errors', function (): string { | |
return 'Invalid credentials ¯\_(ツ)_/¯'; | |
}); | |
/** |
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
class DontLeaveMeAlone { | |
constructor(formElem) { | |
this.formElem = formElem; | |
this.formCheckSum = this.getFormCheckSum(); | |
// Events | |
this.boundBeforeunloadEventHandler = e => this.beforeunloadEventHandler(e); | |
window.addEventListener('beforeunload', this.boundBeforeunloadEventHandler); | |
this.formElem.addEventListener('submit', (e) => this.submitEventHandler(e)) |
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
abusaidm.html-snippets | |
bajdzis.vscode-twig-pack | |
bmewburn.vscode-intelephense-client | |
cjhowe7.laravel-blade | |
dakara.transformer | |
dbaeumer.vscode-eslint | |
eamodio.gitlens | |
ecmel.vscode-html-css | |
ecodes.vscode-phpmd | |
EditorConfig.EditorConfig |
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
{ | |
"editor.renderWhitespace": "all", | |
"editor.renderControlCharacters": true, | |
"files.trimTrailingWhitespace": true, | |
"editor.rulers": [ | |
80, | |
120 | |
], | |
"files.eol": "\n", | |
"editor.wordWrap": "on", |
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
#!/bin/bash | |
BLUE='\033[0;34m' | |
NC='\033[0m' # No Color | |
COMPOSER='php73 -d memory_limit=4G composer.phar' | |
SF='php73 bin/console' | |
DOTENV='.env.local' | |
echo -e "${BLUE}\n---------------------- Git pull ----------------------\n${NC}" |
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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] | |
RewriteCond %{HTTPS} !on | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
# Symfony redirect to public | |
# RewriteCond %{REQUEST_URI} !^public |
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
#!/bin/bash | |
# send email to one recipient (content in var) | |
# $host - eg. smtp.devpack.pl | |
# $port - 587 | |
# $user - [email protected] | |
# $pass - password | |
# $recipient - recipient | |
# $content - message content must hace headers | |
# $subject - message subject |
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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_expires.c> | |
ExpiresActive On | |
# Data | |
ExpiresByType text/xml "access plus 1 year" | |
ExpiresByType text/html "access plus 1 year" | |
ExpiresByType text/plain "access plus 1 year" | |
ExpiresByType application/xml "access plus 1 year" | |
ExpiresByType application/json "access plus 1 year" | |
ExpiresByType application/rss+xml "access plus 1 year" |