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 | |
public function createContact(){ | |
$data = [ | |
"emails"=>[ | |
"tag"=>"work", | |
"email"=>"karen_meep@wix.com", | |
"emailStatus"=>"recurring" | |
] |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Antonshell | |
* Date: 31.08.2015 | |
* Time: 14:40 | |
*/ | |
/** | |
* Class WixService |
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
SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'my_database' AND TABLE_NAME = 'my_table'; |
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
/* link no decor*/ | |
.no-decor, .no-decor, .no-decor:visited, .no-decor:hover, .no-decor:focus, .no-decor:active{ | |
color: inherit; | |
text-decoration: none; | |
} | |
/*--------------------------*/ |
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
git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin" |
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 | |
$parser = new \antonshell\EgrulNalogParser\Parser(); | |
// parse for Individual Entrepreneur | |
$pathPe = __DIR__ . '/nalog_pe.pdf'; | |
$results = $parser->parseNalogPe($pathPe); | |
// parse for Organization | |
$pathOrg = __DIR__ . '/nalog_org.pdf'; |
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 | |
namespace Antonshell\OrdersWebhooks\Services; | |
use Antonshell\OrdersWebhooks\Observer\MOrderSaveObserver; | |
use Magento\Framework\Event\ConfigInterface; | |
use Magento\Framework\Event\InvokerInterface; | |
use ReflectionClass; | |
use Symfony\Component\Console\Output\ConsoleOutput; |
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 | |
ob_start(); | |
phpinfo(); | |
$phpinfo = ob_get_clean(); | |
$startPos = strpos($phpinfo,'<tr><td class="e">System </td>'); | |
$endPos = strpos($phpinfo,'</tr>',$startPos); | |
$output = substr($phpinfo, 0,$startPos); |
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 | |
// generator is here: | |
// https://funpay.ru/yandex/emulator | |
function parseMessage($message){ | |
//code | |
preg_match("/[' '][0-9]{4}['\n']/", $message, $code); | |
$code = $code[0] ?? ''; | |
$code = trim($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
#! /bin/bash | |
TIMESTAMP=$(date +"%F-%T") | |
BACKUP_DIR="/var/backups/databases/$TIMESTAMP" | |
MYSQL_USER="backup" | |
MYSQL=/usr/bin/mysql | |
MYSQL_PASSWORD="password" | |
MYSQL_HOST="localhost" | |
AWS=/usr/bin/aws |
OlderNewer