This file contains hidden or 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 | |
| file_put_contents( 'progress.txt', '' ); | |
| $targetFile = fopen( 'testfile.iso', 'w' ); | |
| $ch = curl_init( 'http://ftp.free.org/mirrors/releases.ubuntu-fr.org/11.04/ubuntu-11.04-desktop-i386-fr.iso' ); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt( $ch, CURLOPT_NOPROGRESS, false ); | |
| curl_setopt( $ch, CURLOPT_PROGRESSFUNCTION, 'progressCallback' ); | |
| curl_setopt( $ch, CURLOPT_FILE, $targetFile ); |
This file contains hidden or 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
| /* Pre-requisite | |
| ================== | |
| 1) Create an Environment (if you don't already have on) and enable it for your request | |
| 2) Add a new Header with key as "Authorization" and value as "{{hmacAuthHeader}}" | |
| 3) Add the following Pre-request Script that computes the hmacAuthHeader variable and adds it to the environment | |
| 4) Fill your CLIENT_KEY and SECRET_KEY with valid values | |
| */ | |
| function getPath(url) { | |
| var pathRegex = /.+?\:\/\/.+?(\/.+?)(?:#|\?|$)/; |
This file contains hidden or 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
| /** | |
| * Version: 1.0 Alpha-1 | |
| * Build Date: 13-Nov-2007 | |
| * Copyright (c) 2006-2007, Coolite Inc. (http://www.coolite.com/). All rights reserved. | |
| * License: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/. | |
| * Website: http://www.datejs.com/ or http://www.coolite.com/datejs/ | |
| */ | |
| Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],firstLetterDayNames:["S","M","T","W","T","F","S"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns:{shortDate:"M/d/yyyy", |
This file contains hidden or 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
| export XDEBUG_CONFIG="idekey=PHPSTORM" | |
| export PHP_IDE_CONFIG="serverName=cli" | |
| ;in php.ini | |
| zend_extension=xdebug.so | |
| xdebug.remote_enable=1 | |
| xdebug.remote_host=HOST_IP | |
| xdebug.remote_port=9000 |