- trackpad - tap to click, tracking speed fast, set all other gestures on
- software update - turn auto update OFF
- siri off
- general
- allow handoff
- turn off "Close windows when quitting an app"
- desktop and screensaver - setup screensaver, and hot corners: top left for screen lock, top right for put display to sleep
- dock
this.$router.currentRoute
this.$router.currentRoute.params.query.fred
- see https://stackoverflow.com/questions/48068520/nuxt-js-how-to-get-route-url-params-in-a-page
You need to pas as an object, as the mutation takes a simple payload. Calling:
- Get module instance:
BlahModule::getInstance()
orBlahModule::$instance
- Get module service instance:
BlahModule::getInstance()->myService
orBlahModule::$instance->myService
- Access module variable in twig:
{{ craft.blahModule.someVar }}
or{{ craft.blahModule.someVar(params) }}
The inspiration for this comes from https://gist.github.com/jhoff/8fbe4116d74931751ecc9e8203dfb7c4
The following code gives you auto-complete for artisan commands in a BASH shell. Just add to your ~/.bash_profile
. If you want a faster auto-complete, run art_cache
from your project root to get a cached file of commands. To remove this file just run art_cache clear
. If you haven't created a cache file, the script uses artisan list
to get the command list dynamically (but this is a lot slower).
export ARTISAN_CMDS_FILE=bootstrap/cache/artisan-cmds.txt
function _artisan() {
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
# get dir of loaded script
$ CWD="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
I recently started doing some collaborative development work on a Heroku nodejs application that uses Parse Server with MongoDB. Even though at times it's important to share an online database for testing etc, I found I really wanted to recreate the setup locally. This would mean not having to git push heroku master
every time I did the smallest code update, waiting a minute or more for the application to be compiled and deployed on heroku. As a corollary, I can do my work locally in an isolated feature branch, test locally, then merge and push when happy.
This document outlines how I set things up on my Macbook Pro, running Catalina 10.15.4.
You probably already have it, but if not I use homebrew
// first approach | |
.parent { | |
overflow: hidden; | |
position: relative; | |
height: 10rem; | |
} | |
.parent::after { | |
content: ""; | |
position: absolute; |
Ok here is an attempt to list all the decent laravel packages I've come across. Those suffixed with (*)
are used across most if not all my applications.
https://github.com/php-school/cli-menu
https://github.com/nunomaduro/laravel-console-menu