Skip to content

Instantly share code, notes, and snippets.

View vburlak's full-sized avatar
🚀

Vladislav Burlak vburlak

🚀
View GitHub Profile
@vburlak
vburlak / dooya_rs485.js
Created August 11, 2023 11:08
Blinds RS-485
// Backup of: https://gitlab.com/breelek/WB_Blinds_RS485
// Copywright to original author: Sergey Kurakin
//-------- Параметры: --------
var blinds_info = [
{
name: 'Dooya DM35', // Имя устройства в веб-интерфейсе.
group: 1, // Номер группы, заданный при привязке к Blinds-RS485.
id: 2, // Номер мотора в группе, заданный при привязке устройства к Blinds-RS485.
@vburlak
vburlak / deploy.yml
Created October 10, 2022 13:50 — forked from hhhonzik/deploy.yml
Kinsta Deployment
# Kinsta Deployment through Github Actions for Bedrock/Sage.
#
# Placed at: .github/workflow/deploy.yml
#
# Process should be studied from code, but some quick brief:
# - runs composer / sage installation
# - moves correct `.env.*` file for multiple configs
# - uses rsync to sync files, uses /.rsyncignore file to exclude whatever should not be there
# - symlinks uploads folder and symlink release folder to kinsta public hostname
# - if you want to clear cache, please uncomment the last job
@vburlak
vburlak / favorite-wp-plusins-and-utilitites.md
Last active November 15, 2022 20:34
Favorite WordPress Plugins and Utilities

Free WordPress plugins

composer require wpackagist-plugin/better-search-replace
composer require wpackagist-plugin/breadcrumb-navxt
@vburlak
vburlak / getDefaultGutenbergBlockNames.js
Last active September 7, 2022 12:49
Log all default Gutenberg Blocks in Console Log
// grab all block types
const types = wp.blocks.getBlockTypes();
// filter to just the core blocks
const core_blocks = types.filter(
type => type.name.startsWith( 'core/' )
);
// grab just the names
const block_names = core_blocks.map( type => type.name );
@vburlak
vburlak / tailwind.config.js
Created May 4, 2022 21:29 — forked from alexstandiford/tailwind.config.js
WordPress theme.json that extends Tailwind CSS configs
const fs = require( 'fs' )
const themeJson = fs.readFileSync( './theme.json' )
const theme = JSON.parse( themeJson )
const colors = theme.settings.color.palette.reduce( ( acc, item ) => {
const [color, number] = item.slug.split( '-' )
// If there is a number identifier, make this an object
if(undefined !== number) {
@vburlak
vburlak / block-editor-cleanup.php
Created April 11, 2022 19:45 — forked from joshuafredrickson/block-editor-cleanup.php
Block Editor Cleanup for WordPress 5.9 and Classic Editor (mu-plugin)
<?php
/**
* Plugin Name: Block Editor Cleanup
* Plugin URI: https://github.com/WordPress/gutenberg/issues/38299#issuecomment-1025520487
* Version: 1.0.0
* Description: Remove WP 5.9 default block editor styles when using Classic Editor
* Author: joshuafredrickson
* Author URI: https://joshuafredrickson.com
* License: GNU General Public License v2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@vburlak
vburlak / nginxrewrite2.md
Created March 31, 2022 18:31 — forked from esfand/nginxrewrite2.md
Nginx Rewrite
@vburlak
vburlak / nginx-site.conf
Created January 17, 2022 15:49
[DDEV-local] [Wordpress] extending NGINX to proxy missed image assets from production
server {
location ~* \.(png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
# Try to load missed assets from production.
proxy_intercept_errors on;
error_page 404 = @production;
}

Keybase proof

I hereby claim:

  • I am vburlak on github.
  • I am vladburlak (https://keybase.io/vladburlak) on keybase.
  • I have a public key ASDxlw_So8Ltj1dYz3voV0oMNgv75VOStOgbttB3xHX5YQo

To claim this, I am signing this object:

@vburlak
vburlak / continuous-deployment.yml
Created September 7, 2020 18:13
Roots Trellis deploy Github Action workflow example with Ansible 2.8 and Trellis Slack Webhook Notify
name: Continuous Deployment
on:
push:
branches:
- staging
- master
jobs:
deploy: