Skip to content

Instantly share code, notes, and snippets.

View Woorg's full-sized avatar

Igor Gorlov Woorg

View GitHub Profile
@Woorg
Woorg / example-menu-item.css
Created January 22, 2025 22:04 — forked from isotrope/example-menu-item.css
Add (a) Polylang switcher menu item(s) to any menu.
/*
Example CSS of how I was showing one OR the other, based on brwoser-width
*/
@media (max-width: @grid-float-breakpoint-max) {
.language-code {
display: none;
}
}
@Woorg
Woorg / Commands
Created June 15, 2024 22:07 — forked from lukecav/Commands
Delete all draft posts, posts in trash and post revisions using WP-CLI
# 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)
@Woorg
Woorg / gist:a48207e29b3b00be3aa7d990b15dae16
Created January 10, 2024 07:02
Delete all node_modules found in a Directory:
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;
@Woorg
Woorg / nvmCommands.js
Created December 1, 2023 18:12 — forked from chranderson/nvmCommands.js
Useful NVM commands
// 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
@Woorg
Woorg / README.md
Created July 23, 2023 14:56 — forked from nivethan-me/README.md
Setup a Next.js 13 project with Eslint + Prettier with automatic tailwind class sorting
@Woorg
Woorg / wp-config.php
Created February 22, 2021 03:22 — forked from arkadiusjonczek/wp-config.php
WordPress: Use wp-cli & laradock/docker together #tags: WordPress
/** MySQL hostname */
if (php_sapi_name() == 'cli') {
define( 'DB_HOST', '127.0.0.1' );
}
else {
define( 'DB_HOST', 'mysql' );
}
@Woorg
Woorg / get-vw.sass
Created January 23, 2021 06:30
SASS function to convert px unit in vw
$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
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
mutagen.exe sync create . docker://www-data@igrlvgatsby_appserver_1/app
@Woorg
Woorg / .lando.yml
Created September 23, 2020 11:54 — forked from lumpysimon/.lando.yml
Lando config file for WordPress with Nginx, PHP 7.2, MySQL 5.5, Xdebug, MailHog and PHPMyAdmin
name: mysite2
recipe: wordpress
config:
php: '7.2'
via: nginx
webroot: public
xdebug: true
conf:
php: .vscode/php.ini
proxy: