Category Archives: Uncategorized

ph p7.4

sudo apt-get install -y php7.4-{cli,common,curl,fpm,gd,mbstring,mysql,zip,gmp,json,opcache,readline,xml}

MySQL Determine InnoDB buffer size

This answer on SO nails it:

https://dba.stackexchange.com/questions/27328/how-large-should-be-mysql-innodb-buffer-pool-size

Git remember credentials

git config –global credential.helper cache

error starting domain: requested operation is not valid: network ‘default’ is not active

sudo virsh net-start default

docker

  1. Stop the container(s) using the following command:docker-compose down
  2. Delete all containers using the following command:docker rm -f $(docker ps -a -q)
  3. Delete all volumes using the following command:docker volume rm $(docker volume ls -q)
  4. Restart the containers using the following command:docker-compose up -d

git credentials

sick of having to manually enter your git credentials?

execute the following in your repo and your cred’s will be stored locally

git config credential.helper store

Kill all nginx processes

sudo fuser -k 443/tcp && sudo fuser -k 80/tcp

PHP UNIT run single test

./vendor/bin/phpunit –filter  testClientList ClientTest tests/Feature/ClientTest.php

Access Vuex Properties / Getters

I found it difficult to find how exactly to access a Vuex getter when using a namespace, here is a clean snippet

Directly access the property with:

this.$store.state.client_list.getters.getBlob

Access the getter with:

this.$store.getters['client_list/getBlob'])

TS 2585 TypeScript compile error: ‘Promise’ only refers to a type, but is being used as a value here

https://github.com/ReactiveX/rxjs/issues/2422