This file contains hidden or 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 App\Framework\Doctrine; | |
use Doctrine\DBAL\Exception\UniqueConstraintViolationException; | |
use Doctrine\ORM\EntityRepository; | |
use Doctrine\ORM\Persisters\Entity\BasicEntityPersister; | |
trait UniqueSafeRepositoryTrait | |
{ |
This file contains hidden or 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/env php | |
<?php | |
/** | |
* Rsync wrapper for IDEA to fix rsync deployment from wsl | |
* In "Rsync settings" set: | |
* - Rsync executable path: "c:\windows\system32\wsl.exe" | |
* - Rsync options: "/path/where/you/saved/wslrsync.php -zar" | |
* - Shell executable path: "ssh" | |
*/ | |
$verbose = true; |
This file contains hidden or 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
## !!! Run as Administrator | |
## !!! VPN is required for setup from blocked regions | |
## - Also, if you are still blocked, try `Set-WinHomeLocation -GeoId 244` (244=USA) | |
## - Know that setup.exe writes detailed logs to %TEMP% | |
# BetaChannel -> CurrentPreview -> Current -> MonthlyEnterprise -> SemiAnnualPreview -> SemiAnnual | |
$CHANNEL = "CurrentPreview" | |
# modify this to your needs | |
# https://github.com/MicrosoftDocs/OfficeDocs-DeployOffice/blob/public/DeployOffice/office-deployment-tool-configuration-options.md |
This file contains hidden or 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
## 1000 files, 10 values in each | |
-- file parsing reader -- | |
Read 1000 files, 10000 properties total | |
Total time consumed: 102.24 ms | |
-- reflection reader -- | |
Read 1000 files, 10000 properties total | |
Total time consumed: 45.46 ms |
This file contains hidden or 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
set-option -g prefix ` | |
bind-key ` send-prefix | |
unbind % | |
bind - split-window -v | |
bind = split-window -h | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
setw -g utf8 on | |
set -g status-utf8 on |
This file contains hidden or 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
Locale=ru_RU | |
Charset=UTF-8 | |
BoldAsFont=-1 | |
BellFlash=yes | |
CursorType=block | |
CursorBlinks=no | |
BackgroundColour=37,39,48 | |
Font=Terminus (TTF) | |
FontWeight=500 | |
ForegroundColour=200,200,200 |
This file contains hidden or 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 | |
if ($argc < 2) { | |
die('Usage: php extdoc.php <extension_name>' . PHP_EOL); | |
} | |
$extension = $argv[1]; | |
$keywords = array('__halt_compiler', 'abstract', 'and', 'array', 'as', 'break', 'callable', 'case', 'catch', | |
'class', 'clone', 'const', 'continue', 'declare', 'default', 'die', 'do', 'echo', 'else', 'elseif', 'empty', | |
'enddeclare', 'endfor', 'endforeach', 'endif', 'endswitch', 'endwhile', 'eval', 'exit', 'extends', 'final', | |
'for', 'foreach', 'function', 'global', 'goto', 'if', 'implements', 'include', 'include_once', 'instanceof', |