Skip to content

Instantly share code, notes, and snippets.

View tulvit's full-sized avatar

Vitaly Tulin tulvit

View GitHub Profile
@tulvit
tulvit / site.conf
Last active October 30, 2019 06:53
Apache2 Vitrualhost default conf file with a redirection from with www to without www included. Change: "user" to username, "site.com" to a desired domain.
# domain: site.com
# public: /home/username/public/site.com/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin admin@site.com
ServerName site.com
ServerAlias www.site.com
# Index file and Document Root (where the public files are located)
@tulvit
tulvit / 0-default.conf
Created February 13, 2019 21:12
Default Virtualhost conf file for Apache2, returning 503 Service Unavailable status code with a custom message.
<VirtualHost *:80>
Redirect 503 /
ErrorDocument 503 "Nothing to see here!"
</VirtualHost>
@tulvit
tulvit / clearfix.css
Created February 18, 2019 07:56
Clearfix hack.
.clearfix::after {
content: "";
clear: both;
display: table;
}
@tulvit
tulvit / sh
Last active February 26, 2019 11:13
SASS command to watch master.scss file and produce compressed style.css file.
sass --watch --sourcemap=none --style=compressed sass/master.scss:style.css
@tulvit
tulvit / errors.php
Last active July 18, 2019 12:18
PHP showing all errors
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
@tulvit
tulvit / development.css
Created September 15, 2019 17:59
Development CSS (highlighting all elements)
* {
color: #ffffff !important;
background-color: rgba(9, 52, 80, 0.7) !important;
outline: 0.25rem dashed rgba(255, 255, 255, 0.5) !important;
}