Things we have learned #2
Tags: todayilearned, docker, vscode, management
Published: 2020-05-12 11:13:34

**Sharing is Caring!** For this reason, [we](http://dev.to/s2engineers) would like to release new learnings of our Engineering colleagues at SinnerSchrader on a regular basis. Whether it is regarding a tool, a good read, git command, css pseudo-class, or something completely unrelated. The sky is the limit, it just has to be something we have learned. 

---

## Pomodoro Technique 🍅
The Pomodoro technique is a time management technique where you work in intervals. Those intervals can be set by yourself. One example could be, doing 25 minutes for focusing then 5 minutes for relaxing, repeat this 4 times and then do a break. The relax time does not need to be a break, it could be used for short tasks that do not require your complete focus.
In general this technique can be helpful to stay focused while working from home, and we found out that it can help yourself to prevent overwork, as long as you keep track, how many intervals you already did this day.
You only need a pen, paper and a clock to give it a try. There are also Pomodoro applications on almost every platform to keep track digitally.
More information can be found on [Wikipedia](https://en.wikipedia.org/wiki/Pomodoro_Technique) or on [lifehacker](https://lifehacker.com/productivity-101-a-primer-to-the-pomodoro-technique-1598992730).


---

## Google calendar hack!
If you need to sync calendar availability with somebody (a client or another vendor), you can add a browser bookmark that hides all the appointment texts from your calendar. Now you can make a screenshot of your calendar and share it with others. 
![Screenshot of Google calendar without meeting names](https://dev-to-uploads.s3.amazonaws.com/i/s1v1t394f42nku5vqs6n.png)


Add a new bookmark in your browser, and use this as link:
```javascript
javascript:window.document.styleSheets[0].insertRule('[role=""main""] [role=""gridcell""] * {color:red!important}');
```

Open your calendar, and click on the bookmark. All texts are gone. 

---


## Visual Studio Code search and regex patterns
By default, VS Code uses the ripgrep tool to drive search. ripgrep is a tool written in Rust that uses regex patterns. 

> *ripgrep is a line-oriented search tool that recursively searches your current directory for a regex pattern. By default, ripgrep will respect your .gitignore and automatically skip hidden files/directories and binary files.*

...

> *Sometimes you want to search files that are in your __.gitignore__, so it is possible to specify additional ignore rules or overrides in a __.ignore__ (application agnostic) or __.rgignore__ (ripgrep specific) file.*


More about [ripgrep](https://github.com/BurntSushi/ripgrep) can be found on github


---


## First Docker Tip 
Start a docker container and execute a bash inside.
 
This is great to explore the docker containers and test commands. Afterwards you can add them to your Dockerfile.

```
docker run -it --rm ruby:2.6.3 /bin/bash

-i, --interactive Keep STDIN open even if not attached
-t, --tty Allocate a pseudo-TTY
--rm Automatically remove the container when it exits
```

---

## Second Docker Tip
Copy a folder from a docker image without starting a container
```
docker run $IMAGE_NAME:$TAG tar -c -C /path/to/your/folder foldername | tar xvC 
```


---


## Best Keyboard Shortcut ever for Jira
![Screenshot of Jiras open Detail View](https://dev-to-uploads.s3.amazonaws.com/i/2vf06pct7pgdann89esu.jpg)

You can press . to open the Quick Operations at Jira - for example:
When you open the detail view of a story/issue at Jira and press the . you’ll open the quick menu where you can create sub-task, change the workflow status, assign the task and a lot more.

Learn more [Jira Keyboard Shortcuts](https://jira.atlassian.com/secure/ViewKeyboardShortcuts!default.jspa) 

---

## Management tip - One On Ones
Watching the talk about **[Meetings that don't suck](https://www.youtube.com/watch?v=rU8nv38E0Qk)**. A Youtube Video which has been released in 2013, it also include a part about One On Ones. One part that was new to us: the question **What can I do for you to make your life easier?** 
Some of our Managers started to ask this question in their One On Ones and were positively surprised, that even if the co-workers answered *"nothing, everything is fine"* they were very happy to get this question.

---

## MacBook Pro - High kernel_task CPU Usage
Do you have problems with your MacBook with high CPU usage of a process called kernel_task? Then maybe put the charger to the right side of your device. Here's why: https://apple.stackexchange.com/a/363933

---