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 | |
/* | |
This code sample demonstrates several style for representing an option array with | |
the following fields: name, label, type_id, visible, default. | |
When designing this we should keep in mind that the option key may be represented | |
by either a literal or a (class)constant. As such we mix and match those for | |
illustrative purposes. | |
*/ |
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 | |
# NB: First install nscd with sudo apt-get install nscd | |
# run this command to flush dns cache: | |
sudo /etc/init.d/dns-clean restart | |
# or use: | |
sudo /etc/init.d/networking force-reload | |
# Flush nscd dns cache: | |
sudo /etc/init.d/nscd 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
Создание бота будет доступно для всех. Тем не менее, возможность отображения в поиске и в списке на Discover Screen будет рассматриваться командой Viber. | |
Первичная регистрация | |
partners.viber.com → Create an account | |
Регистрируемся. Вводим номер телефона, получаем код в viber для проверки и прочие поля. | |
Создание бота (получение токена) | |
Авторизуемся partners.viber.com → Create Bot Account | |
Заполняем форму (самое сложное это картинку подобрать) |
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
########## Install NGINX ############## | |
# Install software-properties-common package to give us add-apt-repository package | |
sudo apt-get install -y software-properties-common | |
# Install latest nginx version from community maintained ppa | |
sudo add-apt-repository ppa:nginx/stable | |
# Update packages after adding ppa |
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
localhost ssl https://stackoverflow.com/questions/25946170/how-can-i-install-ssl-on-localhost-in-ubuntu | |
en mod_rewrite https://webmasters.stackexchange.com/questions/61009/how-to-enable-use-of-htaccess-in-apache-on-ubuntu | |
update nodejs https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version |
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 update | |
sudo apt-get install nodejs | |
sudo apt-get install npm | |
ln -s /usr/bin/nodejs /usr/bin/node | |
npm install webpack -g | |
babel: | |
npm install --save-dev babel-loader babel-core babel-preset-env webpack | |
(babel-preset-es2015) |
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
http://www.omgubuntu.co.uk/2017/05/how-to-install-sublime-text-ubuntu-linux | |
http://appnee.com/sublime-text-3-universal-license-keys-collection-for-win-mac-linux/ | |
or symply | |
—– BEGIN LICENSE —– | |
Molex, Inc. | |
Single User License | |
EA7E-818977 | |
AE248E13 C08A1CDF 2D6751EF 32243003 | |
53F5EF8A 1522F537 6A09E721 030DC36C | |
C477DA16 2BD1681C 0164D104 BB58D77F |
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
https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ | |
if (http://localhost/phpmyadmin/ return 404) -> https://help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting_Phpmyadmin_.26_mysql-workbench |