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
## 1. Create git repo in user's home | |
cd /home/myuser | |
mkdir git | |
mkdir web.git | |
cd /home/myuser/git/web.git | |
git init --bare | |
## 2. Put the post-receive script in there |
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
package com.wannacorp.util.glide; | |
import android.content.ContentResolver; | |
import android.content.Context; | |
import android.content.res.AssetManager; | |
import android.net.Uri; | |
import android.util.Log; | |
import com.bumptech.glide.Priority; | |
import com.bumptech.glide.load.data.DataFetcher; |
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
/** | |
* Function to consolidate purchase data because info is missing from edd_get_payment_meta_cart_details | |
*/ | |
function mlabs_get_product_price_id_for_purchase( $download_id, $payment_id ) { | |
$purchase_details = edd_get_payment_meta_cart_details( $payment_id, true ); | |
if ( !is_array( $purchase_details ) ) return false; | |
foreach( $purchase_details as $item ) { | |
if( $item['id'] == $download_id ) { |