Skip to content

Instantly share code, notes, and snippets.

View psihonavt's full-sized avatar

Anton Koval psihonavt

View GitHub Profile
In [116]: client = newpymongo.MongoClient(["messagesdb1.virtual.ninternal.com:27017"])
In [117]: db = client.get_database("test")
In [118]: db.collection_names()
Out[118]: [u'test']
In [119]: collection = db['test']
In [120]: collection
[root@app1 ~]# mongo messagesdb1.virtual.ninternal.com:27017
MongoDB shell version: 3.0.12
connecting to: messagesdb1.virtual.ninternal.com:27017/test
Server has startup warnings:
2020-06-21T15:17:57.671+0000 I CONTROL [initandlisten]
2020-06-21T15:17:57.671+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2020-06-21T15:17:57.671+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2020-06-21T15:17:57.671+0000 I CONTROL [initandlisten]
2020-06-21T15:17:57.672+0000 I CONTROL [initandlisten]
2020-06-21T15:17:57.672+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
Delivered-To: anton@nimble.com
Received: by 10.27.184.6 with SMTP id i6csp81852wlf;
Wed, 9 Sep 2015 01:42:19 -0700 (PDT)
X-Received: by 10.180.75.176 with SMTP id d16mr54538910wiw.75.1441788139160;
Wed, 09 Sep 2015 01:42:19 -0700 (PDT)
Return-Path: <m.korbakov@nimble.com>
Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com. [209.85.212.180])
by mx.google.com with ESMTPS id kf6si11215377wjb.11.2015.09.09.01.42.19
for <anton@nimble.com>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Process: Hermes [11957]
Path: /Applications/Hermes.app/Contents/MacOS/Hermes
Identifier: com.alexcrichton.Hermes
Version: 1.2.6 (2035)
Code Type: X86-64 (Native)
Parent Process: zsh [82708]
Responsible: iTerm [82504]
User ID: 501
Date/Time: 2015-05-18 11:23:57.235 +0300
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="World of Tanks, Мир Танков, Мировая Война, клановые войны, глобальная карта, противостояние, клан" />
<meta name="Description" content="Бесплатная онлайн-игра World of Tanks — MMO-action о танках Второй мировой. Официальный сайт: скачать игру, поддержка, форум, FAQ. Лучшая игра 2011!" />
<meta property="og:image" content="http://worldoftanks.ru/static/3.13.1.3/common/img/world-of-tanks_social.jpg" />
{% include "generals/part_title.html" with context %}
<link rel="stylesheet" type="text/css" href="https://worldoftanks.ru/static/3.13.1.3/common/css/style.css" media="screen" id="screenview" />
<link rel="stylesheet" type="text/css" href="https://worldoftanks.ru/static/3.13.1.3/common/css/main.css" media
Index: generals/admin.py
===================================================================
--- generals/admin.py (revision 326993)
+++ generals/admin.py (working copy)
@@ -46,9 +46,9 @@
#XXX hack for running tests
#during tests running django.contrib.admin.sites.NotRegistered: The model TaskState is not registered will be raised
-if "test" not in sys.argv:
- admin.site.unregister(TaskState)
POST /api/request_metadata
Params: langauge (agent language)
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="metadata">
<protocol_version>1.0</protocol_version>
<game_id>WOT</game_id>
<game_status>normal</game_status>
<game_size>10000000000(in bytes?)</game_size>