-
Create a fresh new Next js project. https://nextjs.org/docs/getting-started#automatic-setup
pnpm create next-app --typescript
-
install prettier
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
# delete all posts in trash, draft posts and post revisions | |
wp post delete $(wp post list --post_status=trash --format=ids) | |
wp post delete $(wp post list --post_status=draft --format=ids) | |
wp post delete $(wp post list --post_type='revision' --format=ids) |
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
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \; |
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
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
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
/** MySQL hostname */ | |
if (php_sapi_name() == 'cli') { | |
define( 'DB_HOST', '127.0.0.1' ); | |
} | |
else { | |
define( 'DB_HOST', 'mysql' ); | |
} |
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
$vw-viewport: 320 | |
$vw-enable: true | |
@function get-vw($font) | |
@if $vw-enable | |
$vw-context: $vw-viewport * 0.01 * 1px | |
@return $font / $vw-context * 1vw | |
@return $font |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWtFuau4fJjiQZYkN0r9IqTyavY5GW5EB2dtgOfimKV4BInlqm67BDw+/EyjrDC7HuVeaS2Y5IexDu3PbX+BVtT/ZKKWfP5yM7MqSXz6sNYAOdlsBa6hBl2SexJctqUT7mFkLOWzP0AkULQHxsh4btMmxeNWt9b8KqfrIk/HuX5kxkef6rDQP6MKiXPmgtHexMYacOz3sQ0kB6g+Wo+w+Mdp/T7/8xYomrp1pRGRx7lwjoIRDZaKLeRadj827rFIw88YPwPWbeUTYRKxpexejPr3+Sn/jlYyNC70f/oWzQ2UPilhsBH4jSWkYXSHtk6dKhoj6tatUx1WUgcw51id0vJCihUKWGnlWwmllBc+sxltGSo6U10DLlJwEeoM5+9CKJEEQtPn67l66XEJPbynha/FW67N/V8pVe/2zCRjiUPBsSWX2HPJ4UggSIpjsE/gwgtlIo1+pO62BAm7RmbNH54vf/7VuPR7J9Eun9DE6epzRHZ8gFG3ao3tL1OcWy628= woorg@DESKTOP-V9NDVKH |
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
mutagen.exe sync create . docker://www-data@igrlvgatsby_appserver_1/app |
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
name: mysite2 | |
recipe: wordpress | |
config: | |
php: '7.2' | |
via: nginx | |
webroot: public | |
xdebug: true | |
conf: | |
php: .vscode/php.ini | |
proxy: |
NewerOlder