Skip to content

Instantly share code, notes, and snippets.

View maverabilisim's full-sized avatar
🎯
Focusing

maverabilisim

🎯
Focusing
View GitHub Profile
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 ) );
} );
} );
@maverabilisim
maverabilisim / gist:63f854fe5ac0254ee64f951886d611fc
Created May 25, 2019 00:19
gives file list to zip arcive with fancy path
<?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);
/*It gives value of multiple nodes containg string by value*/
<xsl:value-ofselect="//n1:Invoice/cbc:Note[substring-after(self::node(),'SALMALBEDELI')]"/>
@maverabilisim
maverabilisim / gist:4ca1a52ac238808721d080317ecea4a4
Created February 8, 2019 04:48
Remove comments from file in PHPStorm (regex)
/\*(\*)?(((?!\*/)[\s\S])+)?\*/
@maverabilisim
maverabilisim / gist:0759ef0a761df406984f308632efb8d1
Last active January 6, 2019 09:35
Current Fontawesome icon list as PHP array
<?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
@maverabilisim
maverabilisim / imscp_migration
Created November 7, 2015 11:02 — forked from b13n1u/imscp_migration
I-MSCP migration from old server to a new one.
#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
@maverabilisim
maverabilisim / pfdel.perl
Created October 5, 2015 14:54 — forked from gionn/pfdel.perl
pfdel - deletes message containing specified address from Postfix queue. Matches either sender or recipient address.
#!/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;