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
Category Archives: Uncategorized
system vars
Posted by admin
on November 10, 2020
Comments Off on system vars
ph p7.4
Posted by admin
on November 28, 2019
Comments Off on 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
Posted by admin
on November 20, 2019
Comments Off on MySQL Determine InnoDB buffer size
This answer on SO nails it:
Git remember credentials
Posted by admin
on August 19, 2019
Comments Off on Git remember credentials
git config –global credential.helper cache
error starting domain: requested operation is not valid: network ‘default’ is not active
Posted by admin
on July 31, 2019
Comments Off on error starting domain: requested operation is not valid: network ‘default’ is not active
sudo virsh net-start default
docker
Posted by admin
on April 10, 2019
Comments Off on docker
- Stop the container(s) using the following command:docker-compose down
- Delete all containers using the following command:docker rm -f $(docker ps -a -q)
- Delete all volumes using the following command:docker volume rm $(docker volume ls -q)
- Restart the containers using the following command:docker-compose up -d
git credentials
Posted by admin
on April 10, 2019
Comments Off on 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
Posted by admin
on April 3, 2019
Comments Off on Kill all nginx processes
sudo fuser -k 443/tcp && sudo fuser -k 80/tcp
PHP UNIT run single test
Posted by admin
on March 27, 2019
Comments Off on PHP UNIT run single test
./vendor/bin/phpunit –filter testClientList ClientTest tests/Feature/ClientTest.php
Access Vuex Properties / Getters
Posted by admin
on January 19, 2019
Comments Off on 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'])
Recent Comments