Skip to content

Instantly share code, notes, and snippets.

@dovgyj
dovgyj / gist:f033033c6b246e8ac134e19533c853bf
Created August 16, 2018 19:42 — forked from mvriel/gist:3822861
Option arrays in PHPDoc
<?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.
*/
@dovgyj
dovgyj / flush-dns.sh
Created August 10, 2018 13:56 — forked from craigvantonder/flush-dns.sh
Flushing the DNS in Ubuntu 16.04
#!/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
Создание бота будет доступно для всех. Тем не менее, возможность отображения в поиске и в списке на Discover Screen будет рассматриваться командой Viber.
Первичная регистрация
partners.viber.com → Create an account
Регистрируемся. Вводим номер телефона, получаем код в viber для проверки и прочие поля.
Создание бота (получение токена)
Авторизуемся partners.viber.com → Create Bot Account
Заполняем форму (самое сложное это картинку подобрать)
@dovgyj
dovgyj / Instructions.sh
Created July 31, 2018 21:20 — forked from GhazanfarMir/Instructions.sh
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## 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
@dovgyj
dovgyj / links
Last active September 4, 2017 22:10
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)
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
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