Skip to content

Instantly share code, notes, and snippets.

Vitaly Tulin tulvit

Block or report user

Report or block tulvit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tulvit
tulvit / development.css
Created Sep 15, 2019
Development CSS (highlighting all elements)
View development.css
* {
color: #ffffff !important;
background-color: rgba(9, 52, 80, 0.7) !important;
outline: 0.25rem dashed rgba(255, 255, 255, 0.5) !important;
}
@tulvit
tulvit / errors.php
Last active Jul 18, 2019
PHP showing all errors
View errors.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
@tulvit
tulvit / sh
Last active Feb 26, 2019
SASS command to watch master.scss file and produce compressed style.css file.
View sh
sass --watch --sourcemap=none --style=compressed sass/master.scss:style.css
View clearfix.css
.clearfix::after {
content: "";
clear: both;
display: table;
}
@tulvit
tulvit / 0-default.conf
Created Feb 13, 2019
Default Virtualhost conf file for Apache2, returning 503 Service Unavailable status code with a custom message.
View 0-default.conf
<VirtualHost *:80>
Redirect 503 /
ErrorDocument 503 "Nothing to see here!"
</VirtualHost>
@tulvit
tulvit / site.conf
Last active Oct 30, 2019
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.
View site.conf
# 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)
You can’t perform that action at this time.