Wordpress

WordPress how to force https ssl

21. jūlijs, 2021
If your WordPress site lives behinde https terminator, then even if user open WordPress throug https, WordPress will work as if it where open with http To avoid this you can put these lines in your wp-config.php to set globaly that server request is coming throug https By default WordPress checks if page is open …
Read more ›
Backend

Redis config and basic commands

19. decembris, 2020
File: /etc/systemd/system/redis-server Šeit vajag atrast rindiņuReadWriteDirectories=-/var/lib/redis Tās būs tās direktorijas, kurā redis var rakstīt savu datubāzes failu. Gadījumā, ja vajag uzstādīt citu direktoriju, kurā redis glabās savu db failu Jāskatās arī rindiņa #ProtectHome=yes Servera pārstartēšana redis-cli komandas ar kurām var noskaidro dir un fails vārds, kurā glabājas redis db Gadījumā, ja ir problēmas ierakstīt redis …
Read more ›
Toolbox

ssh append authorized_keys on remote server

26. novembris, 2020
This is how to copy local ssh public key and append it to authorized_keys file on remote server This commands consists of three (3) parts First copy content of ids_rsa.pub file Then pipe it to ssh. Connect to remote server with yout credentials And execute append command on remote server
Read more ›
Toolbox

Certbot custom validation

30. oktobris, 2020
Read more ›
Web development

List of links of developers blogs

29. aprīlis, 2020
https://francescodilorenzo.com/ https://blog.josephscott.org/ https://smakosh.com https://dyrynda.com.au https://calebporzio.com https://christoph-rumpel.com https://ryangjchandler.co.uk https://sebastiandedeyne.com https://divinglaravel.com https://www.alexwest.co https://n8finch.com https://blog.yongfook.com/ https://flaviocopes.com/ https://pociot.dev/ https://jessarcher.com/ https://timacdonald.me/ // Images cdn https://cloudinary.com/ // about vim https://blurha.sh/
Read more ›
Web development

Disable text selection with css

17. aprīlis, 2020
Apply these CSS rules to get rid of text selection Solution was found here https://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting#4407335
Read more ›
Creations

PVN kalkulators

15. aprīlis, 2020
Kas ir PVN? PVN atšifrējas kā pievienotās vērtības nodoklis Pievienotās vērtības nodoklis (PVN) ir nodoklis, kas tiek pieskaitīts pie preces vai pakalpojuma tirgus vērtības naudas izteiksmē. Tas tiek piemērots visās Eiropas Savienības dalībvalstīs. Kas maksā PVN? PVN maksā preces vai pakalpojuma gala patērētājs. Privātpersonas maksā PVN preču iegādes vietā, piemēram, veikalā, kur PVN jau ir …
Read more ›
Toolbox

How to generate OpenSSL certificate and fingerprint

7. aprīlis, 2020
Generate openssl sha256 certificate Generate certificate fingerprint
Read more ›
Toolbox

Fix Android chrome remote debug on Windows

23. marts, 2020
Instruction on how to fix issue when android chrome device is not showing in chrome developer tools remote devices section. Windows
Read more ›
Wordpress

Gutenberg notes

5. marts, 2020
My notes on Wordpress Gutenberg. Mostly collection of usefull links
Read more ›
Creations

JavaScript color transition

6. augusts, 2019
Demo is here http://pad.darbs.xyz:8044/color-transition/examples/basic.html GitHub repositiory https://github.com/kasparsb/color-transition This library uses canvas element to generate gradient from provided color stops. You pass in transition progress value from 0 to 1 and library returns color This method is very accurate because of generated gradient. All kind of mathematical solutions works differently Here comes inline demo. If you …
Read more ›