Toolbox

List of links of developers blogs

29. aprīlis, 2020
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 ›
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 ›
Laravel

Laravel event listener not firing

13. februāris, 2020
In file App\Providers\EventServiceProvider where you define Event to Listener relation. I added extra slash in front of event like this \App\Events\BeforePostDelete Remove slash before \App\Events\BeforePostDelete and it will work I lost about 2 hours finding out whats the problem There where also suggestions to run console commands But none of theses worked out !!! Define …
Read more ›
Toolbox

Control VirtualBox from console. VBoxManage

11. februāris, 2020
Add port forwarding List all available virtual machines Start virtual machine in headless mode
Read more ›
Laravel

How Laravel determines ajax request

15. novembris, 2019
This is done by Symfony http-foundation To see if Laravel “thinks” request is ajax call this function To force Postman make ajax request, add this header
Read more ›
Wordpress

WordPress add_filter return ture shortcut

12. novembris, 2019
Add filter to return only value true. Instead of passing in callback function which return true, you can use this shortcut
Read more ›
Toolbox

Linux search in files

3. novembris, 2019
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 ›
Creations

2D range slider demo

2. februāris, 2019
Te ir teksts par demo, bet šis teksts netiks atrādīts, jo frontā tiks overraidots šis posts pēc tā permalink un tur tiks rādīts pilnīgi custom html, css, js
Read more ›
Wordpress

WordPress rest api remote access user authentication

2. februāris, 2019
// te tiek pārbaudīta nonce un ja tās nav, tad user tiek resetots uz 0 rest_cookie_check_errors // Uz katru request parbaudam nonce un sutam atpakal refresoto nonce $result = wp_verify_nonce( $nonce, ‘wp_rest’ ); rest_get_server()->send_header( ‘X-WP-Nonce’, wp_create_nonce( ‘wp_rest’ ) ); // šo var overraidot un uzsetot lietotāju, kur vajag pēc saviem ieskatiem taisot auth add_filter( ‘rest_authentication_errors’, …
Read more ›
Wordpress

WordPress how to limit upload size

22. janvāris, 2019
Read more ›
Toolbox

Ubuntu firewall ufw commands

17. janvāris, 2019
Allow incoming requests from specific ip address to specific portFor example only from [ip] access to ssh Allow outgoing requests to specific port. For example allow outgoing email requests Web, allow incoming and outgoing web traficAllow outgoing to port 80 on tcp Allow incoming on port 80 Show all rules numbered. Useful for deleting specific …
Read more ›
Toolbox

MySQL root login problem. Access denied

17. janvāris, 2019
Starting from MySQL version 5.7 you can not login in from command line like this It gives error Access denied Howerver you can login with sudo To fix this Drop all root users Now you can login from command line
Read more ›
Toolbox

SSH tunnel to your laptop

17. janvāris, 2019
You need publicly available server with ssh. Publicly it means server with public IP address. For example create 5$ droplet on DigitalOcean Edit /etc/ssh/sshd_config Add this line at end of the file Restart ssh On your laptop, start ssh tunnel From your phone open http://public_server_ip_address:9000 When accessing public_server_ip_address on port 9000 all incoming connections will …
Read more ›
Laravel

Laravel facades

17. janvāris, 2019
To understand facades you need to understand Laravel Service container, because facades provides static interface to classes that are available into Service container Lets create class which will reside in Service container This is a way you put class into service container So, where to put this code. By Laravel standarts you do it from …
Read more ›