Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
#Random generator ipv6 addresses within your ipv6 network prefix. | |
#!/usr/local/bin/bash | |
# Copyright | |
# Vladislav V. Prodan | |
# [email protected] | |
# 2011 | |
array=( 1 2 3 4 5 6 7 8 9 0 a b c d e f ) |
<figure class="flickr"> | |
<figcaption></figcaption> | |
</figure> |
<? | |
// Upload image from the filesystem | |
$ch = curl_init(); | |
$request = array('appkey'=>'YOUR_APPKEY_HERE', 'photo'=>'@/path/to/image.jpg'); | |
curl_setopt($ch, CURLOPT_URL, 'https://snapi.sincerely.com/shiplib/upload'); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $request); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$output = curl_exec($ch); |
<div class="control-group"> | |
<label class="control-label">Location</label> | |
<div class="controls"> | |
<input name="location" type="text" placeholder="City, State, Country" value=""> | |
<input name="location_city" type="hidden" value=""> | |
<input name="location_state" type="hidden" value=""> | |
<input name="location_country" type="hidden" value=""> | |
<input name="location_lat" type="hidden"> | |
<input name="location_lng" type="hidden"> | |
</div> |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Session extends CI_Session{ | |
private $sess_use_redis = TRUE; | |
private $redis = ''; | |
public function __construct($params = array()) { | |
//parent::__construct(); | |
$this->CI =& get_instance(); |
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
<script type="text/javascript"> | |
//<![CDATA[ | |
// submit buttons are not needed when submitting with ajax | |
$('review_submit').hide(); | |
if ($('update_shipping_method_submit')) { | |
$('update_shipping_method_submit').hide(); | |
} | |
<?php if ($this->getUseAjax()):?> | |
OrderReviewController.prototype._submitOrder = function() { |