Skip to content

Instantly share code, notes, and snippets.

View isostarec's full-sized avatar
🎯
Focusing

isostarec

🎯
Focusing
View GitHub Profile
@isostarec
isostarec / README.md
Created January 2, 2025 12:05 — forked from magnetikonline/README.md
Setting Nginx FastCGI response buffer sizes.
@isostarec
isostarec / disable-blocks.php
Created October 25, 2024 08:06 — forked from phpbits/disable-blocks.php
How to Disable Specific Blocks in the WordPress Gutenberg Block Editor using the allowed_block_types_all Hook
<?php
function disable_specific_blocks( $allowed_block_types, $post ) {
// Make sure allowed types is an array
if ( ! is_array( $allowed_block_types ) ) {
$allowed_block_types = array(
'core/block', // Required to enable "Reusable blocks" feature.
'core/columns',
'core/paragraph',
'core/image',
'core/heading',
@isostarec
isostarec / README.md
Created April 25, 2023 13:22 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
### Keybase proof
I hereby claim:
* I am isostarec on github.
* I am sostarecivan (https://keybase.io/sostarecivan) on keybase.
* I have a public key ASDwVSrAWST2p86cwtdp3UW7B-VduwKicg856q0q-Axshgo
To claim this, I am signing this object: