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 | |
## Description: Run gitify commands through DDEV | |
## Usage: gitify [flags] [args] | |
## Example: "ddev gitify extract" | |
## ExecRaw: true | |
cd /var/www/html/gitify/ | |
./vendor/bin/gitify $@ |
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 | |
/* | |
* This file is part of MODX Revolution. | |
* | |
* Copyright (c) MODX, LLC. All Rights Reserved. | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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 | |
// Facebook App id & secret | |
$fb_app_id = isset($fb_app_id) ? $fb_app_id : NULL; | |
$fb_app_secret = isset($fb_app_secret) ? $fb_app_secret : NULL; | |
$access_token = $fb_app_id . '|' . $fb_app_secret; | |
// Other options | |
$page_id = isset($page_id) ? $page_id : NULL ; | |
$chunk = isset($chunk) ? $chunk : 'getPageFeedTpl' ; |
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 | |
/** | |
* UserIsLoggedin | |
* Checks whether or not a user is logged in or not and does something with it | |
* | |
* Examples (top-down): | |
* [[!UserIsLoggedin? &redirectToOnNotAuthorized=`id-of-page`]] | |
* OR | |
* [[!UserIsLoggedin? &sendUnauthorized=`1`]] | |
* OR |
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 | |
/** | |
* | |
* @license MIT License | |
* | |
*/ | |
// om 't script wat tijd te geven | |
ini_set("memory_limit","320M"); | |
ini_set("max_execution_time", 240); |
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
sku | store_id | file | label | description | position | only_registred_customers | |
---|---|---|---|---|---|---|---|
test | 0 | http://server.com/link-tofile.pdf | A Name | A description | 0 | 0 |
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 | |
/* | |
* DELETE DUPLICATE GALLERY IMAGES | |
* 1. Edit ln 9 to match your magento install | |
* 2. Run from terminal: php /{your_path}/duplicate-delete.php | |
* | |
*/ | |
include('app/Mage.php'); | |
umask(0); |
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
Index: app/code/core/Mage/Admin/Model/Variable.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- app/code/core/Mage/Admin/Model/Variable.php (revision 2bd128c1f190cd9ea63269824f09789199565251) | |
+++ app/code/core/Mage/Admin/Model/Variable.php (revision ) | |
@@ -30,6 +30,13 @@ | |
class Mage_Admin_Model_Variable extends Mage_Core_Model_Abstract | |
{ |
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 | |
/* Demonstration on how to get product data from at XML file | |
* Mathias Dannevang <[email protected]> | |
*/ | |
//Function to call the XML file | |
function download_page($path){ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,$path); | |
curl_setopt($ch, CURLOPT_FAILONERROR,1); |
NewerOlder