Skip to content

Instantly share code, notes, and snippets.

View ephrin's full-sized avatar

Volodymyr Myrza ephrin

  • Vinnytsia/Ukraine
View GitHub Profile
<SMS>
<operations>
<operation>SEND</operation>
</operations>
<authentification>
<username></username>
<password></password>
</authentification>
<message>
<sender></sender>
@ephrin
ephrin / GuzzleProxyTrait.php
Created July 31, 2015 09:46
trait with serializer mounted
<?php
/*
* This file is part of the Hotels24.ua project.
*
* (c) Hotels24.ua 2007-2015
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var flipNamesByTransaction = function(transactionId){
if(flipMailsAndReview == undefined){
throw "flipMailsAndReview must be loaded.";
}
var reviewCollection = db.getSiblingDB("hotels").getCollection("reviews");
var query = {transaction: transactionId};
hotels24:PRIMARY> flipNamesByTransaction(405944)
found 1 reviews for transaction. flipping
ok. profile flipped.
changed review client.name for transaction :405944 from "Кіндзерська" to "Леся"
done
hotels24:PRIMARY> flipNamesByTransaction(422927)
found 1 reviews for transaction. flipping
ok. profile flipped.
changed review client.name for transaction :422927 from "Лопатюк" to "Кристина"
done
@ephrin
ephrin / CalendarFields.php
Created August 20, 2015 10:04
calendar fields mapping
<?php
/*
* This file is part of Hotels24.ua project (c) 2008-2014.
* @author: lazycommit
* @date: 11/29/13
* @time: 2:47 PM
*/
namespace Classes\v1\Hotels\Calendar;
/**
*
* Class BookingStatus
* @package Types
*/
class BookingStatus extends AbstractType
{
const BOOKING_SUBMIT = 'bookingSubmit'; // Без фг. забронировано
const NOT_CONFIRM_ORAL = 'notConfirmOral'; //// Без фг. забронировано
const CANCEL_ORAL = 'cancelOral'; // Без фг. отменено / незаезд
Cause
com.atlassian.crowd.exception.runtime.OperationFailedException: The following URL does not specify a valid Crowd User Management REST service: http://10.1.10.4:8081/rest/usermanagement/1/authentication?username=matey
at com.atlassian.crowd.embedded.core.CrowdServiceImpl.convertOperationFailedException(CrowdServiceImpl.java:855)
caused by: com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://10.1.10.4:8081/rest/usermanagement/1/authentication?username=matey
at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.executeCrowdServiceMethod(RestExecutor.java:423)
Stack Trace:[hide]
<?php
/**
* @see origin link http://pastebin.com/42p0u0DL
*/
require '../../vendor/autoload.php';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
@ephrin
ephrin / gen-cert.sh
Created October 6, 2015 11:21
get cert
openssl req -newkey rsa:4096 -nodes -sha256 -keyout certs/registry.ephrin.net.key -x509 -days 365 -out certs/registry.ephrin.net.crt
@ephrin
ephrin / gist:4c6999eff8e73c20a6e9
Created October 6, 2015 12:51
bash current dir
CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"