Create Bookmarklet (browser bookmark that executes Javsacript) to copy a Git branching name from Redmine to Clipboard.
Format: feature/[issue #]-[issue title]
(can be changed bellow).
This is the base javascript:
(function(text){
SELECT | |
cw.name AS 'Website', | |
p.method AS 'Payment method code', | |
CASE | |
WHEN p.method = "pbridge_ogone_direct_debit" THEN '' | |
WHEN p.method = "forter_dummy" THEN '' | |
WHEN p.method = "crretail_offlineonepay" THEN '1PAY' | |
WHEN p.method = "crretail_offlinecreditcardamericanexpress_ipp" THEN 'AMEX IPP' | |
WHEN p.method = "crretail_alipay" THEN 'Alipay' | |
WHEN p.method = "moneybookers_pwy" THEN 'All Polish Banks' |
" _ _ " | |
" _ /|| . . ||\ _ " | |
" ( } \||D ' ' ' C||/ { % " | |
" | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
" |_\_ |----| |----| _/_|" | |
" | |/ | | | | \| |" | |
" | /_ | | | | _\ |" | |
It is all fun and games until someone gets hacked! |
Explanations: | |
cache: If you include other words in the query, Google will highlight those words within | |
the cached document. For instance, [cache:www.google.com web] will show the cached | |
content with the word “web” highlighted. This functionality is also accessible by | |
clicking on the “Cached” link on Google’s main results page. The query [cache:] will | |
show the version of the web page that Google has in its cache. For instance, | |
[cache:www.google.com] will show Google’s cache of the Google homepage. Note there | |
can be no space between the “cache:” and the web page url. | |
------------------------------------------------------------------------------------------ |
<?php | |
/** | |
* Facebook / Instagram User Access Token Generator | |
* | |
* Documentation: https://developers.facebook.com/docs/instagram-basic-display-api | |
* | |
* With this code snippet not error like: | |
* | |
* { | |
* "error_type": "OAuthException", |
<?php | |
/** | |
* Set values for allowedFileExtensions | |
*/ | |
/* @var $installer Mage_Core_Model_Resource_Setup */ | |
$installer = $this; | |
$installer->startSetup(); |
<?php | |
public function emailNotify($event, $emailTemplate, $data, $toEmail) | |
{ | |
$data = array_merge($data, array('YYYYMMDDHHMMSS' => date('Ymdhis'))); | |
/* @var $template Mage_Core_Model_Email_Template */ | |
$template = Mage::getModel('core/email_template')->loadDefault($emailTemplate); | |
$notifyTemplate = $template->getProcessedTemplate($data); | |
$notifyTemplateSubject = $template->getProcessedTemplateSubject($data); |
#!/bin/bash | |
curl -LsSO https://sitekit.withgoogle.com/service/download/google-site-kit.zip && | |
unzip google-site-kit.zip && | |
rm google-site-kit.zip |
#!/bin/bash | |
curl --silent "https://api.github.com/repos/google/site-kit-wp/tags" | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | head -n1 |
#!/bin/bash | |
### | |
# @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 | |
# @author Mehdi Chaouch <[email protected]> <@advocodo> | |
# @copyright Copyright (c) 2019 ADVOCODO (https://www.advocodo.com) | |
# @description This script install some developer tools for Magento 1 | |
# @usage ./m1-dev-tools.sh | |
### |