CHEAT SHEET

GIT bash cheatsheet

Synchronizing Filezilla site config between all devices.

Two way communication between parent document and iFrame

regular JavaScript functions vs array functions

Does not have its own bindings to this or super, and should not be used as methods. var obj1 = { a: 123, b: ...
Read More

JavaScript call, bind and apply simple

According MDN all three methods are very similar, and at the end they produce very similar result. they all accept ...
Read More

How to solve “Can’t perform a React state update on an unmounted component”

The scenario - Let's imagine that you have a card component that you could show and hide with a button ...
Read More

Using Nginx as a reverse proxy and add source code replacement

Task: I have web app (in my case Node app running on port 3000) I would add Nginx in front ...
Read More

Simple caching using browser’s service workers.

A service worker API is relatively new technology, allowing for running a special type of web worker (a JavaScript), that ...
Read More

Simple use of Promises in JavaScript

Here is a simple and a bit silly example of using promises. In real life we could just move the ...
Read More

Listen for DOM changes using Mutation Observer

If we ever needed to listen for DOM events, one of the first options that comes to our mind might ...
Read More

Passwordless SSH log in for MAC OS X

On the machine that you want to use to ssh to the other OS X machine do this: - Create ...
Read More

Debugging SSH issues on OS X

Most common problems could be: Directory permissions directory permission permission code /Users/[usename] 755 rwxr-xr-x /Users/[usename]/.ssh 700 rwx------ /Users/[usename]/.ssh/id_rsa 600 rw------- ...
Read More

Understanding Java Script Map, Filter and Reduce

The array [csharp] // The array var people = [ {name: 'john', age:24, weight: 84}, {name: 'tim', age:34, weight: 76}, ...
Read More

Multiple asynchronous http calls using curl

If you ever needed to fetch data from multiple sources on the backend, probably you already explored the benefits of ...
Read More