This file contains 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
mysql -uroot -p123 -e "CREATE USER 'homestead'@'%' IDENTIFIED BY 'secret';" | |
mysql -uroot -p123 -e "GRANT ALL PRIVILEGES ON * . * TO 'homestead'@'%';" |
This file contains 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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAEYklEQVR4Xu3UAQkAAAwCwdm/9HI83BLIOdw5AgQIRAQWySkmAQIEzmB5AgIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfoAAgYyAwcpUJSgBAgbLDxAgkBEwWJmqBCVAwGD5AQIEMgIGK1OVoAQIGCw/QIBARsBgZaoSlAABg+UHCBDICBisTFWCEiBgsPwAAQIZAYOVqUpQAgQMlh8gQCAjYLAyVQlKgIDB8gMECGQEDFamKkEJEDBYfo |
This file contains 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
select * from reporting_hourly limit 5; | |
+----+-------+-------------+------------+----------+------------+-------------+---------+---------------------+-----+---------+---------------------+-------------+----------+--------+---------------------+----------+-------------+--------+-------+-------------+ | |
| id | count | campaign_id | event_type | movie_id | paysite_id | tubesite_id | browser | time | asn | zone_id | count_thirdparty_id | views_count | external | repeat | visit_view_time | price | language_id | geo_id | os_id | platform_id | | |
+----+-------+-------------+------------+----------+------------+-------------+---------+---------------------+-----+---------+---------------------+-------------+----------+--------+---------------------+----------+-------------+--------+-------+-------------+ | |
| 1 | 1 | 0 | 3 | 0 | 0 | 2 | Firefox | 2015-04-21 09:00:00 | 0 | 3 | 1 | 0 | 0 | 0 | 0000-00-00 00: |
This file contains 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
; | |
32,1;povar345;POWER OF DARKNESS; | |
102,1;wolfik32;; | |
147,1;Варлорд;; | |
160,2;Jettorio;; | |
183,256;Vassekho;; | |
187,2;ElPresident;; | |
206,256;Dmi3;Inferno; | |
240,256;Ir0nF1st;; | |
16,4;Sanches;POWER OF DARKNESS; |
This file contains 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
class User | |
include Buyer | |
include BuyerWithShotgun | |
end | |
class Buyer | |
private money | |
def canPay(price) | |
money > price | |
end |
This file contains 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
[CategoryFrameIoList, CategoryFrameSize] = | |
if WriteCategory == true -> | |
[[CategorySize = byte_size(Category), Category], CategorySize + 4]; | |
true -> [[], 0] | |
end, |
This file contains 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
{ok, Client} = riak:client_connect('riak@192.168.11.123'). | |
Mine = riak_object:new(<<"groceries">>, <<"mine">>, ["eggs", "bacon"]). | |
Yours = riak_object:new(<<"groceries">>, <<"yours">>, ["bread", "bacon"]). | |
Client:put(Yours, 1). | |
Client:put(Mine, 1). | |
Map = fun(G, 'undefined', 'none')->[G] end. | |
Reduce = fun(Glist, 'none') -> Glist end. |
This file contains 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
-module(ru_stem). | |
-export([ | |
standard_analyzer_factory/2 | |
]). | |
-define(UPPERCHAR(C), (C >= $A andalso C =< $Z) orelse (C >= 1040 andalso C =< 1071)). | |
-define(LOWERCHAR(C), (C >= $a andalso C =< $z) orelse (C >= 1072 andalso C =< 1103)). | |
-define(NUMBER(C), (C >= $0 andalso C =< $9)). | |
-define(WHITESPACE(C), ((C == $\s) orelse (C == $\n) orelse (C == $\t) orelse (C == $\f) orelse (C == $\r) orelse (C == $\v))). |
This file contains 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
Потому было б интересно услышать по ваш опыт использования Риака. Что у вас за система (в общем виде и как в ней юзаеться риак.) | |
Юзали ли серьезно мап-редьюс, как делали индексы(прикручивали ли поиск ?\2i), какие самые большие проблемы были и как обходили. | |
Если есть еще знакомые с опытом использования риака меня можно пнуть в их сторону(Льва Валкина еще спрошу, но и так неплохо знаю как у них система работает, он пишет подбробно + общался с парой человек из их команды =)). |
This file contains 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
Package: erlang | |
State: installed | |
Automatically installed: no | |
Version: 1:13.b.3-dfsg-2ubuntu2.1 | |
Priority: optional | |
Section: universe/interpreters | |
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> | |
Uncompressed Size: 86.0k | |
Depends: erlang-base | erlang-base-hipe, erlang-dev, erlang-appmon, erlang-asn1, erlang-common-test, erlang-corba, erlang-crypto, erlang-debugger, | |
erlang-dialyzer, erlang-docbuilder, erlang-edoc, erlang-erl-docgen, erlang-et, erlang-eunit, erlang-gs, erlang-ic, erlang-inets, |
OlderNewer