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
{ | |
"status": "ok", | |
"count": 1, | |
"data": { | |
"461": { | |
"clan": { | |
"role_i18n": { | |
"ru": "ротный командир", | |
"fr": "ротный командир", | |
"en": "ротный командир", |
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
{ | |
"status": "ok", | |
"count": 100, | |
"data": [ | |
{ | |
"clan_id": 1, | |
"nickname": "SerB", | |
"id": 461 | |
}, | |
{ |
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
{ | |
"status": "ok", | |
"count": 1, | |
"data": [ | |
{ | |
"date": 1376899992, | |
"hours_ago": 24, | |
"stat": { | |
"achievements": { | |
"tank_expert_uk": 0, |
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
{ | |
"status": "ok", | |
"count": 2, | |
"data": { | |
"19213": { | |
"clan": { | |
"role_i18n": { | |
"ru": "заместитель командира", | |
"fr": "Commandant suppléant", | |
"en": "Deputy Commander", |
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
{ | |
"status": "ok", | |
"count": 1, | |
"data": { | |
"461": { | |
"spotted": { | |
"place": 81659, | |
"value": 27571 | |
}, | |
"dropped_ctf_points": { |
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
{ | |
"status": "ok", | |
"count": 1, | |
"data": { | |
"1": { | |
"members_count": 100, | |
"description": "Закрытый клан, в состав которого входят лишь разработчики игры "World of Tanks".\n\nЗаявки, посланные командиру клана через форум, НЕ РАССМАТРИВАЮТСЯ .", | |
"description_html": "<p>Закрытый клан, в состав которого входят <i>лишь</i> разработчики игры "World of Tanks".\n</p><p>\n<br/>Заявки, посланные командиру клана через форум, <i>НЕ РАССМАТРИВАЮТСЯ</i> .\n</p>", | |
"created_at": 1293024672, | |
"updated_at": 1375930001, |
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
{ | |
"status": "ok", | |
"count": 48, | |
"data": [ | |
{ | |
"members_count": 48, | |
"name": "\"Белая гвардия\"", | |
"created_at": 1335298122, | |
"abbreviation": "WG1", | |
"clan_id": 24810, |
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
#!/bin/bash | |
cd /media/dumps | |
name=$(date +%b-%d) | |
year=$(date +%Y) | |
[ -d $year ] || mkdir $year || { echo "Could not create directory '$year'"; exit 1; } | |
mongodump --db t3_mage --out $name &> mongodump.log | |
if [ $? ]; then | |
tar -czf snapshots/$year/$name.tgz $name | |
if [ $(($(date +%d | sed 's/^0*//') % 10)) == 0 ]; then |
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
// Basic XMPP bot example for MUC using node.js | |
// To use: | |
// 1. Set config variables | |
// 2. Run `node xmpp_bot.js` | |
// 3. Send a message like "!weather 94085" in the room with the bot | |
var request = require('request'); // npm install request |
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
// Basic XMPP bot example for HipChat using node.js | |
// To use: | |
// 1. Set config variables | |
// 2. Run `node hipchat_bot.js` | |
// 3. Send a message like "!weather 94085" in the room with the bot | |
var request = require('request'); // github.com/mikeal/request | |
var sys = require('sys'); | |
var util = require('util'); |
OlderNewer