% free -h
total used free shared buff/cache available
Mem: 1,5G 26M 88M 372K 1,4G 1,3G
Swap: 756M 0B 756M
sync; echo 3 > /proc/sys/vm/drop_caches
% free -h
total used free shared buff/cache available
Mem: 1,5G 28M 1,4G 372K 27M 1,4G
Swap: 756M 0B 756M
parse_str(file_get_contents('php://input'), $rgInputData);
//var_dump($rgInputData);
SET SESSION max_user_connections = 123;
class Vehicle(API):
def _call_with_endpoint(self, lang, fields, account_id, endpoint):
if type(fields) is list:
fields = self._format_fields(fields)
return self._api_call(endpoint=endpoint,
fields=fields,
language=lang,
account_id=account_id)
def vehicle_stats(self, lang='ru', fields='', account_id=''):
endpoint = '/tanks/stats/'
return self._call_with_endpoint(lang=lang,
field=fields,
account_id=account_id,
endpoint=endpoint)
def vehicle_achievements(self, lang='ru', fields='', account_id=''):
endpoint = '/tanks/achievements/'
return self._call_with_endpoint(lang=lang,
field=fields,
account_id=account_id,
endpoint=endpoint)