npm i eslint eslint-loader eslint-plugin-vue --save-dev
This should help you get Sendmail installed with basic configuration on Ubuntu.
- If sendmail isn't installed, install it:
sudo apt-get install sendmail
- Configure
/etc/hosts
file:nano /etc/hosts
- Make sure the line looks like this:
127.0.0.1 localhost yourhostname
- Run Sendmail's config and answer 'Y' to everything:
sudo sendmailconfig
- Restart apache
sudo service apache2 restart
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
sudo apt-get install ssl-cert | |
sudo make-ssl-cert generate-default-snakeoil | |
sudo usermod --append --groups ssl-cert root | |
ls -l /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key |
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
/** | |
* function to generate random strings | |
* @param int $length number of characters in the generated string | |
* @return string a new string is created with random characters of the desired length | |
*/ | |
function RandomString($length = 32) { | |
$randstr = ''; | |
srand((double) microtime(TRUE) * 1000000); | |
//our array add all letters and numbers if you wish | |
$chars = array( |
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
/** | |
* @version 1.0.0 | |
* Приводит строку к формату временного интервала ISO 8601 (только часы, минуты, секунды) | |
* | |
* @var string $duration_by_human Строка в понятном для человека формате (напр., 3 часа 22 минуты 15 секунд) | |
* @var string $period_designator Указатель временного периода | |
* | |
* @return string Отформатированная строка | |
* | |
* @see https://en.wikipedia.org/wiki/ISO_8601 Документация по ISO_8601 |
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
function schema_org_author_posts_link( $link ) { | |
$link = sprintf( '<a itemprop="author" itemscope itemtype="https://schema.org/Person" href="%1$s" title="%2$s" rel="author"><span itemprop="name">%3$s</span></a>', | |
esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), | |
/* translators: %s: author's display name */ | |
esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), | |
get_the_author() | |
); | |
return $link; | |
} |
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
{ | |
"protocol": "sftp", | |
"host": "", | |
"username": "", | |
"password": "", | |
"remotePath": "", | |
"uploadOnSave": false, | |
"ignore": [ | |
".vscode", ".node", ".webpack", ".git", ".gitignore" | |
], |
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
/** | |
* Выводит блок ссылок на средства публикации соцсетей | |
*/ | |
function wph_share_links() { | |
global $post; | |
echo '<div class="share">'; | |
$url = urlencode( get_permalink( $post->ID ) ); | |
$title = urlencode( get_the_title( $post->ID ) ); | |
$description = urlencode( get_the_excerpt( $post->ID ) ); |