Getting started:
Related tutorials:
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
var parallaxController; | |
!function() { | |
function t() { | |
for (var t = 1; t < arguments.length; t++) | |
for (var e in arguments[t]) | |
arguments[t].hasOwnProperty(e) && (arguments[0][e] = arguments[t][e]); | |
return arguments[0] | |
} | |
function e() { | |
var t = this |
magick *.jpg -resize 1920x1280 -quality 50 optimized/img.jpg |
.youtube { | |
background-position: center; | |
background-repeat: no-repeat; | |
position: relative; | |
display: inline-block; | |
overflow: hidden; | |
transition: all 200ms ease-out; | |
cursor: pointer; | |
max-width: 100% | |
} |
# Don't show errors which contain full path diclosure (FPD) | |
# Use that line only if PHP is installed as a module and not per CGI | |
# try using a php.ini in that case. | |
# Change mod_php5.c to mod_php7.c if you are running PHP7 | |
<IfModule mod_php5.c> | |
php_flag display_errors Off | |
</IfModule> | |
# Don't list directories | |
<IfModule mod_autoindex.c> |
Getting started:
Related tutorials:
wget -nd -r -P /Users/denisromanenko/Downloads/villa/ -A jpeg,jpg,bmp,gif,png --no-check-certificate --no-parent --timestamping --convert-links --page-requisites --no-directories --no-host-directories -erobots=off https://www.somesite/index.html |
# Install linux update, followed by GCC and Make | |
sudo yum -y update | |
sudo yum install -y gcc make | |
# Install Nginx and PHP-FPM | |
sudo yum install -y nginx php-fpm | |
# Install PHP extensions | |
sudo yum install -y php-devel php-mysql php-pdo \ | |
php-pear php-mbstring php-cli php-odbc \ |
<?php | |
/** | |
* Функция склонения числительных в русском языке | |
* | |
* @param int $number Число которое нужно просклонять | |
* @param array $titles Массив слов для склонения | |
* @return string | |
**/ | |
$titles = array('котик', 'котика', 'котиков'); | |
function declOfNum($number, $titles) |
import 'dart:html'; | |
import 'package:angular2/core.dart'; | |
import 'package:angular2/router.dart'; | |
@Component( | |
selector: 'my-app', | |
styleUrls: const ['app_component.css'], | |
template: ''' | |
<h1>My First Angular 2 App</h1> |