Author Archives: admin

system vars

166 sudo vim /etc/sysctl.conf
167 sysctl vm.overcommit_memory=1
173 echo never > /sys/kernel/mm/transparent_hugepage/enabled
179 sysctl -w net.core.somaxconn=65535
185 cat /lib/systemd/system/rc.local.service
207 sudo vim sysctl -w net.core.somaxconn=65535

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'])