Skip to content

Instantly share code, notes, and snippets.

View kovyrin's full-sized avatar

Oleksiy Kovyrin kovyrin

View GitHub Profile
14/02/18 19:10:08 INFO net.NetworkTopology: Adding a new node: /default/10.84.56.10:50010
14/02/18 19:10:08 INFO net.NetworkTopology: Adding a new node: /default/10.80.72.204:50010
14/02/18 19:10:08 INFO net.NetworkTopology: Adding a new node: /default/10.60.120.8:50010
14/02/18 19:10:08 INFO net.NetworkTopology: Adding a new node: /default/10.80.72.196:50010
14/02/18 19:10:08 INFO net.NetworkTopology: Adding a new node: /default/10.84.56.2:50010
14/02/18 19:10:08 INFO balancer.Balancer: 4 over-utilized: [Source[10.84.56.10:50010, utilization=38.16673473609848], Source[10.60.120.8:50010, utilization=38.864087345097474], Source[10.80.72.196:50010, utilization=37.031010603198204], Source[10.84.56.2:50010, utilization=39.10853173385409]]
14/02/18 19:10:08 INFO balancer.Balancer: 0 underutilized: []
14/02/18 19:10:08 INFO balancer.Balancer: Need to move 304.36 GB to make the cluster balanced.
14/02/18 19:10:08 INFO balancer.Balancer: Decided to move 10 GB bytes from 10.84.56.10:50010 to 10.80.72.204:50010
14/02/1
~/work/OPENSOURCE/db-charmer/db-charmer 0 (rails4 *$)$ RAILS_VERSION=4.0.5 ./ci_build
-----------------------------------------------------------------------------------------------------------------
* Running specs for Rails version 4.0.5...
* Ruby version: ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin13.0.0]
* Rubygems version: 2.2.2
* DbCharmer gem version: 'trunk'
-----------------------------------------------------------------------------------------------------------------
....
....
Finished in 31.4 seconds (files took 1.01 seconds to load)

Keybase proof

I hereby claim:

  • I am kovyrin on github.
  • I am kovyrin (https://keybase.io/kovyrin) on keybase.
  • I have a public key whose fingerprint is E7D5 5EFE F899 C5E1 BEF8 5A3C C286 54FB 3764 5E8D

To claim this, I am signing this object:

[root@ops02.dal05 ~]# dig @NS1.HOVER.COM +short hover.com
;; connection timed out; no servers could be reached
[root@ops02.dal05 ~]# dig @NS2.HOVER.COM +short hover.com
;; connection timed out; no servers could be reached
[root@ops02.dal05 ~]# dig @NS3.HOVER.COM +short hover.com
;; connection timed out; no servers could be reached
--- constraints_parser.c (revision 57)
+++ constraints_parser.c (working copy)
@@ -392,14 +392,14 @@
// Check all tables
for (i = 0; i < table_definitions_cnt; i++) {
// Get table info
- table_def_t table = table_definitions[i];
- if (debug) printf(" (%s) ", table.name);
+ table_def_t *table = &(table_definitions[i]);
+ if (debug) printf(" (%s) ", table->name);
--- constraints_parser.c (revision 59)
+++ constraints_parser.c (working copy)
@@ -230,8 +230,9 @@
len = offs += field->fixed_length;
}
resolved:
+ offs &= 0xffff;
if (rec + offs - page > UNIV_PAGE_SIZE) {
- if (debug) printf("Invalid offset for field %li: %li\n", i, offs);
+ if (debug) printf("Invalid offset for field %lu: %lu\n", i, offs);
root@loops:/var/log# curl --HEAD http://127.0.0.1:8000/word/document_url/6417541
HTTP/1.1 302 Moved Temporarily
Connection: close
Date: Mon, 06 Oct 2008 23:55:01 GMT
Set-Cookie: _scribd_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7AA%253D%253D--f04a5432060febfe36092a7e2b74525af0d4a01b; domain=.scribd.com; path=/; expires=Sun, 01 Jan 2017 06:00:00 GMT
Status: 302 Found
Location: http://www.market-research-report.com/Merchant2/merchant.mvc?Store_Code=analysis&AFFIL=scribd2121&Screen=PROD&Product_Code=imtc0264
X-Runtime: 0.01000
Cache-Control: no-cache
Server: Mongrel 1.1.5
~/work/scribd/git/scribd_search (excerpts_only)
[02:57] $ curl 'http://localhost:8080/scribd_search/search?query=test+policy&doc=1&doc=2'
{"request_number":17,"query":"test policy","query_time":270,"excerpts":[{"doc_id":1,"excerpt":"... in an experiment, the conventional statistical <b>test<\/b> for differential expression is the t-... as highly significant by a conventional t-<b>test<\/b>. In reality -- and as additional ... two original vectors, the probability of a <b>test<\/b> vector having a distance below some ..."},{"doc_id":2,"excerpt":"... is unquestionably among a country\u2019s more important <b>policy<\/b> decisions. The choice of exchange ... money supply. An independent monetary <b>policy<\/b> allows counter-cyclical management of ... rates over an independent monetary <b>policy<\/b>, and the developing countries were ..."}]}
~/work/scribd/git/scribd (master)
[14:57] $ cap tests deploy
* executing `tests'
triggering start callbacks for `deploy'
* executing `multistage:ensure'
* executing `deploy'
* executing `deploy:before_deploy'
* executing `deploy:before_before_deploy'
* executing `deploy:check_lock'
* executing "if [ -e /var/www/apps/collegelist/shared/system/lock.txt ]; then cat /var/www/apps/collegelist/shared/system/lock.txt; fi"
mysql> CREATE FUNCTION `xml_escape_with_br`( tagvalue VARCHAR(2000)) RETURNS varchar(2000) DETERMINISTIC BEGIN IF (tagvalue IS NULL) THEN RETURN null; END IF; RETURN REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( tagvalue,'&','&amp;'), '<','&lt;'), '>','&gt;'), '"','&quot;'), '\'','&apos;'), '\n', '<br/>'); END$$
Query OK, 0 rows affected (0.00 sec)
mysql> DELIMITER ;
mysql> select xml_escape_with_br("<h1>hello, world!</h1>\n<p>We say: 'Alexey & Tikhon rock!'");
+-----------------------------------------------------------------------------------------------+
| xml_escape_with_br("<h1>hello, world!</h1>\n<p>We say: 'Alexey & Tikhon rock!'") |
+-----------------------------------------------------------------------------------------------+
| &lt;h1&gt;hello, world!&lt;/h1&gt;<br/>&lt;p&gt;We say: &apos;Alexey &amp; Tikhon rock!&apos; |
+-----------------------------------------------------------------------------------------------+
1 row in set (0.04 sec)