How to make dark scrollbar in custom dark theme

Updated: 30th January 2023
Tags: css

If you have toggle dark theme, you can make scrollbars and inputs also dark.

For example, you have dark theme with following markup

<body data-theme="dark">

Add this css to make scrollbars and inputs dark

[data-theme=dark] {color-scheme: dark;}

How to shrink font-awesome to use only few icons

Updated: 29th January 2023
Tags: css fontawesome

Why jQuery is still needed

Updated: 20th January 2023
Tags: javascript jquery

How to change auto_increment mysql

Updated: 9th January 2023
Tags: sql mysql
ALTER TABLE my_table_name AUTO_INCREMENT = 777;

uajax - universal ajax forms

Updated: 28th December 2022
Tags: javascript

Always add html {overflow-y: scroll}, to prevent layout shift (CLS)

Updated: 25th December 2022
Tags: css html

How to remove bin logs and turn it off

Updated: 19th December 2022
Tags: mysql

How to free unused mysql space - OPTIMIZE tables

Updated: 12th December 2022
Tags: mysql

How to create aliases in windows 10

Updated: 12th December 2022
Tags: windows alias

How to create symlink folder in ubuntu

Updated: 12th December 2022
Tags: ubuntu nginx

For example, we have our folder in /etc/nginx/sites-available/example.com And to make virtual symlink folder here /etc/nginx/sites-enabled we run this

sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/

Three stages of using programming framework

Updated: 11th December 2022
Tags: framework thoughts

Three stages of using programming framework:

  1. fascination with features and quick problem-solving

  2. squeezing the maximum out of all configurations

  3. difficulty in expanding the framework to new requirements

In result, throwing framework away and creating thing by yourself.

How to create toasts using bootstrap 5

Updated: 6th December 2022
Tags: javascript bootstrap5 css

Sorting Unix 'ls' command output by filesize

Updated: 6th December 2022
Tags: ubuntu bash
ls -Slh

-S will sort files by size
-l long listing
-h will make the output human-readable
-r will reverse the output

How to find where MySQL data is being stored

Updated: 6th December 2022
Tags: sql mysql

bash

mysql -e "show variables like 'datadir'"

mysql

show variables like 'datadir'

[Solved] PHP Fatal error: Allowed memory size bytes exhausted (tried to allocate 67108872 bytes) in Composer/DependencyResolver/RuleSet.php on line 83

Updated: 14th October 2022
Tags: php composer

Add loading indicator to button on form submit

Updated: 8th July 2022
Tags: html javascript

Remove index.php from url nginx laravel

Updated: 8th June 2022
Tags: nginx php

My programming tips after 10 years of programming

Updated: 28th April 2022
Tags: php mysql

Redis vs Memcache for PHP

Updated: 24th March 2022
Tags: redis memcached php

Memcache. It allows you to store both strings and php arrays and have fun. If it is not enough, try redis.

PHP how to make work curl with CURLOPT_SSL_VERIFYHOST or fix php curl SSL certificate

Updated: 23th March 2022
Tags: php curl