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
evt.finder.request( 'files:getCurrent' ).forEach( function( file ) { | |
evt.finder.request( 'file:getUrl', { file: file } ) | |
.then( function( fileUrl ) { | |
messageModel.set( 'message', '' + finder.util.escapeHtml( fileUrl ) ); | |
} ); | |
} ); |
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 | |
/*START FILES TO ZIP*/ | |
ini_set('max_execution_time', 600); | |
ini_set('memory_limit', '1024M'); | |
// Start the backup! | |
function zipData($files, $destination) { | |
$isSucess = false; | |
if (extension_loaded('zip')) { | |
if(file_exists($destination)){ | |
unlink($destination); |
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
/*It gives value of multiple nodes containg string by value*/ | |
<xsl:value-ofselect="//n1:Invoice/cbc:Note[substring-after(self::node(),'SALMALBEDELI')]"/> |
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
/\*(\*)?(((?!\*/)[\s\S])+)?\*/ |
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 | |
array("fa-500px","fa-accessible-icon","fa-accusoft","fa-acquisitions-incorporated","fa-ad","fa-address-book","fa-address-card","fa-adjust","fa-adn","fa-adversal","fa-affiliatetheme","fa-air-freshener","fa-algolia","fa-align-center","fa-align-justify","fa-align-left","fa-align-right","fa-alipay","fa-allergies","fa-amazon","fa-amazon-pay","fa-ambulance","fa-american-sign-language-interpreting","fa-amilia","fa-anchor","fa-android","fa-angellist","fa-angle-double-down","fa-angle-double-left","fa-angle-double-right","fa-angle-double-up","fa-angle-down","fa-angle-left","fa-angle-right","fa-angle-up","fa-angry","fa-angrycreative","fa-angular","fa-ankh","fa-app-store","fa-app-store-ios","fa-apper","fa-apple","fa-apple-alt","fa-apple-pay","fa-archive","fa-archway","fa-arrow-alt-circle-down","fa-arrow-alt-circle-left","fa-arrow-alt-circle-right","fa-arrow-alt-circle-up","fa-arrow-circle-down","fa-arrow-circle-left","fa-arrow-circle-right","fa-arrow-circle-up","fa-arrow-down","fa-arrow-left","fa-arrow-right","fa-a |
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
#Migrate i-mscp to a new server | |
#the new imscp is already installed and does have a different IP than the old one | |
#1. Dump the DB and copy the i-MSCP backup to new server: | |
rsync -rave "ssh -l root" /var/www/imscp/backups 10.0.0.3:/var/tmp/imscp_old_backups | |
#2.Install the old config DB | |
#3. Copy all customer data: | |
rsync -rave "ssh -l root " /var/www/virtual/ 10.0.0.3:/var/www/virtual |
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
#!/usr/bin/perl -w | |
# | |
# pfdel - deletes message containing specified address from | |
# Postfix queue. Matches either sender or recipient address. | |
# | |
# Usage: pfdel <email_address> | |
# | |
use strict; |