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
ALTER TABLE actions_0 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_1 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_10 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_100 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_101 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_102 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_103 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_104 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_105 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_106 DROP INDEX `type`, DROP INDEX `param`; |
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
ALTER TABLE actions_0 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_1 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_10 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_100 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_101 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_102 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_103 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_104 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_105 DROP INDEX `type`, DROP INDEX `param`; | |
ALTER TABLE actions_106 DROP INDEX `type`, DROP INDEX `param`; |
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
./cli jobs/tools/multi_run --count=8 --code='$db = $factory->getDaemonActionsBackend("riak"); $redis = $factory->getRedis();$file = $factory->getDaemonActionsBackend("file"); while ($id = $redis->popFromList("testList2")) { $actions = $file->getUserActions($id, null, array(), 5000); $actions[0] = array_reverse($actions[0]); $db->writeActions($actions[0], $id);}' | |
./cli jobs/tools/multi_run --count=8 --code='$db = $factory->getDaemonActionsBackend("db_sharded"); $redis = $factory->getRedis();$file = $factory->getDaemonActionsBackend("file"); while ($id = $redis->popFromList("testList3")) { $actions = $file->getUserActions($id, null, array(), 5000); $actions[0] = array_reverse($actions[0]); $db->writeActions($actions[0], $id);}' |
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
%% ------------------------------------------------------------------- | |
%% | |
%% basho_bench: Benchmarking Suite | |
%% | |
%% Copyright (c) 2009-2010 Basho Techonologies | |
%% | |
%% This file is provided to you under the Apache License, | |
%% Version 2.0 (the "License"); you may not use this file | |
%% except in compliance with the License. You may obtain | |
%% a copy of the License at |
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
Key = <<"X">. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Techmind: подписки в Google Reader</title> | |
</head> | |
<body> | |
<outline title="pming" text="pming"> | |
<outline text="2PM" title="2PM" type="rss" | |
xmlUrl="http://feeds.feedburner.com/2pm" htmlUrl="http://2pm.kz"/> | |
<outline text="a-Jail" title="a-Jail" type="rss" |
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
After we compiled this module on all nodes - http://en.literateprograms.org/Merge_sort_(Erlang) | |
{ok, Client} = riak:local_client(). | |
Client:put(riak_object:new(<<"sort_test">>, <<"1">> 1)). | |
Client:put(riak_object:new(<<"sort_test">>, <<"2">> 2)). | |
Client:put(riak_object:new(<<"sort_test">>, <<"3">> 3)). | |
Get = fun(G, _, _) -> [riak_object:get_value(G)] end. | |
Msort = fun(ReduceList, none) -> mergesort:msort_gte(ReduceList) 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
<?php | |
$content = file_get_contents('https://play.google.com/store'); | |
var_dump(strlen($content)); | |
preg_match_all("~<a href=\"(/store/apps/category/[A-Z_]*)~", $content, $matches); | |
$cats = array_unique($matches[1]); |
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
FORMAT: 1A | |
# A | |
text1 | |
## B [/questions] | |
### C [GET] |
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
==8014== Memcheck, a memory error detector | |
==8014== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. | |
==8014== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info | |
==8014== Command: /home/vagrant/php7/usr/sbin/php-fpm --nodaemonize --fpm-config /etc/php7/fpm/php-fpm.conf | |
==8014== Parent PID: 17209 | |
==8014== | |
==8015== Invalid write of size 4 | |
==8015== at 0x603F5F1: hs_index_object_init (handlersocketi_index.c:751) | |
==8015== by 0x603F9B3: handlersocketi_create_index (handlersocketi_index.c:794) | |
==8015== by 0x603B70B: zim_HandlerSocketi_open_index (handlersocketi_class.c:549) |