A curated list of amazingly awesome PHP libraries, resources and shiny things.
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 bash | |
| set -eou pipefail | |
| jira issue list \ | |
| -a$(jira me) \ | |
| --plain \ | |
| --columns id,summary,status | | |
| fzf \ | |
| --layout=reverse \ |
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
| # <type>(<scope>)!: <description> (72 characters maximum) | |
| # |<--- preferably using up to 50 characters --->|<------------------->| | |
| # Optional <body> | |
| # |<------------- try limiting to 72 characters per line ------------->| | |
| # Optional <footer> | |
| # ----- END COMMIT MESSAGE ----- | |
| # |
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
| import { | |
| ActionContext, | |
| ActionTree, | |
| GetterTree, | |
| MutationTree, | |
| Module, | |
| Store as VuexStore, | |
| CommitOptions, | |
| DispatchOptions, | |
| } from 'vuex' |
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
| (cors) { | |
| @cors_preflight{args.0} method OPTIONS | |
| @cors{args.0} header Origin {args.0} | |
| handle @cors_preflight{args.0} { | |
| header { | |
| Access-Control-Allow-Origin "{args.0}" | |
| Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS" | |
| Access-Control-Allow-Headers * | |
| Access-Control-Max-Age "3600" |
Proxmox VE 6.x release includes a feature to add custom cloud-init configs. Unfortunately there is poor documentation, so I had to figure this out by adding pieces of information together.
The cloud-init files need to be stored in a snippet. This is not very well documented:
- Go to
Storage View -> Storage -> Add -> Directory - Give it an ID such as
snippets, and specify any path on your host such as/snippets - Under
ContentchooseSnippetsand de-selectDisk image(optional) - Upload (scp/rsync/whatever) your
user-data, meta-data, network-configfiles to your proxmox server in/snippets/snippets/(the directory should be there if you followed steps 1-3)
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 | |
| $finder = PhpCsFixer\Finder::create() | |
| ->in(__DIR__) | |
| ->name('*.php') | |
| ->notName('_ide_helper.php') | |
| ->notName('*.blade.php') | |
| ->notPath('bootstrap') | |
| ->notPath('node_modules') | |
| ->notPath('storage') |
- Using a ready-to-use Ubuntu image
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 | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
NewerOlder