- A Pen is worth a thousand docs.
- Be the developer your linter thinks you are.
- How do you comfort a JavaScript bug? You console it!
- How would you React if I said I love Vue?
- If a groundhog inspects their Web Component, do they see their Shadow DOM?
- If you get tired, be like an AJAX request and REST.
- If you want to
flexyour skills and go off thegrid, try coding a layout withfloat. - Keep friends close and formatters closer.
- Keep the
<main>thing the<main>thing. - Knock knock! Race condition. Who's there?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/ | |
| # GitLab uses docker in the background, so we need to specify the | |
| # image versions. This is useful because we're freely to use | |
| # multiple node versions to work with it. They come from the docker | |
| # repo. | |
| # Uses NodeJS V 9.4.0 | |
| image: node:9.4.0 | |
| # And to cache them as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <InnerBlocks allowedBlocks={ [ 'core/image', 'core/paragraph' ] } /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;laradock | |
| ; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini) | |
| ; xdebug.remote_host=dockerhost | |
| ; xdebug.remote_host=docker.for.mac.localhost 此处有坑,这是以前的写法,现在用下条 | |
| xdebug.remote_host=docker.for.mac.host.internal | |
| xdebug.remote_connect_back=0 | |
| xdebug.remote_port=9000 | |
| xdebug.idekey=PHPSTORM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Quick run: bash -c "$(curl -L https://git.io/fjToH)" | |
| # CTRL+W to exit | |
| set -euf | |
| unsetopt FLOW_CONTROL GLOB NO_MATCH NO_SH_WORD_SPLIT NO_PROMPT_SUBST 2>/dev/null || : | |
| write () | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| s1: | |
| image: postgres:12 | |
| container_name: ${prefix}_compose_anonymous | |
| ports: | |
| - $pg_port:5432 |
Ansible Vault passwords and ansible_become_pass variable stored in pass https://www.passwordstore.org or gopass https://www.gopass.pw
Create encrypted password file with pass or gopass
pass insert ansible/test or gopass insert ansible/test
Now you can access become password stored in ansible/test using lookup plugin passwordstore
This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.
- Download WSL2 Kernel
- run
wsl --set-default-version 2in windows command line, so that all future WSL machine will use WSL2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm -it -v $PWD:/tmp debian:10-slim /bin/bash | |
| # --rm : remove after exit | |
| # -it : interactive TTY | |
| # -v : mount folder : current folder to /tmp folder of the container | |
| # debian:10-slim : docker image https://git.io/JJzfy | |
| # /bin/bash : run bash in this container |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Show-Notification { | |
| [cmdletbinding()] | |
| Param ( | |
| [string] | |
| $ToastTitle, | |
| [string] | |
| [parameter(ValueFromPipeline)] | |
| $ToastText | |
| ) |