Skip to content

Instantly share code, notes, and snippets.

View orloffv's full-sized avatar

Vitaly Orlov orloffv

View GitHub Profile
<!DOCTYPE html>
<!--[if lt IE 7]> <html lang="ru" class="ie ie6 lte9 lte8 lte7 os-mac"> <![endif]-->
<!--[if IE 7]> <html lang="ru" class="ie ie7 lte9 lte8 lte7 os-mac"> <![endif]-->
<!--[if IE 8]> <html lang="ru" class="ie ie8 lte9 lte8 os-mac"> <![endif]-->
<!--[if IE 9]> <html lang="ru" class="ie ie9 lte9 os-mac"> <![endif]-->
<!--[if gt IE 9]> <html lang="ru" class="os-mac"> <![endif]-->
<!--[if !IE]><!--> <html lang="ru" class="os-mac"> <!--<![endif]-->
<head>
@orloffv
orloffv / gist:7212108
Created October 29, 2013 10:23
curl persons
curl 'https://api.staffim.ru/companies/50b8b5580b212ac348000002/persons' -H 'Pragma: no-cache' -H 'Origin: https://ext.staffim.ru' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Accept-Language: en-US,en;q=0.8,ru;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1685.0 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: text/plain, */*; q=0.01' -H 'Cache-Control: no-cache' -H 'Referer: https://ext.staffim.ru/modal.php' -H 'Cookie: __utma=122957641.359864242.1371733900.1382702225.1382704289.3; __utmz=122957641.1371733900.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=7djagem59u4b0bf4v8bv7fekv6' -H 'Connection: keep-alive' --data $'{"lastName":"\u041c\u043e\u0438\u0441\u0435\u0435\u043d\u043a\u043e","firstName":"\u0410\u043b\u0438\u043d\u0430","middleName":"\u0410\u043d\u0430\u0442\u043e\u043b\u044c\u0435\u0432\u043d\u0430","emails":["a-a-moiseenko@mail.ru"],"phones":["+7\xa0924\xa0108931
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [],
"entries": [
{
<Directory "/Users/orloffv/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
NameVirtualHost *:80
<VirtualHost *:80>
{
"id": "52653242c469888c718b4568",
"email": "user@example.com",
"firstName": "Татьяна",
"lastName": "Климентова",
"phone": null,
"workPhone": null,
"position": null,
"timezone": "Europe\/Moscow",
clean: function(str){
return _s.strip(str).replace(/\s+/g, ' ');
},
curl 'http://mole_branch.local/companies/52205c215799e64e09000028/vacancies/52205c225799e64e090001fe/job_board_vacancies' -H 'Pragma: no-cache' -H 'Origin: http://orloffv.staffim.dev.staffim.ru' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Host: mole_branch.local' -H 'Accept-Language: en-US,en;q=0.8,ru;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' -H 'Referer: http://orloffv.staffim.dev.staffim.ru/vacancy/52205c225799e64e090001fe' -H 'Cookie: PHPSESSID=o5pl93tghehfp6bjfe5sge86k1' -H 'Connection: keep-alive' --data-binary '{"url":"http://hh.ru/vacancy/1234567","enabled":true,"type":"hh","jobBoardAccount":{"id":"522471415799e6240400000d","login":"v.orlov@staffim.ru","password":null,"type":"hh"}}' --compressed
curl -v "http://mole.dev.staffim.ru/companies/51d6a467c469888e54000024/vacancies/51d6a47fc469888e54000138/approval" -H "Pragma: no-cache" -H "Origin: http://staffim.dev.staffim.ru" -H "Accept-Encoding: gzip,deflate,sdch" -H "Host: mole.dev.staffim.ru" -H "Accept-Language: en-US,en;q=0.8,ru;q=0.6" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36" -H "Content-Type: application/json" -H "Accept: application/json, text/javascript, */*; q=0.01" -H "Cache-Control: no-cache" -H "Referer: http://staffim.dev.staffim.ru/vacancy/51d6a47fc469888e54000138/applicants" -H "Cookie: __utma=122957641.1447982110.1363609090.1372751077.1373025871.39; __utmc=122957641; __utmz=122957641.1372751077.38.9.utmcsr=orloffv.staffim.dev.staffim.ru|utmccn=(referral)|utmcmd=referral|utmcct=/person/5194df745799e668700000e8; PHPSESSID=hras3hspqpallfdr4q2sk9rir5" -H "Connection: keep-alive" --data-binary "{\"applicant\":\"51d6a47fc469888e540001a6\",\"collabo
MIME-Version: 1.0
Reply-To: mail@orloffv.ru
Sender: orloff.v@gmail.com
Received: by 10.52.232.200 with HTTP; Mon, 8 Jul 2013 04:27:42 -0700 (PDT)
In-Reply-To: <CADCgWs+skev3yu_C0X2hj1sOO5D-OBLtOe7KAmipD6Wv6sMvPw@mail.gmail.com>
References: <1373282559.51daa0ffc9e91@mole.dev.staffim.ru>
<CADCgWs+skev3yu_C0X2hj1sOO5D-OBLtOe7KAmipD6Wv6sMvPw@mail.gmail.com>
X-Goomoji-Body: true
Date: Mon, 8 Jul 2013 15:27:42 +0400
From ivan.ivanov@example.com Fri Jul 05 09:06:13 2013
Received: from localhost ([127.0.0.1])
by vagrant-orlov with smtp (Exim 4.72)
(envelope-from <ivan.ivanov@example.com>)
id 1Uv11x-0004KC-Or
for ma.51d67e4b5799e6ab400001a6-51d67e725799e69d40000005@mole.local; Fri, 05 Jul 2013 09:06:13 +0100
In-Reply-To: <1373011571.51d67e7304c74@mole.local>
References: <1373011571.51d67e7304c74@mole.local>
From: ivan.ivanov@example.com
To: ma.51d67e4b5799e6ab400001a6-51d67e725799e69d40000005@mole.local