This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// server | |
class MySoapServer | |
{ | |
public function getMessage() | |
{ | |
return 'Hello,World!'; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*********************************************** | |
TARGET BY MEDIA QUERIES: | |
<!-- IE10 & IE 11 --> | |
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
/* IE10+ CSS styles go here */ | |
} | |
<!-- IE10 --> | |
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Resize image - preserve ratio of width and height. | |
* @param string $sourceImage path to source JPEG/PNG image | |
* @param string $targetImage path to final JPEG/PNG image file | |
* @param int $maxWidth maximum width of final image (value 0 - width is optional) | |
* @param int $maxHeight maximum height of final image (value 0 - height is optional) | |
* @param int $quality quality of final image (0-100) | |
* @return bool | |
*/ | |
function resizeImage($sourceImage, $targetImage, $maxWidth, $maxHeight, $quality = 80) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO `directory_country_region` (`region_id`, `country_id`, `code`, `default_name`) VALUES | |
(NULL, 'IT', 'ABR', 'Abruzzo'), | |
(NULL, 'IT', 'VAL', 'Valle d\'Aosta'), | |
(NULL, 'IT', 'PUG', 'Puglia'), | |
(NULL, 'IT', 'BAS', 'Basilicata'), | |
(NULL, 'IT', 'CAL', 'Calabria'), | |
(NULL, 'IT', 'CAM', 'Campania'), | |
(NULL, 'IT', 'EMI', 'Emilia-Romagna'), | |
(NULL, 'IT', 'FRI', 'Friuli-Venezia Giulia'), | |
(NULL, 'IT', 'LAZ', 'Lazio'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm sitemap.xml | |
wget -q https://www.CLIENT.com/sitemap.xml | |
sed '/<loc>/!d; s/[[:space:]]*<loc>\(.*\)<\/loc>/\1/' sitemap.xml > links.txt | |
siege -b -v -c 10 -f links.txt -r once -H 'Accept-Encoding: gzip' 2>/dev/null |