Run a security audit SYNOPSIS§ EXAMPLES§ Scan your project for vulnerabilities and automatically install any compatible updates to vulnerable dependencies: Run audit fix without modifying node_modules, but still updating the pkglock: Skip updating devDependencies: Have audit fix install semver-major updates to toplevel dependencies, not just semver-compatible ones: Do a dry run to get an idea of what audit fix will do, and also output install …
Store functions in localStorage
We can only store string data to localStorage and sometimes we need to store methods and invoke later. In order to do this, Javascript provides functionality to stringify methods. Here is an example function. const func = function sum(a, b) { return a + b; } func.toString() returns a string like function sum(a, b) { …
php-cs-fixer
This package make the code style align in php. You can use this with code editors like php or git shell script. The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community …
git rebase -i
This git command make several commits group into 1 commit. git rebase -i HEAD~n You can remove n commits into 1 single or m other commits. After typing the above command, hit enter. Put pick in front of commits which you want to remain. Put squash in front of commits which you want to break. …
Mobile Browser Inspection
We can inspect mobile safari browser as we do on desktop browsers.When we connect mobile device to Mac PC, mobile safari browser appears in desktop safari browser.Then we can inspect mobile browser using our desktop browser – check css, attributes and set break point, etc.Note: This is only available for safari browser
Responsive Table Issue in BootStrap 4
When you use the css class table-responsive in bootstrap4, table will not be full width. This is bootstrap4 issue. To fix this, you need to use table-responsive class in the parent div tag https://stackoverflow.com/questions/41747667/bootstrap-4-responsive-tables-wont-take-up-100-width
YOPmail : Disposable and Free email address
YOPmail’s free, quick and feature rich service guards you against spam, phishing and other online abuses. Protect your actual email, instead use YOPmail’s disposable one to sign-up wherever you want. YOPmail creates temporary inboxes of your choice instantaneously. http://www.yopmail.com/en/ The benefit is that if anyone compromises the address or utilities it in connection with email …
League/Fractal
Fractal provides a presentation and transformation layer for complex data output, the like found in RESTful APIs, and works really well with JSON. Think of this as a view layer for your JSON/YAML/etc. Goals Create a “barrier” between source data and output, so schema changes do not affect users Systematic type-casting of data, to avoid foreach()ing …
Webhook
A webhook in web development is a method of augmenting or altering the behaviour of a web page, or web application, with custom callbacks. These callbacks may be maintained, modified, and managed by third-party users and developers who may not necessarily be affiliated with the originating website or application. Webhook is implemented as a RESTful API endpoint, there is no specific rules …
Windows Subsystem for Linux
Windows Subsystem is a technique to emulate Linux environment on Windows Operating System. https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux Here is Windows subsystem installation guide. https://docs.microsoft.com/en-us/windows/wsl/install-win10 Windows Subsystem is similar to VM but much faster. It provides command line tool where all Linux commands are available to use. In order to access outside data using VM, we need to setup …