grep, zgrep, less and zless regexp examples

Grep all files with mask:

Grep all zipped files with mask:

Less all files with mask:

Grep all zipped files with mask:

Tail all files with mask:

Search for occurencies in directory with grep

https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux

Storybook for creating components library

It works with all popular frameworks like React, Angular, Vue, and others. https://github.com/storybooks/storybook

BackBeat Pro not charging. Fix

Once I’ve run into a problem with my lovely Plantronics BackBeat Pro. It decided not to charge with any given cable or power source. It just didn’t react on plugged in a cable, while blinking with red lamp saying that it needs to be charged. After googling and dancing around it, I’ve found a solution: …

Read more

Free smart TV channels

Install this application on your TV http://forkplayer.tv/smart-tv/forkplayer/#install. After that start the application, open SMILE BY → Onliner → SEGAZ → IPTV → OnlyBest.

git squash variants

If you just want to squash all commits into one. 1. The simplest way:

https://stackoverflow.com/a/5309051 If you have a message like ‘error: failed to push some refs to’, add —force to the last command.

Check ssl certificates on a host

If it says something like gethostbyname failure then try following. It needs socat, which can be installed on macOs like this — brew install socat. Then in one terminal open

and in another terminal:

Webstorm deployment is not working on modern mac and IPv6

First of all, get all interfaces:

Possible solutions: 1. It’s working but you should do it after every login to your mac:

2. In webstorm: Help → Edit custom VM options

Help → Edit custom properties

You should also check what interfaces work for you.

Check availability and version of a package in Ubuntu

SRE: SLA vs SLO vs SLI

SLA — Service Level Agreement. It’s more about contracts. SLI — Service Level Indicator. It’s some parameters that should be measured and which should be kept in some range. SLO — Service Level Objective. It says how often SLI could fail. Like SLI should be true for 99.9% of the time. Video from Google’s engineer …

Read more