Skip to content

Instantly share code, notes, and snippets.

View sergeykuzmich's full-sized avatar
🎱
To be or not to be...

Sergey Kuzmich sergeykuzmich

🎱
To be or not to be...
  • Remedy Product, Inc.
  • Planet Earth, The Milky Way Galaxy
  • 10:35 (UTC +01:00)
View GitHub Profile
@sergeykuzmich
sergeykuzmich / query.sql
Last active November 28, 2022 14:40
Cursored Query Previous Page
SELECT uid, title, content, datetime
FROM news
WHERE (datetime, uid) > ((SELECT datetime FROM news WHERE uid = :uid), :uid)
ORDER BY (datetime, uid) ASC
LIMIT :per_page;
@sergeykuzmich
sergeykuzmich / wp-config.php
Last active November 28, 2022 14:00
WordPress Configuration
<?php
define( 'WP_DEBUG', false );
#if WP_DEBUG_LOG is enabled, you have to enable WP_DEBUG as well
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@sergeykuzmich
sergeykuzmich / wp-config.php
Last active November 28, 2022 14:00
WordPress Configuration
<?php
define( 'DB_NAME', 'unique_database_name' );
define( 'DB_USER', 'unique_database_user' );
define( 'DB_PASSWORD', 'strong_and_unique_password' );
@sergeykuzmich
sergeykuzmich / wp-config.php
Last active November 28, 2022 13:59
WordPress Configuration
<?php
#These values are intentionally left blank to avoid copy-pastes
define( 'AUTH_KEY', '');
define( 'SECURE_AUTH_KEY', '');
define( 'LOGGED_IN_KEY', '');
define( 'NONCE_KEY', '');
define( 'AUTH_SALT', '');
define( 'SECURE_AUTH_SALT', '');
define( 'LOGGED_IN_SALT', '');
@sergeykuzmich
sergeykuzmich / wp-config.php
Last active November 28, 2022 13:59
WordPress Configuration
<?php
define('WP_SITEURL', 'https://www.mydomain.com');
define('WP_HOME', 'https://www.mydomain.com');
define( 'FORCE_SSL_ADMIN', true );
define( 'FORCE_SSL_LOGIN',true );
@sergeykuzmich
sergeykuzmich / wp-config.php
Last active November 28, 2022 13:59
WordPress Configuration
<?php
define ( 'WP_ALLOW_REPAIR', false );
@sergeykuzmich
sergeykuzmich / wp-config.php
Last active November 28, 2022 13:59
WordPress Configuration
<?php
define( 'DISALLOW_UNFILTERED_HTML', true );
define( 'ALLOW_UNFILTERED_UPLOADS', false );
@sergeykuzmich
sergeykuzmich / wp-config.php
Last active November 28, 2022 13:59
WordPress Configuration
<?php
define( 'AUTOMATIC_UPDATER_DISABLED', false );
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
@sergeykuzmich
sergeykuzmich / wp-config.php
Last active November 28, 2022 13:59
WordPress Configuration
<?php
define( 'WP_HTTP_BLOCK_EXTERNAL', true );
define( 'WP_ACCESSIBLE_HOSTS', 'api.wordpress.org, *.github.com, www.trusteddomain.com' );
@sergeykuzmich
sergeykuzmich / wp-config.php
Last active November 28, 2022 13:59
WordPress Configuration
<?php
define( 'DISALLOW_FILE_EDIT', true );