type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
<script setup> | |
import paper from "paper" | |
import { ref, onMounted } from 'vue' | |
const canvas = ref(null) | |
onMounted(()=>{ | |
paper.setup(canvas.value); | |
var path = new paper.Path(); | |
path.strokeColor = 'black'; |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Collection; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
#!/usr/bin/env bash | |
# Upgrade an Amazon Linux EC2 to PHP 7.3 | |
# | |
# Last tested w/ PHP 7.2 AWS Linux version 2.8.5 | |
# | |
# Must be ran as sudo: | |
# sudo bash upgrade-php7.sh | |
# | |
# Can be added to ./.ebextensions/20_php.config like so: | |
# container_commands: |
aws configure
AWS Access Key ID [None]: AKIAJXXXXXXEWDNXXXXX
AWS Secret Access Key [None]: 2EqCQXXXXXuK3LXXXXXtZXMGNXXXXXVCHd0XXXXX
Default region name [None]: eu-central-1
Default output format [None]: JSON
aws eks --region eu-central-1 update-kubeconfig --name phpfarmer-kube1
SELECT
table_name,
ordinal_position
FROM INFORMATION_SCHEMA.COLUMNS
WHERE
table_schema = 'DB_NAME' AND
column_name='column_name';
{ | |
"autoload": { | |
"classmap": [ | |
"database/seeds", | |
"database/factories" | |
], | |
"psr-4": { | |
"App\\": "app/", | |
"Alpha\\Library\\": "packages/Library/src/" | |
} |
sudo vim /etc/apache2/sites-available/symfony-test-app.conf
<VirtualHost *:80>
ServerName symfony-test-app.com
<IfModule mod_rewrite.c>
RewriteEngine on
<?php | |
Route::get('/foo', function() | |
{ | |
$exitCode = Artisan::call('command:name', ['--option' => 'foo']); | |
// | |
}); | |
?> |