Skip to content

Instantly share code, notes, and snippets.

View vymarkov's full-sized avatar
🎯
Focusing

Vitalii Markov vymarkov

🎯
Focusing
View GitHub Profile
var zlib = require('zlib');
var http = require('http');
var headers = {
"accept-charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.3",
"accept-language": "en-US,en;q=0.8",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13+ (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
"accept-encoding": "gzip,deflate",
};
using System;
using System.Net;
using System.IO;
using System.Collections.Generic;
namespace qwerty
{
class MainClass
{
public static void Main (string[] args)
@vymarkov
vymarkov / tl.cs
Last active August 29, 2015 14:05
using System;
using System.Net;
using System.IO;
using System.Collections.Generic;
using System.Numerics;
using System.Net.Sockets;
namespace qwerty
{
class MainClass
@vymarkov
vymarkov / gist:bee4afbd38b4b4077f17
Created September 2, 2014 13:31
qiwi.providers
<?xml version="1.0" encoding="windows-1251" ?>
<response result="0">
<providers>
<getProviders result="0">
<row long-name="На всех сразу" prv-id="0" short-name="Все провайдеры" />
<row fiscal-name="Сотовая св." long-name="Київстар Дж.Ес.ЕМ. ЗАТ " prv-id="158" prv-inn="216738326059" receipt-name="Сотовая связь" short-name="Kyivstar" />
<row fiscal-name="Инф.услуги" long-name="Реклама DirectContact" max-amount="15000" prv-id="323" receipt-name="Информационные услуги" short-name="Реклама DirectContact" />
<row fiscal-name="Эл.деньги" long-name="Украина. ООО &quot;Украинское Гарантийное Агенство&quot;" prv-id="437" receipt-name="Электронные деньги" short-name="WebMoney" />
<row long-name="Ошибка" max-amount="15000" prv-id="500" short-name="Ошибка" />
<row fiscal-name="Сотовая св." long-name="Інтернаціональні телекомунікації ТОВ
<?xml version="1.0" encoding="windows-1251" ?>
<response result="0">
<providers>
<checkPaymentRequisites result="0">
<payment date="2014-09-08T11:14:52+04:00" fatal="false" id="568781910" result="1" status="0" uid="15718427379004">
<extras AUTH_HOST="s1067.qiwi.com" PARSER_HOST="s1067.qiwi.com" />
</payment>
</checkPaymentRequisites>
</providers>
</response>
<?xml version="1.0" encoding="windows-1251" ?>
<request>
<auth login="deltabankxml" sign="" signAlg="MD5" />
<client terminal="9765370" software="Dealer v0" serial="" />
<providers>
<checkPaymentRequisites>
<payment id="519720365">
<from amount="21.01" currency="980" />
<to service="7366" account="0664734121" amount="21.01" />
<receipt id="28963720" date="2014-09-08T10:25:11" />
<?xml version="1.0" encoding="windows-1251" ?>
<request>
<auth login="delta_xml" sign="" signAlg="MD5" />
<client terminal="9752018" software="Dealer v0" serial="" />
<providers>
<authorizePayment>
<payment id="706456215">
<from amount="0.01" currency="980" />
<to service="7365" account="0686496985" amount="0.01" />
<receipt id="509998279" date="2014-09-12T17:11:04" />
@vymarkov
vymarkov / clear-cache.js
Last active August 29, 2015 14:26
clearCache
/*
clearCache();
clearCache('foo');
clearCache(path.resolve('foo'));
clearCache(['foo', 'bar']);
clearCache();
*/
clearCache: function clearCache(modules, removeChilds) {
modules = (modules === null || modules === undefined) && (arguments.length === 0) ? [require.main.filename] : modules;
modules = typeof modules === 'string' ? [modules] : modules;
; supervisor config file
;[unix_http_server]
;file=/var/run/supervisor.sock ; (the path to the socket file)
;chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)

Дока по установке и настройке окружения используя Vagrant. Для этого необходимо установить Vagrant (1.7.4) (https://www.vagrantup.com/) и Virtualbox.

  1. Установка.

1.1. Установка cask (если уже установлен переходите к пункту 2) используя следующую команду:

$ brew install caskroom/cask/brew-cask Так же можете обратиться к руководству (http://sourabhbajaj.com/mac-setup/Homebrew/Cask.html).