I recently upgrade my Ubuntu 15.04 to 16.04 and this has worked for me:
-
First, connect in sudo mysql
sudo mysql -u root
-
Check your accounts present in your db
SELECT User,Host FROM mysql.user;
I recently upgrade my Ubuntu 15.04 to 16.04 and this has worked for me:
First, connect in sudo mysql
sudo mysql -u root
Check your accounts present in your db
SELECT User,Host FROM mysql.user;
В. П. Погожев. Воспоминания о П. И. Чайковском
Назначенное Чайковскому пособие в 3000 рублей в год, то есть по 250 рублей в месяц, не могло сразу улучшить его материальное положение, тем более что первые два месяца 1888 года Петр Ильич провел за границей в своем триумфальном, но убыточном для кармана шествии по Западной Европе. Непрактичность Чайковского, его необычайная щедрость и неумеренная деликатность в денежных вопросах были изумительны. Достаточно указать, например, на то, что передавая Дирекции театров по условию 4 ноября 1887 года права на представление своей оперы «Чародейка» он с легким сердцем третью часть своего авторского вознаграждения передал либреттисту оперы И. В. Шпажинскому.
Эта нерасчетливость Петра Ильича в его тратах привела к тому, что он вернулся в Россию без денег и писал мне уже с Кавказа так:
«28 марта 1888 года, Тифлис.
Многоуважаемый Владимир Петрович!
// ==UserScript== | |
// @name Gmail Icon | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://mail.google.com/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.2.1.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js |
# Redis configuration file example. | |
# | |
# Note that in order to read the configuration file, Redis must be | |
# started with the file path as first argument: | |
# | |
# ./redis-server /path/to/redis.conf | |
# Note on units: when memory size is needed, it is possible to specify | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# |
resize_images = (resize = false) -> | |
resize_single = (that) -> | |
if that.height() <= 200 | |
that.css({'width': 'auto', 'height': '100%'}) | |
else | |
that.css({'width': '100%', 'height': 'auto'}) | |
resize_process = (that) -> | |
# change dimensions to original | |
that.css({'width': 'auto', 'height': 'auto'}) | |
# fit parent box |
Add to Gemfile:
gem 'sunspot_rails'
gem 'sunspot_solr' # optional pre-packaged Solr distribution for use in development
Bundle it!
bundle update
Generate a default configuration file:
DEB from elastic.co:
add-apt-repository -y ppa:webupd8team/java && apt-get update && apt-get -y install oracle-java8-installer && wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.2.deb && dpkg -i elasticsearch-5.1.2.deb && update-rc.d elasticsearch defaults && /etc/init.d/elasticsearch start && rm elasticsearch-5.1.2.deb
Edit file /etc/aliases
add:
root: [email protected]
Run:
newaliases
Check your MTA:
@oauth = Koala::Facebook::OAuth.new(<app_id>, <app_secret>, 'https://site.com/')
code = @oauth.url_for_oauth_code(:permissions => "publish_actions,manage_pages,publish_pages")
=> "https://www.facebook.com/dialog/oauth?client_id=<app_id>&redirect_uri=https%3A%2F%2Fsite.com%2F&scope=publish_actions%2Cmanage_pages%2Cpublish_pages"
Open that url in browser and grant access to app. At the end you will be redirected to your website https://site.com/?code=<access_token>
. Paste access token here:
@oauth.get_access_token_info(<access_token>)
Paste that access token here:
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
make install
redis.conf