Skip to content

Instantly share code, notes, and snippets.

View rogyar's full-sized avatar
:electron:

Yaroslav Rogoza rogyar

:electron:
View GitHub Profile
@rogyar
rogyar / 0_reuse_code.js
Created October 19, 2016 13:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rogyar
rogyar / cache-warmup.sh
Created April 10, 2016 10:52
Cache Warmup
wget -O - dev.mage2.com:1005/sitemap-1-1.xml | grep -E -o '<loc>.*</loc>' | sed -e 's/<loc>//g' -e 's/<\/loc>//g' > ~/sitemaps/mage2.txt
sudo siege -c100 -d5 -r1 -v -i -f ~/sitemaps/mage2.txt
@rogyar
rogyar / soaptest.php
Last active March 15, 2017 10:20
Soap test
<?php
//$client = new SoapClient('https://pprod-geoship.dpsin.dpdgroup.com/IT4EMWebServices/LoginGeoshipWebservicesImpl?wsdl', array('trace' => 1));
$client = new SoapClient('https://pprod-geoship.dpsin.dpdgroup.com/IT4EMWebServices/CustomerServicesImpl?wsdl', array('trace' => 1));
try {
$data = [
'wsUserName' => 'ATWIX',
'wsPassword' => 'td3WT4aw44',
'wsLang' => 'en',
'applicationType' => 2,