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 | |
| return [ | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Validation Language Lines | |
| |-------------------------------------------------------------------------- | |
| | | |
| | The following language lines contain the default error messages used by |
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
| sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb | |
| sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb | |
| sudo apt-get install -f | |
| sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin | |
| sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin | |
| Verify with: | |
| wkhtmltopdf http://www.google.com google.pdf |
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 | |
| // Create instance | |
| $img = \Image::make(storage_path("app/{$uploadPath}" . $fileName)); | |
| // Make sure | |
| $img->orientate(); | |
| // Resize only the width of the image | |
| $img->resize(250, null, function ($constraint) { | |
| $constraint->aspectRatio(); | |
| }); |
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
| \[(.*?)\] |
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
| -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf page-0.pdf page-1.pdf page-2.pdf page-3.pdf page-4.pdf |
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
| sudo locale-gen nl_NL | |
| sudo locale-gen nl_NL.UTF-8 | |
| sudo update-locale | |
| OF | |
| sudo apt-get install language-pack-nl |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am edofre on github. | |
| * I am edofre (https://keybase.io/edofre) on keybase. | |
| * I have a public key ASDo2p0p8HFMyrYp96c-k2ZO8p6K-zY3Gm03GQlqEtB53Ao | |
| To claim this, I am signing this object: |
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
| ############################################################ | |
| # Install git and zsh prerequisites | |
| config.vm.provision :shell, inline: "apt-get -y install git" | |
| config.vm.provision :shell, inline: "apt-get -y install zsh" | |
| # # Clone Oh My Zsh from the git repo | |
| config.vm.provision :shell, privileged: false, | |
| inline: "git -C ~/.oh-my-zsh pull || git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh" | |
| # inline: "git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh" | |
| # # Copy in the default .zshrc config file | |
| config.vm.provision :shell, privileged: false, |
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 common\components\validators; | |
| class ZipCodeValidator extends \yii\validators\RegularExpressionValidator | |
| { | |
| public $pattern = '/^[0-9]{4} {0,1}[a-z|A-Z]{2}$/'; // 1234AB or 1234 AB | |
| } |
NewerOlder