nano launch_phpstorm.sh
#!/bin/sh
open -na "Phpstorm.app" --args "$@"
| This list was compiled from https://web.archive.org/web/20230911135706/https://docs.docker.com/desktop/release-notes/, retrieved on 2024-05-24 | |
| It appears links for later updates than 4.22.1 are currently (as of early Aug 2024) being kept up to date on https://docs.docker.com/desktop/release-notes, I'm not going to continuously update this but others may in the comments below, so check that link or the comments if you need a later version than 4.22.1. | |
| The information may not be correct in all cases, or may have changed since archive.org archived the page. At time of posting, I spot-checked a few links and they appeared to be good, but really, all I've done is copied, pasted, and visually formatted the information I found on archive.org, so no warrantee that it's good. | |
| If the download links don't work, sometimes archive.org has the download archive, and you can try adding https://web.archive.org/web/20230911135706/ to the beginning of the URL. For instance, as of this writing, the 4.22.1 Windows download i |
| #Simple size about 298Mb. Bun v1.0.21 | |
| FROM oven/bun:latest as build-stage | |
| WORKDIR /dist | |
| COPY . . | |
| COPY .env.production .env | |
| COPY package.json package.json | |
| COPY bun.lockb bun.lockb |
| { | |
| "preset": "psr12", | |
| "rules": { | |
| "is_null": true, | |
| "declare_strict_types": true, | |
| "strict_comparison": true, | |
| "no_unused_imports": true, | |
| "explicit_string_variable": true, | |
| "native_function_casing": true, | |
| "native_function_type_declaration_casing": true, |
For me, the valet use [email protected] command does not work.
And so I created this bash function.
I already have PHP versions 7.2, 7.3 and 7.4 installed via Homebrew.
Add this function in your .bash_profile or .zshrc file:
# Switch PHP version
switch-php() {
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
| # Inspired by making a mixture the following themes: | |
| # robbyrussell + arrow + lambda | |
| # changing some colors and elements positions | |
| local ret_status="%(?:%{$fg_bold[grey]%}λ :%{$fg_bold[red]%} λ )" | |
| PROMPT=' ${ret_status}%{$fg[magenta]%}%c %{$fg[black]%}➤ %{$reset_color%}' | |
| RPROMPT='$(git_prompt_info) %{$reset_color%}' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[grey]%}git:(%{$fg[cyan]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!--suppress XmlUnboundNsPrefix, XmlUnboundNsPrefix --> | |
| <ruleset name="overview"> | |
| <description>overview</description> | |
| <rule ref="Generic.Classes.DuplicateClassName"/> | |
| <rule ref="Generic.CodeAnalysis.EmptyStatement"/> | |
| <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/> | |
| <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/> | |
| <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/> | |
| <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/> |